[TEP-COMMIT] [CVS catalog] allow the shopping cart page to be shown to guests

hpdl-OfajU3CKLf1/[email protected] 30 Mar 2005 00:35:54 -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>catalog/catalog</tt></b><span id="info"> on MAIN</span></td></tr>
<tr><td><tt><a href="#file1">checkout.php</a></tt></td><td align="right" id="added">+6</td><td align="right" id="removed">-6</td><td nowrap="nowrap" align="center"><a href="http://cvs.oscommerce.com/viewcvs.cgi/catalog/catalog/checkout.php?rev=1.10&amp;content-type=text/vnd.viewcvs-markup">1.10</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/catalog/catalog/checkout.php.diff?r1=1.10&amp;r2=1.11">-&gt;</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/catalog/catalog/checkout.php?rev=1.11&amp;content-type=text/vnd.viewcvs-markup">1.11</a></td></tr>
</table>
<pre class="comment">
allow the shopping cart page to be shown to guests
</pre>
<hr /><a name="file1" /><div class="file">
<span class="pathname"><a href="http://cvs.oscommerce.com/viewcvs.cgi/catalog">catalog</a>/<a href="http://cvs.oscommerce.com/viewcvs.cgi/catalog/catalog">catalog</a><br /></span>
<div class="fileheader"><big><b>checkout.php</b></big> <small id="info"><a href="http://cvs.oscommerce.com/viewcvs.cgi/catalog/catalog/checkout.php?rev=1.10&amp;content-type=text/vnd.viewcvs-markup">1.10</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/catalog/catalog/checkout.php.diff?r1=1.10&amp;r2=1.11">-&gt;</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/catalog/catalog/checkout.php?rev=1.11&amp;content-type=text/vnd.viewcvs-markup">1.11</a></small></div>
<pre class="diff"><small id="info">diff -u -r1.10 -r1.11
--- checkout.php	2005/03/29 23:53:51	1.10
+++ checkout.php	2005/03/30 00:35:52	1.11
@@ -12,12 +12,6 @@
</small></pre><pre class="diff" id="context"> 
   require('includes/application_top.php');
 
</pre><pre class="diff" id="removed">-  if ($osC_Customer-&gt;isLoggedOn() == false) {
-    $navigation-&gt;set_snapshot();
-
-    tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL'));
-  }
-
</pre><pre class="diff" id="context">   require('includes/classes/order.php');
 
   require(DIR_WS_LANGUAGES . $osC_Session-&gt;value('language') . '/' . FILENAME_CHECKOUT);
</pre><pre class="diff"><small id="info">@@ -30,6 +24,12 @@
</small></pre><pre class="diff" id="context">     $_checkout_module = tep_sanitize_string(basename(key(array_slice($_GET, 0, 1))));
 
     if (file_exists('includes/modules/checkout/' . $_checkout_module . '.php')) {
</pre><pre class="diff" id="added">+      if ($osC_Customer-&gt;isLoggedOn() == false) {
+        $navigation-&gt;set_snapshot();
+
+        tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL'));
+      }
+
</pre><pre class="diff" id="context">       include('includes/modules/checkout/' . $_checkout_module . '.php');
 
       $_checkout_module_name = 'osC_Checkout_' . ucfirst($_checkout_module);
</pre></div>
<center><small><a href="http://www.badgers-in-foil.co.uk/projects/cvsspam/" title="commit -&gt; 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