[Phpmylibrary-users] I see garbage after removing installation directory
Status: Beta
Brought to you by:
polerio
|
From: Ata ur R. <ata...@gm...> - 2007-10-26 07:27:16
|
Dear All
I am new user of PhpMyLibrary-2.2.1-3. I have installed it on Window XP.
When I start it, all installation procedure go smooth but when I click on
the view site button after removing installation directory it displays a
garbage as under:
Execute($sql); return; } // added to get just the value. apr-29-2006 polerio
function GetConfigVar($name='') { list($dbconn) = Polerio::DBGetConn();
$table = Polerio::DBGetTables(); $v = $table['vars']; $vc =
$table['vars_column']; $sql = " SELECT "; $sql .= " $vc[value] "; $sql .= "
from $v WHERE $vc[name]='$name'"; //echo $sql; $recordSet =
$dbconn->Execute($sql); list($value) = $recordSet->fields; return $value; }
function SelectModuleVar($name='') { list($dbconn) = Polerio::DBGetConn();
$table = Polerio::DBGetTables(); $v = $table['vars']; $vc =
$table['vars_column']; $sql = " SELECT "; $sql .= " $vc[id], $vc[category],
$vc[user], $vc[group], $vc[name], $vc[value] "; $sql .= " from $v WHERE
$vc[name]='$name'"; //echo $sql; $recordSet = $dbconn->Execute($sql);
list($id, $category, $user, $group, $name, $value) = $recordSet->fields;
$ret = array('id'=>$id, 'category'=>$category, 'user'=>$user,
'group'=>$group, 'name'=>$name, 'value'=>$value); //print_r($ret); return
$ret; } function UpdateModuleVar($name='', $value='') { list($dbconn) =
Polerio::DBGetConn(); $table = Polerio::DBGetTables(); $v = $table['vars'];
$vc = $table['vars_column']; $sql = " UPDATE $v SET "; $sql .= "
$vc[value]='$value'"; $sql .= " WHERE $vc[name]='$name'"; //echo $sql;
$recordSet = $dbconn->Execute($sql); return; } function DeleteModuleVar() {
list($dbconn) = Polerio::DBGetConn(); $table = Polerio::DBGetTables(); $v =
$table['vars']; $vc = $table['vars_column']; } function Linux_Server() {
if((ereg("Linux",getenv("SERVER_SOFTWARE"))) ||
(ereg("Unix",getenv("SERVER_SOFTWARE"))) ) return true; } function
PostNuke() { global $op, $name; if($op && $name) return true; else return
false; } /** * get base URI * @returns string * @return base URI */ function
GetBaseURI() { global $HTTP_SERVER_VARS; // Get the name of this URI //
Start of with REQUEST_URI if (isset($HTTP_SERVER_VARS['REQUEST_URI'])) {
$path = $HTTP_SERVER_VARS['REQUEST_URI']; } else { $path =
getenv('REQUEST_URI'); } if ((empty($path)) || (substr($path, -1, 1) ==
'/')) { // REQUEST_URI was empty or pointed to a path // Try looking at
PATH_INFO $path = getenv('PATH_INFO'); if (empty($path)) { // No luck there
either // Try SCRIPT_NAME if (isset($HTTP_SERVER_VARS['SCRIPT_NAME'])) {
$path = $HTTP_SERVER_VARS['SCRIPT_NAME']; } else { $path =
getenv('SCRIPT_NAME'); } } } $path = preg_replace('/[#\?].*/', '', $path);
$path = dirname($path); if (preg_match('!^[/\\\]*$!', $path)) { $path = '';
} return $path; } function GetBaseURL() { global $HTTP_SERVER_VARS; if
(empty($HTTP_SERVER_VARS['HTTP_HOST'])) { $server = getenv('HTTP_HOST'); }
else { $server = $HTTP_SERVER_VARS['HTTP_HOST']; } $path =
Polerio::GetBaseURI(); if(Polerio::PostNuke()) return
"http://$server$path/"; return "http://$server$path/"; } /** * private
function * @returns string */ function GetRoot() { global $HTTP_SERVER_VARS;
if (empty($HTTP_SERVER_VARS['DOCUMENT_ROOT'])) { $root=
getenv('DOCUMENT_ROOT'); } else { $root =
$HTTP_SERVER_VARS['DOCUMENT_ROOT']; } return $root; } /** * generate
c:/htodcs/modulename/polerio/ * generate /var/www/html/ . . . * @returns
string */ function GetPolerioURI() { $PolerioModuleRoot = './polerio/';
if(PostNuke()) $PolerioModuleRoot = './modules/PhpMyLibrary/polerio/';
return $PolerioModuleRoot; } function GetPolerioURL() { global $name; // For
postnuke if(Polerio::PostNuke()) $PolerioModuleRoot =
Polerio::GetBaseURL().'modules/'.$name.'/polerio/'; else $PolerioModuleRoot
= Polerio::GetBaseURL().'/polerio/'; return $PolerioModuleRoot; } /** *
generate c:/htodocs/modulename/polerio/module/ . . . * generate
/var/www/html/ . . . * @returns string */ function GetModuleURI() { return
Polerio::GetPolerioURI().'PhpMyLibrary/'; } /** * generate
http://modulename/polerio/module/index.php * @returns string */ function
.................
.............
.................
What to do? Any Idea?
Regards,
Ata ur Rehman,
AM Library,
National Centre for Physics (NCP),
Quaid-i-Azam University Campus,
Islamabad. 44000
|