[ create a new paste ] login | about

Link: http://codepad.org/WmMMrWX0    [ raw code | fork ]

PHP, pasted on Nov 15:
=== modified file 'pixami_dev/cart2/mark_cart.php'
--- pixami_dev/cart2/mark_cart.php	2010-11-12 00:33:15 +0000
+++ pixami_dev/cart2/mark_cart.php	2010-11-15 22:20:36 +0000
@@ -1,476 +1,476 @@
-<?php
-//------------------------------------------------------------------------
-// If it's an ALBUM, they get to choose the size of their book
-// Otherwise they are taken to the normal cart.php?a=add jazz
-// Cart parameters must pass $album_id AND $type (ALBUM, CARD, etc)
-//------------------------------------------------------------------------
-require "includes/common.php";
-
-
-
-
-if($_POST['a'] == "add") {
-    $quantity   = 1;
-    $id         = $_POST['id'];
-    $album_id   = $_POST['album_id'];
-    $px_type    = $_POST['px_type'];
-    $px_pages   = $_POST['px_pages'];
-    
-    
-    //------------------------------------------------------------
-    // So each book size can have different extra page pricing
-    // If a different ID for pricing is set, use that one
-    //------------------------------------------------------------
-    
-    if(!empty($page_pricing_id)) {
-        $pp_id = trim($page_pricing_id);
-    }
-    else $pp_id = $id;
-    
-
-    
-
-    if(view_check($id) == 2) quit("Invalid product ID or product is no longer for sale.");
-
-    if(!empty($album_id) && !empty($id)) {
-        db_connect();
-
-
-        //---------------------------------------------
-        // Parsing shared options
-        //---------------------------------------------
-
-        for($o=0;$o<count($_POST['opt'][$id]);$o++) {
snip
+<?php
+//------------------------------------------------------------------------
+// If it's an ALBUM, they get to choose the size of their book
+// Otherwise they are taken to the normal cart.php?a=add jazz
+// Cart parameters must pass $album_id AND $type (ALBUM, CARD, etc)
+//------------------------------------------------------------------------
+require "includes/common.php";
+
+
+
+
+if($_POST['a'] == "add") {
+    $quantity   = 1;
+    $id         = $_POST['id'];
+    $album_id   = $_POST['album_id'];
+    $px_type    = $_POST['px_type'];
+    $px_pages   = $_POST['px_pages'];
+    
+    
+    //------------------------------------------------------------
+    // So each book size can have different extra page pricing
+    // If a different ID for pricing is set, use that one
+    //------------------------------------------------------------
+    
+    if(!empty($page_pricing_id)) {
+        $pp_id = trim($page_pricing_id);
+    }
+    else $pp_id = $id;
+    
+
+    
+
+    if(view_check($id) == 2) quit("Invalid product ID or product is no longer for sale.");
+
+    if(!empty($album_id) && !empty($id)) {
+        db_connect();
+
+
+        //---------------------------------------------
+        // Parsing shared options
+        //---------------------------------------------
+
+        for($o=0;$o<count($_POST['opt'][$id]);$o++) {


Create a new paste based on this one


Comments: