1149 var USER_LEVEL_MOD = ' . USER_LEVEL_MOD . '; |
1149 var USER_LEVEL_MOD = ' . USER_LEVEL_MOD . '; |
1150 var USER_LEVEL_ADMIN = ' . USER_LEVEL_ADMIN . '; |
1150 var USER_LEVEL_ADMIN = ' . USER_LEVEL_ADMIN . '; |
1151 var disable_redirect = ' . ( isset($_GET['redirect']) && $_GET['redirect'] == 'no' ? 'true' : 'false' ) . '; |
1151 var disable_redirect = ' . ( isset($_GET['redirect']) && $_GET['redirect'] == 'no' ? 'true' : 'false' ) . '; |
1152 var pref_disable_js_fx = ' . ( @$session->user_extra['disable_js_fx'] == 1 ? 'true' : 'false' ) . '; |
1152 var pref_disable_js_fx = ' . ( @$session->user_extra['disable_js_fx'] == 1 ? 'true' : 'false' ) . '; |
1153 var csrf_token = "' . $session->csrf_token . '"; |
1153 var csrf_token = "' . $session->csrf_token . '"; |
1154 var editNotice = \'' . ( (getConfig('wiki_edit_notice')=='1') ? str_replace("\n", "\\\n", RenderMan::render(getConfig('wiki_edit_notice_text'))) : '' ) . '\'; |
1154 var editNotice = \'' . ( (getConfig('wiki_edit_notice', '0')=='1') ? str_replace("\n", "\\\n", RenderMan::render(getConfig('wiki_edit_notice_text'))) : '' ) . '\'; |
1155 var prot = ' . ( ($protected) ? 'true' : 'false' ) .'; // No, hacking this var won\'t work, it\'s re-checked on the server |
1155 var prot = ' . ( ($protected) ? 'true' : 'false' ) .'; // No, hacking this var won\'t work, it\'s re-checked on the server |
1156 var ENANO_SPECIAL_CREATEPAGE = \''. makeUrl($paths->nslist['Special'].'CreatePage') .'\'; |
1156 var ENANO_SPECIAL_CREATEPAGE = \''. makeUrl($paths->nslist['Special'].'CreatePage') .'\'; |
1157 var ENANO_CREATEPAGE_PARAMS = \'_do=&pagename='. $urlname_clean .'&namespace=' . $local_namespace . '\'; |
1157 var ENANO_CREATEPAGE_PARAMS = \'_do=&pagename='. $urlname_clean .'&namespace=' . $local_namespace . '\'; |
1158 var ENANO_SPECIAL_CHANGESTYLE = \''. makeUrlNS('Special', 'ChangeStyle') .'\'; |
1158 var ENANO_SPECIAL_CHANGESTYLE = \''. makeUrlNS('Special', 'ChangeStyle') .'\'; |
1159 var namespace_list = new Array(); |
1159 var namespace_list = new Array(); |
2403 foreach ( $code as $cmd ) |
2403 foreach ( $code as $cmd ) |
2404 { |
2404 { |
2405 eval($cmd); |
2405 eval($cmd); |
2406 } |
2406 } |
2407 |
2407 |
2408 if(count($ob) > 0 || getConfig('powered_btn') == '1') $sb_links = '<div style="text-align: center; padding: 5px 0;">'. ( ( getConfig('powered_btn') == '1' ) ? $this->fading_button : '' ) . implode('<br />', $ob).'</div>'; |
2408 if(count($ob) > 0 || getConfig('powered_btn', '1') == '1') $sb_links = '<div style="text-align: center; padding: 5px 0;">'. ( ( getConfig('powered_btn', '1') == '1' ) ? $this->fading_button : '' ) . implode('<br />', $ob).'</div>'; |
2409 else $sb_links = ''; |
2409 else $sb_links = ''; |
2410 |
2410 |
2411 $this->sidebar_widget('Links', $sb_links); |
2411 $this->sidebar_widget('Links', $sb_links); |
2412 } |
2412 } |
2413 |
2413 |