function AddMemberGroup() { $usr = new usersMenus(); $tpl = new templates(); writelogs("Adding user {$_GET["user"]} to group {$_GET["AddMemberGroup"]}", __FUNCTION__, __FILE__, __LINE__); if ($usr->AllowAddGroup == false) { writelogs("The administrator have no provileges to execute this operation....", __FUNCTION__, __FILE__, __LINE__); echo $tpl->_ENGINE_parse_body('{no_privileges}'); echo Page($_GET["user"]); exit; } if (trim($_GET["AddMemberGroup"] == null)) { return null; } $ldap = new clladp(); $ldap->AddUserToGroup($_GET["AddMemberGroup"], $_GET["user"]); if ($ldap->ldap_last_error != null) { echo $ldap->ldap_last_error; } else { $tpl = new templates(); echo html_entity_decode($tpl->_ENGINE_parse_body("{success}: {$_GET["user"]} to group {$_GET["AddMemberGroup"]}")); writelogs("Adding user {$_GET["user"]} to group {$_GET["AddMemberGroup"]} => SUCCESS", __FUNCTION__, __FILE__, __LINE__); } die; }
public function index() { $select['name'] = I('name'); $select['card'] = I('card'); $select['position'] = I('position'); $where = array(); if (!empty($select['name'])) { $where['name'] = array('like', '%' . $select['name'] . '%'); } if (!empty($select['card'])) { $where['card'] = $select['card']; } if (!empty($select['position'])) { $where['position'] = $select['position']; } $count = M('Score')->where($where)->count(); // 查询满足要求的总记录数 $size = C('PAGE_ZIAE'); $item = Page($count, $size); $list = M('Score')->where($where)->order('times DESC,id DESC')->limit($item['limit'])->select(); $this->assign('list', $list); $this->assign('page', $item['show']); $this->assign('select', $select); $this->display(); }
static function rollBackCont($pid, $log) { $Cont = Page($pid); if ($Cont->access() < 2) { return false; } backToLog($pid, $log); }
static function onBefore($fn, $pid) { $Cont = Page($pid); self::$Layouter = new cmsLayouter3($Cont->vs['module']); $LPage = self::$Layouter->getLayoutPage(); if ($LPage->access() < 2) { return false; } }
/** ******************************* * Auth:dingwei * Time:2016-5-14 14:55:37 * Desc:获取下载列表 ******************************** */ private function getDataByType($pid = 1) { $count = M('Article')->where("category=" . $pid)->count(); // 查询满足要求的总记录数 $size = C('PAGE_ZIAE'); $item = Page($count, $size); $list = M('Article')->where("category=" . $pid)->order('ctime DESC,id DESC')->limit($item['limit'])->select(); $data = array('list' => $list, 'page' => $item['show']); return $data; }
function getLayoutPage() { if (!isset($this->LPage)) { $Tmp = Page(5)->Childs(array('module' => $this->mod)); $this->LPage = array_shift($Tmp); if (!$this->LPage) { $this->LPage = Page(5)->createChild(array('module' => $this->mod, 'access' => 1, 'offline' => 0)); $this->LPage->Title($this->mod); } } return $this->LPage; }
function cms_parentText($name, $Cont = null) { $Cont = $Cont === null ? Page() : $Cont; $Text = false; while ($Cont) { $Texts = $Cont->Texts(); if (isset($Texts[$name])) { $Text = $Texts[$name]; break; } $Cont = $Cont->Parent(); } return $Text; }
static function checkInstalled() { if (!cms::PageByModule('cms.backend')) { $P = Page(1)->createChild(array('visible' => 0, 'module' => 'cms.layout.backend', 'access' => 0, 'offline' => 0, 'sort' => 20, 'searchable' => 0)); $P->changeGroup(1, 0); $P->changeGroup(2, 0); $P->changeGroup(3, 0); $P->Cont(1)->setModule('cms.backend'); $P->title()->get('de')->set('Backend'); $P->SET['childXML'] = '<page visible="1"></page>'; G()->SET['cms']['backend']->setDefault((string) $P); G()->SET['cms']['backend']['lastpage']->setDefault((string) $P); } G()->SET['cms']['backend']['lastpage']->custom(); }
function qgCms_parentText($name, $Cont = null) { $d = debug_backtrace(); $d = $d[0]; trigger_error('deprecated ' . $d['file'] . ' :' . $d['line']); $Cont = $Cont === null ? Page() : $Cont; $Text = false; while ($Cont) { $Texts = $Cont->Texts(); if (isset($Texts[$name])) { $Text = $Texts[$name]; break; } $Cont = $Cont->Parent(); } return $Text; }
function serverInterface_cms_frontend_0_widget($pid, $widget, $params = array()) { $P = Page($pid); if ($P->access() < 2) { return false; } if (strpos($widget, '/')) { return null; } global $cmsWidgetCont; $cmsWidgetCont = $P; L::nsStart('cms'); $T = new Template(); $T->assign('Cont', $P); $T->assign('param', $params); L::nsStop(); // todo: better at end? return $T->get(sysPATH . 'cms.frontend.0/view/widgets/' . $widget . '.php'); }
html::addCssFile(sysURL . 'core/js/c1/css/normalize.css', 'be-layout'); html::addCssFile(sysURL . 'core/js/c1/css/recommend.css', 'be-layout'); html::addCssFile(sysURL . 'core/js/c1/css/theme.css', 'be-layout'); html::$meta['viewport'] = 'width=device-width, initial-scale=1, maximum-scale=1'; $Page = $Cont->Page; G()->SET['cms']['backend']['lastpage']->setUser($Page->id); ?> <div> <div id=header> <div id=logo></div> <div id=logo2></div> </div> <div id=container> <ul id=nav> <?php foreach (Page(G()->SET['cms']['backend']->v)->Childs('navi') as $C) { ?> <li class="<?php echo $Page->in($C) ? 'active' : ''; ?> "> <a class=item href="<?php echo $C->url(); ?> " style="background-image:url(<?php echo path2uri($C->Cont(1)->modPath); ?> pub/16.png)"> <?php echo $C->title(); ?>
function shift($dep = 0, $period = 0) { $this->data['title'] = $this->title; permission(); $data['path_file'] = $this->filename; permissionkaryawan($this->session->userdata('webmaster_id'), $data['path_file']); $data['main_content'] = $data['path_file']; $data['filename'] = $this->filename; $data['title'] = $this->title; $path_paging = base_url() . $this->filename . "/main/" . $dep . "/" . $period; $uri_segment = 5; $pg = $this->uri->segment($uri_segment); $per_page = 15; //End Global //$data['opt_pic'] = GetOptPIC(); $data['opt_pic'][''] = ""; //$data['opt_dep'] = GetOptDepartment(); //$data['opt_dep'][''] = ""; $filter = array("bulan" => "order/asc", "tahun" => "order/asc", "person_nm" => "order/asc"); //$filter = array("tahun"=> "order/asc", "bulan"=> "order/asc", "person_nm"=> "order/asc"); $filter_where_in = array(); if ($dep && $dep != "-") { $exp = explode("-", $dep); $dep = array(); foreach ($exp as $r) { $dep[] = $r; } $filter_where_in['id_department'] = $dep; } else { $dep = array(); } if ($period) { $period = urldecode($period); } else { $period = date("M Y"); } $filter['bulan'] = "where/" . GetMonthIndex(substr($period, 0, 3)); $filter['tahun'] = "where/" . substr($period, 4, 4); $data['dep'] = $dep; $data['period'] = $period; $data['grid'] = array("Name", "Bulan", "Shift 1", "Shift 2", "Shift 3", "Reguler", "Off"); $data['query_all'] = GetAll('kg_view_jadwal_shift', $filter, $filter_where_in); $filter['limit'] = $pg . "/" . $per_page; $data['query_list'] = GetAll('kg_view_jadwal_shift', $filter, $filter_where_in); $data['list'] = array("person_nm", "bulan", "jum_p", "jum_s", "jum_m", "jum_ns", "jum_off"); //lastq(); //Page $pagination = Page($data['query_all']->num_rows(), $per_page, $pg, $path_paging, $uri_segment); if (!$pagination) { $pagination = "<strong>1</strong>"; } $data['pagination'] = $pagination; //End Page $this->load->view('shift', $data); }
<a href="<?php echo $href; ?> " class=-title><?php echo (string) $C->Title() ? $C->Title() : $P->Title(); ?> </a> <?php if ($Cont->SET['breadcrumb']->setType('bool')->v) { ?> <div class=-breadcrumb> <?php $all = array(); foreach (Page($id)->Path() as $PathP) { if ($PathP->id === 1) { continue; } //if ($PathP === $P) continue; $all[] = qgCms_link($PathP); } echo implode($separator, $all); ?> </div> <?php } ?> <a href="<?php echo $href;
static function clipboardSet($pid) { if ($pid && Page($pid)->access() < 2) { return; } G()->SET['cms']['clipboard']->setUser((int) $pid); G()->Answer = array('cmsInfo' => L('Gehen Sie zu einer andere Seite und fügen Sie den Inhalt ein')); }
function insertBefore($page, $before = null) { $Page = Page($page); $Before = Page($before); if ($this->in($Page)) { return false; } $type = $Page->vs['type']; $sort = null; $i = 0; foreach ($this->Childs(array('type' => $type)) as $Child) { if ($Page === $Child) { continue; } if ($Before === $Child) { $sort = $i++; } $Child->_setVs(array('sort' => $i++)); } $sort = $sort !== null ? $sort : $i++; $Page->_setVs(array('basis' => $this, 'sort' => $sort)); $Page->Parent = $Page->Path = $this->Childs = $this->Bough = null; // clear cache $Page->urlsSeoGen(); // generate urls //cms::buildLftRgt(); return true; }
static function onBefore($fn, $pid) { if (Page($pid)->access() < 2) { return false; } }
height:16px; width:16px; float:left; } .minus { background-image:url(<?php echo sysURL; ?> cms/pub/css/pix/open_minus.png); } .plus { background-image:url(<?php echo sysURL; ?> cms/pub/css/pix/open_plus.png); } </style> <?php foreach (Page($rootPageNode)->Path() as $C) { ?> <a href="<?php echo Url()->addParam('rp', $C); ?> "><?php echo trim($C->title()) ? $C->title() : '(kein Text)'; ?> </a> -> <?php } ?> <br><br> <table class=c1-style> <thead>
// Head banner de présentation if (file_exists("modules/{$ModPath}/html/head.html")) { $Xcontent = join('', file("modules/{$ModPath}/html/head.html")); $Xcontent = meta_lang(aff_langue($Xcontent)); echo $Xcontent; } switch ($op) { case 'sauve': Liste_Page(); Page($page, $row['ranq'] + 1); break; case 'creer': Liste_Page(); Page($page, 1); break; case 'relo': Liste_Page(); Page($page, $ranq); break; default: Liste_Page(); break; } // Foot banner de présentation if (file_exists("modules/{$ModPath}/html/foot.html")) { $Xcontent = join("", file("modules/{$ModPath}/html/foot.html")); $Xcontent .= '<p class="text-xs-right">NPDS WsPad ' . $version . ' by Dev & Jpb </p>'; $Xcontent = meta_lang(aff_langue($Xcontent)); echo $Xcontent; } include 'footer.php';
} } if (!$Childs) { return false; } if ($Cont->SET['level']->v && (int) $Cont->SET['level']->v <= (int) $level) { return ''; } if ($Cont->SET['pathOnly']->v && ($level && !Page()->in($Page))) { return ''; } $level++; $str = '<ul class="cmsChilds' . $Page . '">'; foreach ($Childs as $Page) { $childStr = $getUl($Page); $class = ' class="cmsLink' . $Page->Page . (!$Page->access() ? ' noAccess' : '') . (Page()->in($Page->Page) ? ' cmsInside' : '') . (Page() === $Page->Page ? ' cmsActive' : '') . ($childStr !== false ? ' cmsHasSub' : '') . '"'; $str .= '<li ' . $class . '>'; $str .= cMS_link($Page); if ($Cont->SET['previewText']->v) { $T = $Page->text('preview'); $str .= '<div ' . ($Cont->edit ? 'contenteditable cmstxt=' . $T->id : '') . '>' . $T . '</div>'; } $str .= $childStr; } $str .= '</ul>'; $level--; return $str; }; echo $getUl($Page); ?> </nav><?php
function cmsTextReplaceLinks($treffer) { $P = Page($treffer[1]); return $P->url(); }
<div> <?php $Cont->SET['saveLogin']->setType('bool'); $Cont->SET['history']->setType('bool'); $Cont->SET['forgotPasswordLink']->setType('bool'); if (!$Cont->edit && isset($_SESSION['liveUser'])) { $redirect = (int) $Cont->SET['redirect']->v; if ($redirect) { $P = Page($redirect); header('Location: ' . $_SERVER['SCHEME'] . '://' . $_SERVER['HTTP_HOST'] . $P->url()); } } ?> <?php if (isset(G()->loginError)) { switch (G()->loginError) { case 'username': case 'inactive': case 'password': ?> <div class=loginErrot>Ihr Loginversuch ist fehlgeschlagen</div> <?php } } ?> <?php if (!Usr()->is()) { ?>
function ccategorypage($id, $table, $module, $main_content, $menu, $per_page, $uri_segment, $uri_paging) { $CI =& get_instance(); filter_per_category($id, $module); $data = GetHeaderFooter(1); $data = GetSidebar(); $awal = $CI->uri->segment($uri_segment); $filtercat = array("id_lang" => "where/" . GetIDLang(), "id" => "where/" . $id, "is_publish" => "where/publish"); $category = ViewRowQuery(GetAll($module . "_category", $filtercat)); if ($category) { $data['category'] = $category = $category['title']; } else { $data['category'] = $category = ''; } $filtercats = array("id_lang" => "where/" . GetIDLang(), "is_publish" => "where/publish"); $data['categories'] = GetAll($module . "_category", $filtercats); //if($data['categories']->num_rows() == 0){ // ciredirect(site_url($module)); //} $breadcrumb = ""; $data['main_content'] = $main_content; $data['breadcrumb'] = $breadcrumb; $filter = array("id_lang" => "where/" . GetIDLang(), "id_" . $module . "_category" => "where/" . $id, "is_publish" => "where/publish", "is_featured" => "where/featured", "id" => "order/desc", "limit" => "0/1"); $data['featured'] = $f = GetAll($table, $filter); if ($f) { if ($f->num_rows() > 0) { $fe = $f->row_array(); $featured_id = $fe['id']; } else { $featured_id = 0; } } else { $featured_id = 0; } $filter = array("id !=" => "where/" . $featured_id, "id_lang" => "where/" . GetIDLang(), "id_" . $module . "_category" => "where/" . $id, "is_publish" => "where/publish", "id" => "order/desc", "limit" => $awal . "/" . $per_page); $data['list'] = GetAll($table, $filter); $filter2 = array("id !=" => "where/" . $featured_id, "id_lang" => "where/" . GetIDLang(), "id_" . $module . "_category" => "where/" . $id, "is_publish" => "where/publish", "id" => "order/desc"); $q = GetAll($table, $filter2); $path_paging = site_url($uri_paging); $pagination = Page($q->num_rows(), $per_page, $awal, $path_paging, $uri_segment); if (!$pagination) { $pagination = ""; } $data['pagination'] = $pagination; return $data; }
<h2>Einstellungen</h2> <?php $form = new SettingsEditor($SET); echo $form->show(); ?> </div> <?php } ?> <div class="be_contentTextBox"> <h2>als Seiten / Inhalte Vorhanden</h2> <table> <?php foreach (D()->query("SELECT * FROM page WHERE module = " . D()->quote($name)) as $row) { $P = Page($row['id'], $row); ?> <tr> <td> <?php echo cms_link($P); ?> <?php } ?> </table> </div> <?php if ($Module->server_time) { ?>
if ($page <= 1 || $page == '') { $page = 1; } if ($page >= $page_count) { $page = $page_count; } $select_limit = $page_size; $select_from = ($page - 1) * $page_size . ','; $pre_page = $page == 1 ? 1 : $page - 1; $next_page = $page == $page_count ? $page_count : $page + 1; $pagenav .= "第 {$page}/{$page_count} 页 共 {$rows} 条记录 "; $pagenav .= "<a href='?page=1'>首页</a> "; $pagenav .= "<a href='?page={$pre_page}'>前一页</a> "; $pagenav .= "<a href='?page={$next_page}'>后一页</a> "; $pagenav .= "<a href='?page={$page_count}'>末页</a>"; $pagenav .= " 跳到<select name='topage' size='1' onchange='window.location=\"?page=\"+this.value'>\n"; for ($i = 1; $i <= $page_count; $i++) { if ($i == $page) { $pagenav .= "<option value='{$i}' selected>{$i}</option>\n"; } else { $pagenav .= "<option value='{$i}'>{$i}</option>\n"; } } } // Page分页函数 // 使用示例 Page($page_count, 2); echo $pagenav; ?>
?> "></div> <div class=-drag title="<?php echo L('Verschieben'); ?> "></div> <div class=-mod title="<?php echo L('Module'); ?> "></div> </div> <?php $clipboard = (int) $cmsSET['clipboard']->v; if ($clipboard && Page($clipboard)->access() > 1) { $P = Page($clipboard); ?> <div id=qgCms_clipboardDialog class="qgCMS popup q1Rst" style="position:fixed; background:#fff; z-index:100"> <div class=-head><div class=-item>Aus der Ablage einfügen?</div></div> <div style="padding:10px"> <b><?php echo $P->title(); ?> </b> <i><?php echo $P->vs['module']; ?> </i> <br><br> <button style="padding:5px; font-weight:bold" class=-get>hier einfügen!</button> <button style="padding:5px" class=-cancel>am alten Ort behalten</button>
case '0': echo '---'; break; case '1': echo '<span style="color:' . ($v ? '#666' : '#666') . '" href="">' . ($v ? 'sichtbar' : 'unsichtbar') . '</span>'; break; default: echo '<a onclick="return toggleVisible(this, ' . $SubPage . ')" style="color:' . ($v ? 'green' : 'red') . '" href="">' . ($v ? 'sichtbar' : 'unsichtbar') . '</a>'; } echo '<td>'; $v = $SubPage->vs['searchable']; switch ($SubPage->access()) { case '0': echo '---'; break; case '1': echo '<span style="color:' . ($v ? '#666' : '#666') . '" href="">' . ($v ? 'durchsuchbar' : 'nicht durchsuchbar') . '</span>'; break; default: echo '<a onclick="return toggleSearchable(this, ' . $SubPage . ')" style="color:' . ($v ? 'green' : 'red') . '" href="">' . ($v ? 'durchsuchbar' : 'nicht durchsuchbar') . '</a>'; } echo '<td>'; echo '<span>' . $SubPage->vs['module'] . '</span>'; if ($open) { $rec_createStruct($SubPage); } $level--; } }; $rec_createStruct(Page($rootPageNode));
ini_set('error_append_string', null); } include_once 'ressources/class.templates.inc'; include_once 'ressources/class.ldap.inc'; include_once 'ressources/class.users.menus.inc'; include_once 'ressources/class.wifidog.settings.inc'; $usersmenus = new usersMenus(); if (!$usersmenus->AsSquidAdministrator) { echo FATAL_ERROR_SHOW_128("{ERROR_NO_PRIVS}"); die; } if (isset($_POST["ruleid"])) { Save(); exit; } Page(); function Page() { $ruleid = $_GET["ID"]; $t = time(); $page = CurrentPageName(); $tpl = new templates(); $sock = new wifidog_templates($ruleid); $this_feature_is_disabled_corp_license = $tpl->javascript_parse_text("{this_feature_is_disabled_corp_license}"); $users = new usersMenus(); $CORP = 0; if ($users->CORP_LICENSE) { $CORP = 1; } $html = "<div style='width:98%' class=form>\n\t<table style='width:100%'>\n\t<tr>\n\t\t<td class=legend style='font-size:22px'>{title2}:</td>\n\t\t<td style='width:860px'><textarea \n\t\t\tstyle='width:100%;height:40px;font-size:18px !important;border:4px solid #CCCCCC;font-family:\"Courier New\",\n\t\t\tCourier,monospace;background-color:white;color:black' id='MainTitle-{$t}'>" . utf8_encode($sock->MainTitle) . "</textarea>\n\t\t</td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend style='font-size:22px'>{label} {username}:</td>\n\t\t<td style='width:860px'><textarea \n\t\t\tstyle='width:100%;height:40px;font-size:18px !important;border:4px solid #CCCCCC;font-family:\"Courier New\",\n\t\t\tCourier,monospace;background-color:white;color:black' id='LabelUsername-{$t}'>" . utf8_encode($sock->LabelUsername) . "</textarea>\n\t\t</td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend style='font-size:22px'>{label} {password}:</td>\n\t\t<td style='width:860px'><textarea \n\t\t\tstyle='width:100%;height:40px;font-size:18px !important;border:4px solid #CCCCCC;font-family:\"Courier New\",\n\t\t\tCourier,monospace;background-color:white;color:black' id='LabelPassword-{$t}'>" . utf8_encode($sock->LabelPassword) . "</textarea>\n\t\t</td>\n\t</tr>\t\n\t\n\t<tr>\n\t\t<td class=legend style='font-size:22px'>{welcome_message}:</td>\n\t\t<td style='width:860px'><textarea \n\t\t\tstyle='width:100%;height:70px;font-size:18px !important;border:4px solid #CCCCCC;font-family:\"Courier New\",\n\t\t\tCourier,monospace;background-color:white;color:black' id='WelcomeMessage-{$t}'>" . utf8_encode($sock->WelcomeMessage) . "</textarea>\n\t\t</td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend style='font-size:22px'>{footer_text}:</td>\n\t\t<td style='width:860px'><textarea \n\t\t\tstyle='width:100%;height:70px;font-size:18px !important;border:4px solid #CCCCCC;font-family:\"Courier New\",\n\t\t\tCourier,monospace;background-color:white;color:black' id='FooterText-{$t}'>" . utf8_encode($sock->FooterText) . "</textarea>\n\t\t</td>\n\t</tr>\t\n\t\n\n\t\n\t<tr>\n\t\t<td class=legend style='font-size:22px'>{connection} {button}:</td>\n\t\t<td style='width:860px'><textarea \n\t\t\tstyle='width:100%;height:70px;font-size:18px !important;border:4px solid #CCCCCC;font-family:\"Courier New\",\n\t\t\tCourier,monospace;background-color:white;color:black' id='ConnectionButton-{$t}'>{$sock->ConnectionButton}</textarea>\n\t\t</td>\n\t</tr>\t\n\t\n\t\n\t\t<tr>\n\t\t<td class=legend style='font-size:22px'>{Terms_Conditions_explain}:</td>\n\t\t<td style='width:860px'><textarea \n\t\t\tstyle='width:100%;height:150px;font-size:18px !important;border:4px solid #CCCCCC;font-family:\"Courier New\",\n\t\t\tCourier,monospace;background-color:white;color:black' id='TERMS_EXPLAIN-{$t}'>" . utf8_encode($sock->TERMS_EXPLAIN) . "</textarea>\n\t\t</td>\n\t</tr>\t\n\t\n\t<tr>\n\t\t<td class=legend style='font-size:22px'>{Terms_Conditions}:</td>\n\t\t<td style='width:860px'><textarea \n\t\t\tstyle='width:100%;height:150px;font-size:18px !important;border:4px solid #CCCCCC;font-family:\"Courier New\",\n\t\t\tCourier,monospace;background-color:white;color:black' id='TERMS_CONDITIONS-{$t}'>" . utf8_encode($sock->TERMS_CONDITIONS) . "</textarea>\n\t\t</td>\n\t</tr>\t\n\t\n\t<tr>\n\t\t<td class=legend style='font-size:22px'>{register} {title2}:</td>\n\t\t<td style='width:860px'><textarea \n\t\t\tstyle='width:100%;height:40px;font-size:18px !important;border:4px solid #CCCCCC;font-family:\"Courier New\",\n\t\t\tCourier,monospace;background-color:white;color:black' id='RegisterTitle-{$t}'>" . utf8_encode($sock->RegisterTitle) . "</textarea>\n\t\t</td>\n\t</tr>\n\t\t\n\t<tr>\n\t\t<td class=legend style='font-size:22px'>{register_explain}:</td>\n\t\t<td style='width:860px'><textarea \n\t\t\tstyle='width:100%;height:150px;font-size:18px !important;border:4px solid #CCCCCC;font-family:\"Courier New\",\n\t\t\tCourier,monospace;background-color:white;color:black' id='REGISTER_MESSAGE_EXPLAIN-{$t}'>" . utf8_encode($sock->REGISTER_MESSAGE_EXPLAIN) . "</textarea>\n\t\t</td>\n\t</tr>\t\t\n\t<tr>\n\t\t<td class=legend style='font-size:22px'>{smtp_register_message_success}:</td>\n\t\t<td style='width:860px'><textarea \n\t\t\tstyle='width:100%;height:150px;font-size:18px !important;border:4px solid #CCCCCC;font-family:\"Courier New\",\n\t\t\tCourier,monospace;background-color:white;color:black' id='REGISTER_MESSAGE_SUCCESS-{$t}'>" . utf8_encode($sock->REGISTER_MESSAGE_SUCCESS) . "</textarea>\n\t\t</td>\n\t</tr>\t\n\t<tr>\n\t\t<td class=legend style='font-size:22px'>{ArticaSplashHotSpotRedirectText}:</td>\n\t\t<td style='width:860px'><textarea \n\t\t\tstyle='width:100%;height:40px;font-size:18px !important;border:4px solid #CCCCCC;font-family:\"Courier New\",\n\t\t\tCourier,monospace;background-color:white;color:black' id='ArticaSplashHotSpotRedirectText-{$t}'>" . utf8_encode($sock->ArticaSplashHotSpotRedirectText) . "</textarea>\n\t\t</td>\n\t</tr>\t\n\t\n\t\n\n\t<tr>\n\t\t<td colspan=2 align='right'><hr>" . button("{apply}", "Save{$t}()", "42px") . "</td>\n\t</tr>\n\t</table>\n\t<script>\n\t\n\tvar xSave{$t}= function (obj) {\n\t\tvar results=obj.responseText;\n\t\tif(results.length>3){alert(results);}\n\t}\t\n\t\n\tfunction Save{$t}(){\n\t\tvar CORP={$CORP};\n\t\tif(CORP==0){alert('{$this_feature_is_disabled_corp_license}');return;}\n\t\n\t\n\t\tvar XHR = new XHRConnection();\n\t\tXHR.appendData('ruleid',{$ruleid});\n\t\tXHR.appendData('TERMS_EXPLAIN',encodeURIComponent(document.getElementById('TERMS_EXPLAIN-{$t}').value));\n\t\tXHR.appendData('TERMS_CONDITIONS',encodeURIComponent(document.getElementById('TERMS_CONDITIONS-{$t}').value));\n\t\tXHR.appendData('MainTitle',encodeURIComponent(document.getElementById('MainTitle-{$t}').value));\n\t\tXHR.appendData('WelcomeMessage',encodeURIComponent(document.getElementById('WelcomeMessage-{$t}').value));\n\t\tXHR.appendData('REGISTER_MESSAGE_EXPLAIN',encodeURIComponent(document.getElementById('REGISTER_MESSAGE_EXPLAIN-{$t}').value));\n\t\tXHR.appendData('RegisterTitle',encodeURIComponent(document.getElementById('RegisterTitle-{$t}').value));\n\t\tXHR.appendData('REGISTER_MESSAGE_SUCCESS',encodeURIComponent(document.getElementById('REGISTER_MESSAGE_SUCCESS-{$t}').value));\n\t\tXHR.appendData('ConnectionButton',encodeURIComponent(document.getElementById('ConnectionButton-{$t}').value));\n\t\tXHR.appendData('ArticaSplashHotSpotRedirectText',encodeURIComponent(document.getElementById('ArticaSplashHotSpotRedirectText-{$t}').value));\n\t\tXHR.appendData('FooterText',encodeURIComponent(document.getElementById('FooterText-{$t}').value));\n\t\tXHR.appendData('LabelUsername',encodeURIComponent(document.getElementById('LabelUsername-{$t}').value));\n\t\tXHR.appendData('LabelPassword',encodeURIComponent(document.getElementById('LabelPassword-{$t}').value));\n\t\t\n\t\t\n\t\t\n\t\t\n\t\tXHR.sendAndLoad('{$page}', 'POST',xSave{$t});\n\t\t\n\t}\n</script>"; echo $tpl->_ENGINE_parse_body($html);
$Usr->pw = md5($_POST['pw']); } if (Usr()->superuser) { $Usr->superuser = (int) $_POST['superuser']; } $Usr->__destruct(); } foreach ($_POST['grps'] as $grp_id => $value) { if ($value) { $sql = "REPLACE INTO usr_grp SET grp_id = '" . (int) $grp_id . "', usr_id = '" . (int) $_GET['id'] . "'"; } else { $sql = "DELETE FROM usr_grp WHERE grp_id = '" . (int) $grp_id . "' AND usr_id = '" . (int) $_GET['id'] . "'"; } D()->query($sql); } header('location: ' . Url(Page()->url())); abort(); } $vs = D()->row("SELECT * FROM usr WHERE id = " . (int) $_GET['id']); ?> <div> <h1>Benutzer <?php echo $vs['id']; ?> </h1> <div class=be_contentTextBox> <table class=c1-style> <tr> <td> Active: <td> <input type=hidden name=active value=0>
static function buildLftRgt() { $P = Page(1); D()->query("UPDATE page SET lft = null, rgt = null"); self::_buildLftRgt($P); }
function MakeOnePreset($manifest, $FirstPreset, $PresetCount) { global $CACHE_DIR; global $SQ; global $NL; $id = "presets-" . $FirstPreset . "-" . $PresetCount; $str .= Page("page_presets-" . $FirstPreset . "-" . $PresetCount, "Artist / Album", MakePresetList($manifest, $id, "presets.php", $FirstPreset, $PresetCount), "LinnDS-jukebox", "false", ""); $cachefilename = $CACHE_DIR . "/presets-" . $FirstPreset . "-" . $PresetCount; file_put_contents($cachefilename, $str); return $str; }