Part 2 of changing file names to match class names

This commit is contained in:
paul 2006-11-23 06:52:22 +00:00
parent d2353858e6
commit b0cbbd4d58
7 changed files with 22 additions and 20 deletions

View File

@ -1,13 +1,11 @@
<?php
require_once 'subj.php';
require_once('Subjects.php');
define('USE_ALIB_CLASSES', TRUE);
define('ALIBERR_NOTLOGGED', 30);
define('ALIBERR_NOTEXISTS', 31);
/**
* Alib class
*
* Authentication/authorization class
*
* @author Tomas Hlava <th@red2head.com>

View File

@ -1,5 +1,5 @@
<?php
require_once "m2tree.php";
require_once("M2tree.php");
/**
* ObjClass class

View File

@ -1,5 +1,5 @@
<?php
require_once("class.php");
require_once("ObjClasses.php");
define('ALIBERR_NOTGR', 20);
define('ALIBERR_BADSMEMB', 21);

View File

@ -3,9 +3,9 @@
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Pragma: no-cache");
session_start();
require_once 'conf.php';
require_once 'DB.php';
require_once '../alib.php';
require_once('conf.php');
require_once('DB.php');
require_once('../Alib.php');
#PEAR::setErrorHandling(PEAR_ERROR_RETURN);
#PEAR::setErrorHandling(PEAR_ERROR_PRINT, "%s<hr>\n");

View File

@ -3,13 +3,15 @@
* @author $Author$
* @version $Revision$
*/
require_once '../example/conf.php';
require_once 'DB.php';
require_once '../alib.php';
require_once('../example/conf.php');
require_once('DB.php');
require_once('../Alib.php');
function errCallback($err)
{
if(assert_options(ASSERT_ACTIVE)==1) return;
if (assert_options(ASSERT_ACTIVE)==1) {
return;
}
echo "ERROR:\n";
echo "request: "; print_r($_REQUEST);
echo "gm:\n".$err->getMessage()."\ndi:\n".$err->getDebugInfo()."\nui:\n".$err->getUserInfo()."\n</pre>\n";
@ -18,7 +20,7 @@ function errCallback($err)
$dbc = DB::connect($config['dsn'], TRUE);
if(PEAR::isError($dbc)){
if (PEAR::isError($dbc)) {
echo "Database connection problem.\n";
echo "Check if database '{$config['dsn']['database']}' exists with corresponding permissions.\n";
echo "Database access is defined by 'dsn' values in conf.php.\n";

View File

@ -3,13 +3,15 @@
* @author $Author$
* @version $Revision$
*/
require_once '../example/conf.php';
require_once 'DB.php';
require_once '../alib.php';
require_once('../example/conf.php');
require_once('DB.php');
require_once('../Alib.php');
function errCallback($err)
{
if(assert_options(ASSERT_ACTIVE)==1) return;
if (assert_options(ASSERT_ACTIVE)==1) {
return;
}
echo "ERROR:\n";
echo "request: "; print_r($_REQUEST);
echo "gm:\n".$err->getMessage()."\ndi:\n".$err->getDebugInfo()."\nui:\n".$err->getUserInfo()."\n</pre>\n";
@ -18,7 +20,7 @@ function errCallback($err)
$dbc = DB::connect($config['dsn'], TRUE);
if(PEAR::isError($dbc)){
if (PEAR::isError($dbc)) {
echo "Database connection problem.\n";
echo "Check if database '{$config['dsn']['database']}' exists with corresponding permissions.\n";
echo "Database access is defined by 'dsn' values in conf.php.\n";

View File

@ -1,7 +1,7 @@
<?php
require_once"m2tree.php";
require_once("M2tree.php");
class M2treeTest extends M2tree{
class M2treeTest extends M2tree {
function _test_init()
{
for($i=1; $i<=3; $i++){