includes/paths.php
changeset 153 9b86248e8fee
parent 151 824821224153
child 156 edbff85d43e8
equal deleted inserted replaced
149:42c6c83b8a00 153:9b86248e8fee
   855   {
   855   {
   856     global $db, $session, $paths, $template, $plugins; // Common objects
   856     global $db, $session, $paths, $template, $plugins; // Common objects
   857     
   857     
   858     $page_id = $db->escape(sanitize_page_id($page_id));
   858     $page_id = $db->escape(sanitize_page_id($page_id));
   859     if ( !isset($this->nslist[$namespace]) )
   859     if ( !isset($this->nslist[$namespace]) )
   860       die('$paths->get_page_groups(): HACKING ATTEMPT');
   860       die('$paths->get_page_groups(): HACKING ATTEMPT: namespace "'. htmlspecialchars($namespace) .'" doesn\'t exist');
   861     
   861     
   862     $group_list = array();
   862     $group_list = array();
   863     
   863     
   864     // What linked categories have this page?
   864     // What linked categories have this page?
   865     $q = $db->sql_query('SELECT g.pg_id FROM '.table_prefix.'page_groups AS g
   865     $q = $db->sql_query('SELECT g.pg_id FROM '.table_prefix.'page_groups AS g