Xlquiz 0.1.1 > Configuration.php

Questions? Need Help? Want to share? » PHP Forum
Script Name:
Xlquiz 0.1.1

Download:
xlquiz-0.1.1.zip

Category:
Tests And Quiz

Archive Content:

Xlquiz 0.1.1

Xlquiz 0.1.1 > Docs

Xlquiz 0.1.1 > Cache

Xlquiz 0.1.1 > Css

Xlquiz 0.1.1 > Lang

Xlquiz 0.1.1 > Db

Xlquiz 0.1.1 > Templates

Xlquiz 0.1.1 > Classes

Xlquiz 0.1.1 > Classes > Excel

Configuration.php:


<?php
/**
 *    (c)2005 http://Lauri.Kasvandik.com
 */

// these settings are for development machine... if you want to test this script
// on your own box then add here your development machine IP addr (for example 127.0.0.1)
if($_SERVER['SERVER_ADDR']=='192.168.0.1')
{
    
error_reporting(E_ALL);
    
define('SQL_PATH',             'mysql://root <at> localhos <dot> /xlquiz');
    
define('TABLE_RESULTS',         'results2');
}

// here are production server settings
else
{
    
define('SQL_PATH',             'mysql://SQLuser:SQLpass <at> localhos <dot> /databaseName');
    
// database,  where are stored tests results
    
define('TABLE_RESULTS',         'results');

    
error_reporting(0);
}

// i thinked little bit longer percpective,  that maybe someone 
// whishes to translate this script ;) strings are located in "lang" 
// directory,  and they are in ini-format
define('LANG',                     'en');

// this is the time,  after which user can't added into scores database (on same test)
define('RESULTS_EXPIRY_TIME',  1800);

?>


Other Tests And Quiz Scripts:

  • Xlquiz 0.1.1
WebMaster Resources Home

©RingsWorld.com