<?php namespace qg; if ($Cont->vs['type'] === 'c') { echo L('Inhalt ###2### der Seite ###2###', '<b>' . $Cont->vs['module'] . ' (' . $Cont . ')</b>', cms_link($Cont->Page)); } else { echo L('Seite ###1### der Seite ###2###', '<b>' . strip_tags($Cont->title()) . '</b> (' . $Cont . ')', cms_link($Cont->Parent())); }
<?php namespace qg; $sql = "SELECT log.* FROM log, sess WHERE log.sess_id = sess.id AND log.page_id AND sess.usr_id = " . Usr() . " ORDER BY log.id DESC LIMIT 1,30"; ?> <table style="width:100%"> <?php foreach (D()->query($sql) as $vs) { $L = D()->log->Entry($vs['id']); ?> <tr> <td> <?php echo cms_link($vs['page_id']); ?> <?php $d = strftime('%d', $L->time); $m = strftime('%m', $L->time); $Y = strftime('%Y', $L->time); $H = strftime('%H', $L->time); $M = strftime('%M', $L->time); $nd = strftime('%d'); $nm = strftime('%m'); $nY = strftime('%Y'); $nH = strftime('%H'); $nM = strftime('%M'); ?> <td> <span style="color:<?php echo $d === $nd ? 'red' : '';
</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) { ?> <br> <div class="be_contentTextBox"> <h2>Mit Server vergleichen</h2> <?php // download to temp folder
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[] = cms_link($PathP); } echo implode($separator, $all); ?> </div> <?php } ?> <a href="<?php echo $href; ?> " class=-content> <?php echo cutSearch1($r['text'], $search, 7); ?>
$match = "MATCH (t.text) AGAINST (" . D()->quote(appRequestUri) . ")"; $sql = " SELECT p.*, " . $match . " as _relevance " . " FROM page p INNER JOIN text t on p.title_id = t.id " . " WHERE " . " p.searchable AND " . " (" . $match . " OR t.text LIKE " . D()->quote("%" . appRequestUri . "%") . " ) " . " GROUP BY p.id "; " ORDER BY _relevance "; " LIMIT 100 "; $i = 0; if (appRequestUri) { foreach (D()->query($sql) as $row) { $P = Page($row['id'], $row); if (!$P->access()) { continue; } // if (!$P->Page->vs['searchable']) continue; if (++$i >= 4) { break; } echo '<li>' . cms_link($P); } } ?> </ul> <?php D()->query("INSERT INTO cms_cont_notfound SET request = " . D()->quote((string) Url()) . ", log_id = " . liveLog::$id); if ($Cont->edit) { echo '<div style="background:#eeeeaa; padding:10px; box-shadow:0 0 8px rgba(0,0,0,.5)">'; html::addJSFile(sysURL . 'cms/pub/js/frontend.js'); if (isset($_POST['setRedirect'])) { $sql = "INSERT INTO page_redirect SET " . " request = " . D()->quote(appRequestUri) . ", " . " redirect = " . D()->quote($_POST['redirect']) . " "; D()->query($sql); } ?> <br><h2>Admin: Direkt-Link definieren nach...</h2>
foreach ($Page->Childs('readable') as $C) { if ($C->vs['visible'] xor $Cont->SET['invertVisible']->v) { $Childs[] = $C; } } if (!$Childs) { return false; } if ($Cont->SET['level']->v && (int) $Cont->SET['level']->v <= (int) $level) { 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
$sql = "SELECT * FROM page ORDER BY log_id_ch DESC LIMIT 70"; foreach (D()->query($sql) as $vs) { if (Page($vs['id'])->access() < 2) { continue; } $Ls[$vs['id']] = D()->log->Entry($vs['log_id_ch']); } ?> <table style="width:100%" class=noWrap> <?php foreach ($Ls as $pid => $L) { ?> <tr> <td> <?php echo cms_link($pid); ?> <td style="width:160px; color:<?php echo Usr()->id == $L->sess()->usr()->id ? 'red' : ''; ?> " title="<?php echo hee($L->sess()->usr()->firstname . ' ' . $L->sess()->usr()->lastname); ?> "> <?php echo $L->sess()->usr()->email; ?> <?php $d = strftime('%d', $L->time); $m = strftime('%m', $L->time); $Y = strftime('%Y', $L->time);
?> ; // not inherit ? set it to what it was inherited $fn('page::setPublic')(<?php echo $Cont; ?> , value); cms.panel.tabs.show('access.grp') }); </script> </label> <br> <?php if ($Cont->vs['access'] === null) { ?> Vererbt von <?php echo cms_link($Cont->accessInheritParent()); } else { ?> <div style="overflow:auto; max-height:500px"> <table id=cmsGrpAccessTable class=-styled style="width:100%"> <thead> <tr> <td><b><?php echo L('Gruppenname'); ?> </b> <td style="text-align:center"><b><?php echo L('kein Zugriff'); ?> </b> <td style="text-align:center"><b><?php