"; } if($u and $i) { $url = "$img"; } else { $url = "$img"; } return $url; } function printMenu($v,$settings){ print ""; } function printCurrentProd($m){ global $product_url; $still1 = getStill($m,"still1"); $still2 = getStill($m,"still2"); $still3 = getStill($m,"still3"); $pb_tag = strtolower($m{'title'}); $pb_tag = preg_replace('/[^A-Za-z0-9]/','',$pb_tag); $json_url = "http://api.flickr.com/services/feeds/photos_public.gne?id=14902815@N05&tags=$pb_tag&lang=en-us&format=json&jsoncallback=?"; $pb_height = "451"; $pb_width = "499"; $pb_color = "0C1319"; print << $(document).ready(function(){ var f_images = 0; $.getJSON("$json_url", function(data){ if(data.items.length > 0){ $('#movieStills').load( '/movieStills.php', { tag:"$pb_tag", width:"$pb_width", height:"$pb_height", color:"$pb_color" }); } else { $('#movieStills').append('
'); $('#movieStillsTr').append('$still1'); $('#movieStillsTr').append('$still2'); $('#movieStillsTr').append('$still3'); } }); }); END; print <<{$m{'title'}}
{$m{'year'}} {$m{'genre'}} {$m{'runtime'}}
{$m{'synopsis'}}
Go to Blog

END; print <<
END; print <<
Produced by: {$m{'producedby'}} Directed by: {$m{'directedby'}} Written by: {$m{'writtenby'}} Cinematography by: {$m{'cinematography'}}
Starring: {$m{'cast'}}
END; } function checkLogin($u,$p){ if($u and $p){ $query = sprintf("select * from account where user = '%s' and pass = '%s'", mysql_real_escape_string($u), mysql_real_escape_string($p)); $result = mysql_query($query) or die("Couldn't execute query:\n $query"); while( mysql_num_rows($result) ){ return 1; } } return 0; } # Used for culling blanks from array function notBlank ($var){ return ($var != ''); } ?>
Current Production \n \n \n EOL; printMenu('Production_CurProd1',$settings); print <<\n \n EOL; } ?>