Go to most recent revision |
    Details |
    Last modification |
    View Log
    | RSS feed
  
  
  
     
        
        | Rev | Author | Line No. | Line | 
     
     
        
           | 1 | rodolico | 1 | <?php
 | 
        
           |  |  | 2 |   | 
        
           |  |  | 3 |    global $loginScriptName;
 | 
        
           |  |  | 4 |   | 
        
           |  |  | 5 |     $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
 | 
        
           |  |  | 6 |   | 
        
           |  |  | 7 |   | 
        
           |  |  | 8 |    $common_cgi = '';
 | 
        
           |  |  | 9 |    mysql_connect("localhost", "camp2", 'camp2') or die(mysql_error());
 | 
        
           |  |  | 10 |    mysql_select_db("camp2") or die(mysql_error());
 | 
        
           |  |  | 11 |   | 
        
           |  |  | 12 |    include_once('functions.php');
 | 
        
           |  |  | 13 |   | 
        
           |  |  | 14 |    define('SMARTY_DIR', realpath( $_SERVER['DOCUMENT_ROOT'] . '/../smarty' ) . '/libs/' );
 | 
        
           |  |  | 15 |   | 
        
           |  |  | 16 |   | 
        
           |  |  | 17 | /*
 | 
        
           |  |  | 18 |    if ( basename($_SERVER['PHP_SELF']) != $loginScriptName && ! isset($_SESSION['login_id']) ) {
 | 
        
           |  |  | 19 |       redirectPage($loginScriptName);
 | 
        
           |  |  | 20 |    }
 | 
        
           |  |  | 21 | */
 | 
        
           |  |  | 22 |   | 
        
           |  |  | 23 | ?>
 |