/[libdata]/branches/paul_xx/link.phtml
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /branches/paul_xx/link.phtml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3 by dpavlin, Fri Dec 5 18:40:01 2003 UTC revision 67 by dpavlin, Thu Mar 18 19:24:54 2004 UTC
# Line 25  if ($page_id > 0 && $element_id > 0) { Line 25  if ($page_id > 0 && $element_id > 0) {
25                  . " AND element_id = "                  . " AND element_id = "
26                  . $element_id;                  . $element_id;
27    
28          $rs = mysql_query($sql, $con);          $rs = mysql_tryquery($sql);
29          $row = mysql_fetch_array($rs);          $row = mysql_fetch_array($rs, MYSQL_ASSOC);
30    
31          // Resource          // Resource
32          $resource_id = $row["resource_id"];          $resource_id = $row["resource_id"];
# Line 100  if ($page_id > 0 && $element_id > 0) { Line 100  if ($page_id > 0 && $element_id > 0) {
100                          . ", now(), '"                          . ", now(), '"
101                          . $user_ip                          . $user_ip
102                          . "')";                          . "')";
103            mysql_tryquery($sql);
         if (!mysql_query($sql, $con)){  
                 sql_err($con);  
                 mysql_query ("UNLOCK TABLES", $con);  
                 bailout();  
         } // bad write  
         else {  
                 mysql_query("UNLOCK TABLES", $con);  
   
         } // good write to the stats table  
   
104    
105          // Redirect the user          // Redirect the user
106          header("Location: " . $redirect_url);          header("Location: " . $redirect_url);
# Line 118  if ($page_id > 0 && $element_id > 0) { Line 108  if ($page_id > 0 && $element_id > 0) {
108    
109  else printf("Resource not found...");  else printf("Resource not found...");
110    
111  ?>  ?>

Legend:
Removed from v.3  
changed lines
  Added in v.67

  ViewVC Help
Powered by ViewVC 1.1.26