Part 2 of changing file names to match class names
This commit is contained in:
parent
d2353858e6
commit
b0cbbd4d58
|
@ -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>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?php
|
||||
require_once "m2tree.php";
|
||||
require_once("M2tree.php");
|
||||
|
||||
/**
|
||||
* ObjClass class
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?php
|
||||
require_once("class.php");
|
||||
require_once("ObjClasses.php");
|
||||
define('ALIBERR_NOTGR', 20);
|
||||
define('ALIBERR_BADSMEMB', 21);
|
||||
|
||||
|
|
|
@ -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");
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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++){
|
||||
|
|
Loading…
Reference in New Issue