662 'FLAGS'=>'onclick="if ( !KILL_SWITCH ) { ajaxChangeStyle(); return false; }"', |
662 'FLAGS'=>'onclick="if ( !KILL_SWITCH ) { ajaxChangeStyle(); return false; }"', |
663 'TEXT'=>'Change theme', |
663 'TEXT'=>'Change theme', |
664 )); |
664 )); |
665 |
665 |
666 $theme_link = $parser->run(); |
666 $theme_link = $parser->run(); |
|
667 |
|
668 $parser->assign_vars(Array( |
|
669 'HREF'=>makeUrlNS('Special', 'Administration'), |
|
670 'FLAGS'=>'onclick="if ( !KILL_SWITCH ) { void(ajaxStartAdminLogin()); return false; }"', |
|
671 'TEXT'=>'Administration', |
|
672 )); |
|
673 |
|
674 $admin_link = $parser->run(); |
667 |
675 |
668 $SID = ($session->sid_super) ? $session->sid_super : ''; |
676 $SID = ($session->sid_super) ? $session->sid_super : ''; |
669 |
677 |
670 $urlname_clean = str_replace('\'', '\\\'', str_replace('\\', '\\\\', dirtify_page_id($paths->fullpage))); |
678 $urlname_clean = str_replace('\'', '\\\'', str_replace('\\', '\\\\', dirtify_page_id($paths->fullpage))); |
671 $urlname_clean = strtr( $urlname_clean, array( '<' => '<', '>' => '>' ) ); |
679 $urlname_clean = strtr( $urlname_clean, array( '<' => '<', '>' => '>' ) ); |
731 'TOOLBAR_EXTRAS'=>$this->toolbar_menu, |
739 'TOOLBAR_EXTRAS'=>$this->toolbar_menu, |
732 'REQUEST_URI'=>$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'], |
740 'REQUEST_URI'=>$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'], |
733 'STYLE_LINK'=>makeUrlNS('Special', 'CSS'.$p, null, true), //contentPath.$paths->nslist['Special'].'CSS' . $p, |
741 'STYLE_LINK'=>makeUrlNS('Special', 'CSS'.$p, null, true), //contentPath.$paths->nslist['Special'].'CSS' . $p, |
734 'LOGIN_LINK'=>$login_link, |
742 'LOGIN_LINK'=>$login_link, |
735 'LOGOUT_LINK'=>$logout_link, |
743 'LOGOUT_LINK'=>$logout_link, |
|
744 'ADMIN_LINK'=>$admin_link, |
736 'THEME_LINK'=>$theme_link, |
745 'THEME_LINK'=>$theme_link, |
737 'TEMPLATE_DIR'=>scriptPath.'/themes/'.$this->theme, |
746 'TEMPLATE_DIR'=>scriptPath.'/themes/'.$this->theme, |
738 'THEME_ID'=>$this->theme, |
747 'THEME_ID'=>$this->theme, |
739 'STYLE_ID'=>$this->style, |
748 'STYLE_ID'=>$this->style, |
740 'JS_DYNAMIC_VARS'=>$js_dynamic, |
749 'JS_DYNAMIC_VARS'=>$js_dynamic, |
1174 } |
1183 } |
1175 |
1184 |
1176 $parser1 = $this->makeParserText($tplvars['sidebar_section']); |
1185 $parser1 = $this->makeParserText($tplvars['sidebar_section']); |
1177 $parser2 = $this->makeParserText($tplvars['sidebar_section_raw']); |
1186 $parser2 = $this->makeParserText($tplvars['sidebar_section_raw']); |
1178 |
1187 |
1179 preg_match_all('#\{slider(2|)=(.*?)\}(.*?)\{\/slider(2|)\}#is', $message, $sb); |
1188 preg_match_all('#\{slider(2|)=([^\}]*?)\}(.*?)\{\/slider(2|)\}#is', $message, $sb); |
1180 |
1189 |
1181 // Modified to support the sweet new template var system |
1190 // Modified to support the sweet new template var system |
1182 for($i=0;$i<sizeof($sb[1]);$i++) |
1191 for($i=0;$i<sizeof($sb[1]);$i++) |
1183 { |
1192 { |
1184 $p = ($sb[1][$i] == '2') ? $parser2 : $parser1; |
1193 $p = ($sb[1][$i] == '2') ? $parser2 : $parser1; |