[phpcvsview-cvs-updates] phpcvsview func_DirListing.php,1.6,1.7 func_FileAnnotation.php,1.6,1.7 func
Status: Pre-Alpha
Brought to you by:
bcheesem
From: Sijis A. <si...@us...> - 2004-10-06 08:40:56
|
Update of /cvsroot/phpcvsview/phpcvsview In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23542 Modified Files: func_DirListing.php func_FileAnnotation.php func_FileHistory.php func_FileView.php Log Message: - changed statements to handle enviroment data array Index: func_FileView.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/func_FileView.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** func_FileView.php 5 Oct 2004 17:45:36 -0000 1.5 --- func_FileView.php 6 Oct 2004 08:40:29 -0000 1.6 *************** *** 14,23 **** function DisplayFileContents($File, $Revision = "") { ! global $config; ! // Calculate the path from the $ScriptName variable. ! $ScriptPath = substr($ScriptName, 0, strrpos($ScriptName, "/")); ! if ($ScriptPath == ""){ ! $ScriptPath = "/"; } --- 14,23 ---- function DisplayFileContents($File, $Revision = "") { ! global $config, $env; ! // Calculate the path from the $env['script_name'] variable. ! $env['script_path'] = substr($env['script_name'], 0, strrpos($env['script_name'], "/")); ! if ($env['script_path'] == ""){ ! $env['script_path'] = "/"; } *************** *** 37,42 **** } ! // Get a RLOG of the module path specified in $config['mod_path']. ! $CVSServer->RLog($config['mod_path']); // "Export" the file. --- 37,42 ---- } ! // Get a RLOG of the module path specified in $env['mod_path']. ! $CVSServer->RLog($env['mod_path']); // "Export" the file. *************** *** 47,51 **** // Add the quick link navigation bar. ! echo GetQuickLinkBar($config['mod_path'], "Code view for: ", true, true, $Revision); // Display the file contents. --- 47,51 ---- // Add the quick link navigation bar. ! echo GetQuickLinkBar($env['mod_path'], "Code view for: ", true, true, $Revision); // Display the file contents. Index: func_FileAnnotation.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/func_FileAnnotation.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** func_FileAnnotation.php 5 Oct 2004 17:45:36 -0000 1.6 --- func_FileAnnotation.php 6 Oct 2004 08:40:29 -0000 1.7 *************** *** 14,23 **** function DisplayFileAnnotation($File, $Revision = "") { ! global $config; ! // Calculate the path from the $ScriptName variable. ! $ScriptPath = substr($ScriptName, 0, strrpos($ScriptName, "/")); ! if ($ScriptPath == "") { ! $ScriptPath = "/"; } --- 14,23 ---- function DisplayFileAnnotation($File, $Revision = "") { ! global $config, $env; ! // Calculate the path from the $env['script_name'] variable. ! $env['script_path'] = substr($env['script_name'], 0, strrpos($env['script_name'], "/")); ! if ($env['script_path'] == "") { ! $env['script_path'] = "/"; } Index: func_DirListing.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/func_DirListing.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** func_DirListing.php 5 Oct 2004 17:45:36 -0000 1.6 --- func_DirListing.php 6 Oct 2004 08:40:29 -0000 1.7 *************** *** 14,18 **** function DisplayDirListing() { ! global $config; // Create our CVS connection object and set the required properties. --- 14,18 ---- function DisplayDirListing() { ! global $config, $env; // Create our CVS connection object and set the required properties. *************** *** 32,39 **** // Get a RLOG of the module path specified in $config['mod_path']. ! $CVSServer->RLog($config['mod_path']); // Add the quick link navigation bar. ! echo GetQuickLinkBar($config['mod_path']); // Start the output for the table. --- 32,39 ---- // Get a RLOG of the module path specified in $config['mod_path']. ! $CVSServer->RLog($env['mod_path']); // Add the quick link navigation bar. ! echo GetQuickLinkBar($env['mod_path']); // Start the output for the table. *************** *** 41,53 **** // Do we need the "Back" operation. ! if (strlen($config['mod_path']) > 1) { ! addParentDirectory($ScriptName, $ScriptPath, $config['mod_path']); } // Display the folders within the table. ! addFolders($config['mod_path'], $CVSServer->FOLDERS); // Display the files within the table. ! addFiles($config['mod_path'], $CVSServer->FILES); // Close off our HTML table. --- 41,53 ---- // Do we need the "Back" operation. ! if (strlen($env['mod_path']) > 1) { ! addParentDirectory($env['script_name'], $env['script_path'], $env['mod_path']); } // Display the folders within the table. ! addFolders($env['mod_path'], $CVSServer->FOLDERS); // Display the files within the table. ! addFiles($env['mod_path'], $CVSServer->FILES); // Close off our HTML table. Index: func_FileHistory.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/func_FileHistory.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** func_FileHistory.php 5 Oct 2004 17:45:36 -0000 1.5 --- func_FileHistory.php 6 Oct 2004 08:40:29 -0000 1.6 *************** *** 14,23 **** function DisplayFileHistory() { ! global $config; ! // Calculate the path from the $ScriptName variable. ! $ScriptPath = substr($ScriptName, 0, strrpos($ScriptName, "/")); ! if ($ScriptPath == "") { ! $ScriptPath = "/"; } --- 14,23 ---- function DisplayFileHistory() { ! global $config, $env; ! // Calculate the path from the $env['script_name'] variable. ! $env['script_path'] = substr($env['script_name'], 0, strrpos($env['script_name'], "/")); ! if ($env['script_path'] == "") { ! $env['script_path'] = "/"; } *************** *** 38,50 **** // Get a RLOG of the module path specified in $config['mod_path']. ! $CVSServer->RLog($config['mod_path']); $Files = $CVSServer->FILES; // Add the quick link navigation bar. ! echo GetQuickLinkBar($config['mod_path'], "Revision History for: ", false, true, ""); foreach ($CVSServer->FILES[0]["Revisions"] as $Revision) { ! $HREF = str_replace("//", "/", "$ScriptName?mp=".$config['mod_path']); $DateTime = strtotime($Revision["date"]); echo "<hr /><p><a id=\"rd$DateTime\" />\n"; --- 38,50 ---- // Get a RLOG of the module path specified in $config['mod_path']. ! $CVSServer->RLog($env['mod_path']); $Files = $CVSServer->FILES; // Add the quick link navigation bar. ! echo GetQuickLinkBar($env['mod_path'], "Revision History for: ", false, true, ""); foreach ($CVSServer->FILES[0]["Revisions"] as $Revision) { ! $HREF = str_replace("//", "/", $env['script_name']."?mp=".$env['mod_path']); $DateTime = strtotime($Revision["date"]); echo "<hr /><p><a id=\"rd$DateTime\" />\n"; |