Location: PHPKode > projects > Cowtacular > cowtacular-0.51/scripts/scripttemplate.php
<?php
// ******************************************************************
//  Cowtacular
//  (c) 2010 - Cowtacular LLC
//
//  http://www.cowtacular.com
//
// ******************************************************************

  // Change the working directory to the proper location
  $scriptspath = $_SERVER["PWD"] ."/". $_SERVER["PHP_SELF"];
  if (! file_exists($scriptspath))
    die("\n\nStopping!  Could not find script at ". $scriptspath ."\n\n");
  $scriptspath = str_replace("/scripts/". basename($scriptspath), "", $scriptspath);
  chdir($scriptspath);

  // Load the configuration
  include_once('cow-config.php');
              
  // Include the global library
  include_once('global/lib.php');


  // DO STUFF HERE
  
  
  // Close the databases
  db_writeobjectcache();
  db_close();  

?>
Return current item: Cowtacular