// end site functions include '../include/vhcs-lib.php'; check_login(); $tpl = new pTemplate(); $tpl->define_dynamic('page', $cfg['ADMIN_TEMPLATE_PATH'] . '/custom_menus.tpl'); $tpl->define_dynamic('page_message', 'page'); $tpl->define_dynamic('hosting_plans', 'page'); $tpl->define_dynamic('button_list', 'page'); $tpl->define_dynamic('button_list', 'page'); $tpl->define_dynamic('add_button', 'page'); $tpl->define_dynamic('edit_button', 'page'); global $cfg; $theme_color = $cfg['USER_INITIAL_THEME']; $tpl->assign(array('TR_ADMIN_CUSTOM_MENUS_PAGE_TITLE' => tr('VHCS - Admin - Manage custom menus'), 'THEME_COLOR_PATH' => "../themes/{$theme_color}", 'THEME_CHARSET' => tr('encoding'), 'ISP_LOGO' => get_logo($_SESSION['user_id']), 'VHCS_LICENSE' => $cfg['VHCS_LICENSE'])); gen_admin_menu($tpl); add_new_button($tpl, $sql); if (isset($_GET['delete_id'])) { delete_button($tpl, $sql); } if (isset($_GET['edit_id'])) { edit_button($tpl, $sql); } update_button($tpl, $sql); gen_button_list($tpl, $sql); $tpl->assign(array('TR_TITLE_CUSTOM_MENUS' => tr('Manage custom menus'), 'TR_ADD_NEW_BUTTON' => tr('Add new button'), 'TR_BUTTON_NAME' => tr('Button name'), 'TR_BUTTON_LINK' => tr('Button link'), 'TR_BUTTON_TARGET' => tr('Button target'), 'TR_VIEW_FROM' => tr('Show in'), 'RESELLER' => tr('Reseller level'), 'USER' => tr('Enduser level'), 'RESSELER_AND_USER' => tr('Reseller and enduser level'), 'TR_ADD' => tr('Add'), 'TR_MENU_NAME' => tr('Menu button'), 'TR_ACTON' => tr('Action'), 'TR_EDIT' => tr('Edit'), 'TR_DELETE' => tr('Delete'), 'TR_LEVEL' => tr('Level'), 'TR_SAVE' => tr('Save'), 'TR_EDIT_BUTTON' => tr('Edit button'))); gen_page_message($tpl); if (isset($_GET['edit_id'])) { $tpl->assign('ADD_BUTTON', ''); } else { $tpl->assign('EDIT_BUTTON', ''); }
$test->bootstrap(); $div->bootstrap(); add_new_button('urlENcode'); add_new_button('urlDEcode'); add_new_button('htmlspecialchars'); add_new_button('htmlspecialchars+quotes'); add_new_button('htmlspecialchars_decode'); add_new_button('js_escape'); add_new_button('preg_quote'); add_new_button('sql::esc'); //add_new_button(); add_new_button('stripcslashes'); add_new_button('cp1251->utf8'); add_new_button('utf8->cp1251'); add_new_button('base64_encode'); add_new_button('base64_decode'); $page->inlinescripts[] = <<<aaaa function init() { \tchse.callback_uri='?cb=1'; \tsetInterval('chse.timerch(false);',1000); } init(); chse.fetchfuncs.push(function (o) {