Changeset 201 for trunk/lib/ACL.inc.php
- Timestamp:
- Jul 7, 2006 10:53:09 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/ACL.inc.php
r199 r201 122 122 $db->query("DROP TABLE IF EXISTS aco_tbl"); 123 123 $db->query("DROP TABLE IF EXISTS axo_tbl"); 124 $app->logMsg(sprintf('Dropping and recreating tables acl_tbl, aro_tbl, aco_tbl, axo_tbl.', null), LOG_ DEBUG, __FILE__, __LINE__);124 $app->logMsg(sprintf('Dropping and recreating tables acl_tbl, aro_tbl, aco_tbl, axo_tbl.', null), LOG_INFO, __FILE__, __LINE__); 125 125 } 126 126 … … 261 261 "); 262 262 263 $app->logMsg(sprintf('Added %s node %s to parent %s.', $type, $name, $parent), LOG_ DEBUG, __FILE__, __LINE__);263 $app->logMsg(sprintf('Added %s node %s to parent %s.', $type, $name, $parent), LOG_INFO, __FILE__, __LINE__); 264 264 return mysql_insert_id($db->getDBH()); 265 265 } … … 342 342 $db->query("UPDATE $tbl SET rgt = rgt - ($rgt - $lft + 1) WHERE rgt > $rgt"); 343 343 344 $app->logMsg(sprintf('Removed %s node %s along with %s children.', $type, $name, $num_deleted_nodes - 1), LOG_ DEBUG, __FILE__, __LINE__);344 $app->logMsg(sprintf('Removed %s node %s along with %s children.', $type, $name, $num_deleted_nodes - 1), LOG_INFO, __FILE__, __LINE__); 345 345 return true; 346 346 } … … 464 464 $db->query("UPDATE $tbl SET rgt = rgt + $total_transversal_value WHERE rgt >= $new_parent_rgt AND $primary_key NOT IN ('" . join("','", $ids) . "')"); 465 465 466 $app->logMsg(sprintf('Moved %s node %s to new parent %s.', $type, $name, $new_parent), LOG_ DEBUG, __FILE__, __LINE__);466 $app->logMsg(sprintf('Moved %s node %s to new parent %s.', $type, $name, $new_parent), LOG_INFO, __FILE__, __LINE__); 467 467 return true; 468 468 } … … 529 529 530 530 $db->query("REPLACE INTO acl_tbl VALUES ('$aro_id', '$aco_id', '$axo_id', '$allow', NOW())"); 531 $app->logMsg(sprintf('Set %s: %s -> %s -> %s.', $allow, $aro, $aco, $axo), LOG_ DEBUG, __FILE__, __LINE__);531 $app->logMsg(sprintf('Set %s: %s -> %s -> %s.', $allow, $aro, $aco, $axo), LOG_INFO, __FILE__, __LINE__); 532 532 533 533 return true; … … 647 647 if (!list($access) = mysql_fetch_row($qid)) { 648 648 $this->cache->set($cache_hash, 'deny'); 649 //$app->logMsg(sprintf('Access denyed: %s -> %s -> %s. No records found.', $aro, $aco, $axo), LOG_DEBUG, __FILE__, __LINE__);649 $app->logMsg(sprintf('Access denyed: %s -> %s -> %s. No records found.', $aro, $aco, $axo), LOG_DEBUG, __FILE__, __LINE__); 650 650 return false; 651 651 } … … 654 654 655 655 if ('allow' == $access) { 656 //$app->logMsg(sprintf('Access granted: %s -> %s -> %s.', $aro, $aco, $axo), LOG_DEBUG, __FILE__, __LINE__);656 $app->logMsg(sprintf('Access granted: %s -> %s -> %s.', $aro, $aco, $axo), LOG_DEBUG, __FILE__, __LINE__); 657 657 return true; 658 658 } else { 659 //$app->logMsg(sprintf('Access denyed: %s -> %s -> %s.', $aro, $aco, $axo), LOG_DEBUG, __FILE__, __LINE__);659 $app->logMsg(sprintf('Access denyed: %s -> %s -> %s.', $aro, $aco, $axo), LOG_DEBUG, __FILE__, __LINE__); 660 660 return false; 661 661 }
Note: See TracChangeset
for help on using the changeset viewer.