includes/paths.php
changeset 150 824821224153
parent 142 ca9118d9c0f2
child 155 edbff85d43e8
equal deleted inserted replaced
146:fa3dab3cfb08 150:824821224153
   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