/[libdata]/trunk/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 /trunk/link.phtml

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

revision 71 by dpavlin, Thu Mar 4 22:43:50 2004 UTC revision 72 by dpavlin, Thu Mar 18 20:33:37 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 = xx_query($sql, $con);          $rs = xx_tryquery($sql);
29          $row = xx_fetch_array($rs);          $row = xx_fetch_array($rs, xx_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            xx_tryquery($sql);
         if (!xx_query($sql, $con)){  
                 sql_err($con);  
                 xx_query ("UNLOCK TABLES", $con);  
                 bailout();  
         } // bad write  
         else {  
                 xx_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.71  
changed lines
  Added in v.72

  ViewVC Help
Powered by ViewVC 1.1.26