//===========================================================================
// Crafty Syntax Image gallery (CSIG)
// http://www.craftysyntax.com/CSIG/
// Copyright (C) 2003-2004 Eric Gerdes
//===========================================================================
// $Id: config.php,v 1.0 2004/04/07 03:17:40 csyntax Exp $
// --------------------------------------------------------------------------
// This is the Basic configuration file. It is best if you
// have the program change these settings for you by going to
// http://www.yourdomain.com/imagegallery/setup.php
//===========================================================================
// if false you will be re-directed to the setup page every time you look at the page
// this is to direct to the setup program.
$installed="true" ;
// if we have not installed yet..
if (!($installed)){
Header("Location: setup.php");
exit;
}
// dbtype is the Type of dsn
// see http://pear.php.net/manual/en/package.database.db.intro-dsn.php
$dbtype = "mysql";
// database connections.
$server = "localhost";
$database = "pashan";
$datausername = "pashan";
$password = "200998";
// if using txt-db-api need the path to the txt databases directory
$DB_DIR = "/home/httpd/vhosts/hknepal.com/httpdocs/pic_gallery/" . "userimages/";
// if using txt-db-api need to have the full path to the txt-db-api
// you must set this property to something like /home/website/myscrapbook/txt-db-api/
$API_HOME_DIR = "/home/httpd/vhosts/hknepal.com/httpdocs/pic_gallery/" . "txt-db-api/";
$root_path = "/home/httpd/vhosts/hknepal.com/httpdocs/pic_gallery/";
// if using Microsoft ACCESS
$dbpath = "";
// options to use servers version of PEAR and Smarty libraries:
$use_server_PEAR = false;
$use_server_SMARTY = false;
?>
Warning: Undefined variable $use_server_PEAR in /var/www/vhosts/hknepal.com/httpdocs/pic_gallery/libraries.php on line 27
Warning: Undefined variable $root_path in /var/www/vhosts/hknepal.com/httpdocs/pic_gallery/libraries.php on line 30
//****************************************************************************************/
// Library Class : Globals : version 1.0 (10/25/2003):
//======================================================================================
// DESCRIPTION:
// This library grabs the names and values of the variables sent or posted to a
// script in the '$HTTP_*_VARS' arrays and sets simple globals variables from
// them. It also sets the error reporting and applies magic quotes to the
// globals variables
//
error_reporting(E_ALL & ~E_NOTICE);
function my_addslashes($what){
if (!(get_magic_quotes_gpc())) {
return addslashes($what);
} else {
return $what;
}
}
if (!empty($_GET)) {
for (reset($_GET); list($k, $v) = each($_GET); )
$$k = my_addslashes($v);
} else {
for (reset($HTTP_GET_VARS); list($k, $v) = each($HTTP_GET_VARS); )
$$k = my_addslashes($v);
}
if (!empty($_POST)) {
for (reset($_POST); list($k, $v) = each($_POST); )
$$k = my_addslashes($v);
} else {
if(isset($HTTP_POST_VARS)){
for (reset($HTTP_POST_VARS); list($k, $v) = each($HTTP_POST_VARS); )
$$k = my_addslashes($v);
}
}
if (!empty($_COOKIE)) {
for (reset($_COOKIE); list($k, $v) = each($_COOKIE); )
$$k = my_addslashes($v);
} else {
for (reset($HTTP_COOKIE_VARS); list($k, $v) = each($HTTP_COOKIE_VARS); )
$$k = my_addslashes($v);
}
if (!empty($_FILES)) {
while (list($name, $value) = each($_FILES)) {
$$name = my_addslashes($value['tmp_name']);
}
} else if (!empty($HTTP_POST_FILES)) {
while (list($name, $value) = each($HTTP_POST_FILES)) {
$$name = my_addslashes($value['tmp_name']);
}
} // end if
if (!empty($_SERVER) && isset($_SERVER['PHP_SELF'])) {
$PHP_SELF = $_SERVER['PHP_SELF'];
} else if (!empty($HTTP_SERVER_VARS) && isset($HTTP_SERVER_VARS['PHP_SELF'])) {
$PHP_SELF = $HTTP_SERVER_VARS['PHP_SELF'];
} // end if
if (!empty($_SERVER) && isset($_SERVER['PHP_SELF'])) {
$PHP_SELF = $_SERVER['PHP_SELF'];
} else if (!empty($HTTP_SERVER_VARS) && isset($HTTP_SERVER_VARS['PHP_SELF'])) {
$PHP_SELF = $HTTP_SERVER_VARS['PHP_SELF'];
} // end if
if (!empty($_SERVER) && isset($_SERVER['HTTP_REFERER'])) {
$HTTP_REFERER = $_SERVER['HTTP_REFERER'];
} else if (!empty($HTTP_SERVER_VARS) && isset($HTTP_SERVER_VARS['HTTP_REFERER'])) {
$HTTP_REFERER = $HTTP_SERVER_VARS['HTTP_REFERER'];
} // end if
if (!empty($_SERVER) && isset($_SERVER['REMOTE_ADDR'])) {
$REMOTE_ADDR = $_SERVER['REMOTE_ADDR'];
} else if (!empty($HTTP_SERVER_VARS) && isset($HTTP_SERVER_VARS['REMOTE_ADDR'])) {
$REMOTE_ADDR = $HTTP_SERVER_VARS['REMOTE_ADDR'];
} // end if
if (!empty($_SERVER) && isset($_SERVER['HTTP_USER_AGENT'])) {
$HTTP_USER_AGENT = $_SERVER['HTTP_USER_AGENT'];
} else if (!empty($HTTP_SERVER_VARS) && isset($HTTP_SERVER_VARS['HTTP_USER_AGENT'])) {
$HTTP_USER_AGENT = $HTTP_SERVER_VARS['HTTP_USER_AGENT'];
} // end if
?>
Warning: Undefined variable $use_server_PEAR in /var/www/vhosts/hknepal.com/httpdocs/pic_gallery/libraries.php on line 38
Parse error: syntax error, unexpected token "new" in /var/www/vhosts/hknepal.com/httpdocs/pic_gallery/libraries/DB.php on line 212