[TEP-COMMIT] [CVS admin] remove the need to rely on $PHP_SELF
hpdl-OfajU3CKLf1/[email protected] 6 Apr 2005 00:12:21 -0000
| Newsgroups | gmane.comp.web.oscommerce.cvs |
|---|---|
| Message-ID | <[email protected]> |
<html>
<head>
<style><!--
body {background-color:#ffffff;}
.file {border:1px solid #eeeeee;margin-top:1em;margin-bottom:1em;}
.pathname {font-family:monospace; float:right;}
.fileheader {margin-bottom:.5em;}
.diff {margin:0;}
.tasklist {padding:4px;border:1px dashed #000000;margin-top:1em;}
.tasklist ul {margin-top:0;margin-bottom:0;}
tr.alt {background-color:#eeeeee}
#added {background-color:#ddffdd;}
#addedchars {background-color:#99ff99;font-weight:bolder;}
tr.alt #added {background-color:#ccf7cc;}
#removed {background-color:#ffdddd;}
#removedchars {background-color:#ff9999;font-weight:bolder;}
tr.alt #removed {background-color:#f7cccc;}
#info {color:#888888;}
#context {background-color:#eeeeee;}
td {padding-left:.3em;padding-right:.3em;}
tr.head {border-bottom-width:1px;border-bottom-style:solid;}
tr.head td {padding:0;padding-top:.2em;}
.task {background-color:#ffff00;}
.comment {padding:4px;border:1px dashed #000000;background-color:#ffffdd}
.error {color:red;}
hr {border-width:0px;height:2px;background:black;}
--></style>
</head>
<body>
<table cellspacing="0" cellpadding="0" border="0" rules="cols">
<tr class="head"><td colspan="4">Commit in <b><tt>admin/admin</tt></b><span id="info"> on MAIN</span></td></tr>
<tr><td><tt><a href="#file1">modules.php</a></tt></td><td align="right" id="added">+1</td><td align="right" id="removed">-1</td><td nowrap="nowrap" align="center"><a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/modules.php?rev=1.49&content-type=text/vnd.viewcvs-markup">1.49</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/modules.php.diff?r1=1.49&r2=1.50">-></a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/modules.php?rev=1.50&content-type=text/vnd.viewcvs-markup">1.50</a></td></tr>
<tr class="alt"><td><tt><a href="#file2">services.php</a></tt></td><td align="right" id="added">+1</td><td align="right" id="removed">-1</td><td nowrap="nowrap" align="center"><a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/services.php?rev=1.3&content-type=text/vnd.viewcvs-markup">1.3</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/services.php.diff?r1=1.3&r2=1.4">-></a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/services.php?rev=1.4&content-type=text/vnd.viewcvs-markup">1.4</a></td></tr>
<tr><td><tt>includes/<a href="#file3">application_top.php</a></tt></td><td align="right" id="added">+1</td><td align="right" id="removed">-4</td><td nowrap="nowrap" align="center"><a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/includes/application_top.php?rev=1.183&content-type=text/vnd.viewcvs-markup">1.183</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/includes/application_top.php.diff?r1=1.183&r2=1.184">-></a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/includes/application_top.php?rev=1.184&content-type=text/vnd.viewcvs-markup">1.184</a></td></tr>
<tr><td></td><td align="right" id="added">+3</td><td align="right" id="removed">-6</td><td></td></tr>
</table>
<small id="info">3 modified files</small><br />
<pre class="comment">
remove the need to rely on $PHP_SELF
</pre>
<hr /><a name="file1" /><div class="file">
<span class="pathname"><a href="http://cvs.oscommerce.com/viewcvs.cgi/admin">admin</a>/<a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin">admin</a><br /></span>
<div class="fileheader"><big><b>modules.php</b></big> <small id="info"><a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/modules.php?rev=1.49&content-type=text/vnd.viewcvs-markup">1.49</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/modules.php.diff?r1=1.49&r2=1.50">-></a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/modules.php?rev=1.50&content-type=text/vnd.viewcvs-markup">1.50</a></small></div>
<pre class="diff"><small id="info">diff -u -r1.49 -r1.50
--- modules.php 2004/07/22 23:29:30 1.49
+++ modules.php 2005/04/06 00:12:13 1.50
@@ -18,7 +18,7 @@
</small></pre><pre class="diff" id="context">
$action = (isset($_GET['action']) ? $_GET['action'] : '');
</pre><pre class="diff" id="removed">- $file_extension = substr($PHP_SELF, strrpos($PHP_SELF, '.'));
</pre><pre class="diff" id="added">+ $file_extension = substr(__FILE__, strrpos(__FILE__, '.'));
</pre><pre class="diff" id="context">
if (!empty($set)) {
switch ($set) {
</pre></div>
<hr /><a name="file2" /><div class="file">
<span class="pathname"><a href="http://cvs.oscommerce.com/viewcvs.cgi/admin">admin</a>/<a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin">admin</a><br /></span>
<div class="fileheader"><big><b>services.php</b></big> <small id="info"><a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/services.php?rev=1.3&content-type=text/vnd.viewcvs-markup">1.3</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/services.php.diff?r1=1.3&r2=1.4">-></a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/services.php?rev=1.4&content-type=text/vnd.viewcvs-markup">1.4</a></small></div>
<pre class="diff"><small id="info">diff -u -r1.3 -r1.4
--- services.php 2004/10/28 18:59:51 1.3
+++ services.php 2005/04/06 00:12:13 1.4
@@ -18,7 +18,7 @@
</small></pre><pre class="diff" id="context">
$installed = explode(';', MODULE_SERVICES_INSTALLED);
</pre><pre class="diff" id="removed">- $file_extension = substr($PHP_SELF, strrpos($PHP_SELF, '.'));
</pre><pre class="diff" id="added">+ $file_extension = substr(__FILE__, strrpos(__FILE__, '.'));
</pre><pre class="diff" id="context">
if (!empty($action)) {
switch ($action) {
</pre></div>
<hr /><a name="file3" /><div class="file">
<span class="pathname"><a href="http://cvs.oscommerce.com/viewcvs.cgi/admin">admin</a>/<a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin">admin</a>/<a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/includes">includes</a><br /></span>
<div class="fileheader"><big><b>application_top.php</b></big> <small id="info"><a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/includes/application_top.php?rev=1.183&content-type=text/vnd.viewcvs-markup">1.183</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/includes/application_top.php.diff?r1=1.183&r2=1.184">-></a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/includes/application_top.php?rev=1.184&content-type=text/vnd.viewcvs-markup">1.184</a></small></div>
<pre class="diff"><small id="info">diff -u -r1.183 -r1.184
--- application_top.php 2004/11/29 14:36:11 1.183
+++ application_top.php 2005/04/06 00:12:17 1.184
@@ -34,9 +34,6 @@
</small></pre><pre class="diff" id="context"> define('DIR_WS_CATALOG', DIR_WS_HTTPS_CATALOG);
}
</pre><pre class="diff" id="removed">-// set php_self in the local scope
- if (!isset($PHP_SELF)) $PHP_SELF = (isset($_SERVER['PHP_SELF']) ? $_SERVER['PHP_SELF'] : $_SERVER['SCRIPT_NAME']);
-
</pre><pre class="diff" id="context"> // Used in the "Backup Manager" to compress backups
define('LOCAL_EXE_GZIP', '/usr/bin/gzip');
define('LOCAL_EXE_GUNZIP', '/usr/bin/gunzip');
</pre><pre class="diff"><small id="info">@@ -104,7 +101,7 @@
</small></pre><pre class="diff" id="context">
setlocale(LC_TIME, LANGUAGE_LOCALE);
</pre><pre class="diff" id="removed">- $current_page = basename($PHP_SELF);
</pre><pre class="diff" id="added">+ $current_page = basename($_SERVER['SCRIPT_FILENAME']);
</pre><pre class="diff" id="context"> if (file_exists('includes/languages/' . $osC_Session->value('language') . '/' . $current_page)) {
include('includes/languages/' . $osC_Session->value('language') . '/' . $current_page);
}
</pre></div>
<center><small><a href="http://www.badgers-in-foil.co.uk/projects/cvsspam/" title="commit -> email">CVSspam</a> 0.2.9</small></center>
</body></html>
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click