Subversion Repositories computer_asset_manager_v2

Rev

Rev 2 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

<?php

   /* 
    * Example script for camp v2 configuration file
    * This should be stored in  the directory above web root
    * and named camp2_config.php
    * It is caled from header.php
   */
   global $loginScriptName;
   
    $loginScriptName = 'login.html'; // this is the name of the login script. If the user is not logged in, this will be called no matter what else is happening


   $common_cgi = '';
   mysql_connect( 'localhost', 'db user name', 'db password') or die(mysql_error());
   mysql_select_db('db name') or die(mysql_error());
   
   // pick up any functions defined by the program
   include_once('functions.php');
   
   /* 
    * Add smarty for template processing. Note in this case, smarty is a
    * global function. used  by more than one program and it is
    * stored outside the directory tree (ie, same level as documentroot)
   */
   define('SMARTY_DIR', realpath( $_SERVER['DOCUMENT_ROOT'] . '../smarty' ) . '/libs/' );


/*
   if ( basename($_SERVER['PHP_SELF']) != $loginScriptName && ! isset($_SESSION['login_id']) ) {
      redirectPage($loginScriptName);
   }
*/

?>