function navigation($path, $root_item = false, $max_depth = false, $level = 1) { global $_PATH; $dir_items = new DirectoryIterator($path); $dir_exclude = ['.', '..', '.DS_Store', '404.md', 'index.md']; $dir_item_ext = PHP_SAPI == "cli" ? '.html' : ''; $dir_files = []; $i = iterator_count($dir_items); foreach ($dir_items as $dir_item) { if (!in_array($dir_item, $dir_exclude)) { // iterator grows... $i++; // Create a link $_link = str_replace($_PATH['content'], '', $dir_item->getPathname()); $_link = $_PATH['url'] . str_replace('.md', '', $_link); $_link .= $dir_item->isDir() ? '/' : $dir_item_ext; // Create a default title based on the filename $_name = substr($dir_item->getFilename(), -3) == '.md' ? str_replace('.md', '', $dir_item->getFilename()) : $dir_item->getFilename(); $_name = ucfirst(str_replace('-', ' ', $_name)); // Get the path $_path = $dir_item->getPathname(); // get the file to extract the content $_file = $dir_item->isDir() ? $dir_item->getPathname() . '/index.md' : $dir_item->getPathname(); // replace Title with metadata.title $_file_contents = extract_content($_file); $_name = !empty($_file_contents['metadata']['title']) ? $_file_contents['metadata']['title'] : $_name; // Get metadata order // TODO : Check for collisions $_order = isset($_file_contents['metadata']['order']) && is_numeric($_file_contents['metadata']['order']) ? $_file_contents['metadata']['order'] : $i; // Populate the array $dir_files[$_order] = ['name' => $_name, 'path' => $_path, 'file' => $_file, 'link' => $_link]; } } // Array sort by key ksort($dir_files); // Create the HTML output $output_html = '<ul>'; // Add first 'home' item $output_html .= $level == 1 && $root_item ? '<li><a href="' . $_PATH['url'] . '">' . $root_item . '</a></li>' : ''; foreach ($dir_files as $dir_file) { $output_html .= '<li>'; $output_html .= '<a href="' . $dir_file['link'] . '">' . $dir_file['name'] . '</a>'; // Recursive Looping... if (is_dir($dir_file['path'])) { $level++; if (empty($max_depth) || $level <= $max_depth) { $output_html .= navigation($dir_file['path'], $max_depth, $level); } $level--; } $output_html .= '</li>'; } $output_html .= '</ul>'; // Return the created HTML return $output_html; }
?> <tr class="row0"> <td colspan="6" align="center">No Items</td> </tr> <?php } ?> </table> <input type="hidden" name="task" value="" /> </form> <div style="height: 30px; clear:both;"></div> <?php $url = "current-commissions.php?items=" . ITEMS_PER_PAGE; navigation($accounts_num, $start, count($accounts), $url, ITEMS_PER_PAGE); ?> <script type="text/javascript"> function setAction() { var suser = $("#search_user").val(); var link = 'current-commissions.php'; link += suser? "?su="+suser :""; document.location.href = link; } $(document).ready(function(){ jQuery.fn.enterEscape = function() { this.keypress( function(e) {
$tpl->set('{age}', user_age($user_birthday[0], $user_birthday[1], $user_birthday[2])); if ($get_user_id == $user_info['user_id']) { $tpl->set('[owner]', ''); $tpl->set('[/owner]', ''); } else { $tpl->set_block("'\\[owner\\](.*?)\\[/owner\\]'si", ""); } if ($row['friend_id'] == $user_info['user_id']) { $tpl->set_block("'\\[viewer\\](.*?)\\[/viewer\\]'si", ""); } else { $tpl->set('[viewer]', ''); $tpl->set('[/viewer]', ''); } $tpl->compile('content'); } navigation($gcount, $friends_sql['user_friends_num'], $config['home_url'] . 'friends/' . $get_user_id . '/page/'); } else { msgbox('', $lang['no_requests'], 'info_2'); } } else { msgbox('', $lang['no_requests'], 'info_2'); } } else { $user_speedbar = $lang['error']; msgbox('', $lang['no_notes'], 'info'); } } $db->free(); $tpl->clear(); } else { $user_speedbar = 'Информация';
if (count($errors) == 1) { $message = "There was 1 error in the form."; } else { $message = "There were " . count($errors) . " errors in the form."; } } // END FORM PROCESSING } find_selected_page(); include "includes/header.php"; ?> <table id="structure"> <tr> <td id="navigation"> <?php echo navigation($sel_subject, $sel_page, $public = false); ?> <br /> <a href="new_subject.php">+ Add a new subject</a> </td> <td id="page"> <h2>Adding New Page</h2> <?php if (!empty($message)) { echo "<p class=\"message\">" . $message . "</p>"; } ?> <?php if (!empty($errors)) { display_errors($errors); }
function LibReferencePage(&$ref, $lib, $translation, $lang = 'en') { global $LANGUAGES; $this->langdir = 'reference/' . ($lang == 'en' ? '' : "{$lang}"); $this->libsdir = $this->langdir . '/libraries'; $this->libdir = $this->libsdir . "/{$lib}"; $this->filepath = $this->libdir . '/' . $ref->name(); $title = $ref->title() . ($lang == 'en' ? '' : " \\ {$LANGUAGES[$lang][0]}") . ' \\ Language (API) \\ Processing 2+'; $xhtml = new xhtml_page(TEMPLATEDIR . 'foundation-template.translation.html'); $xhtml->set('header', HEADER_LINK); $xhtml->set('title', $title); $xhtml->set('bodyid', 'Library-ref'); if ($lang == 'en') { $xhtml->set('navigation', navigation('Libraries')); } else { $xhtml->set('navigation', navigation_tr('Libraries')); } $piece = new xhtml_piece(TEMPLATEDIR . 'foundation-template.reference.item.html'); $xhtml->set('content_for_layout', $piece->out()); $xhtml->set('reference_nav', library_nav($lib)); $xhtml->set('language_nav', language_nav($lang)); $xhtml->set('content', $ref->display()); foreach ($translation->attributes as $key => $value) { $xhtml->set($key, $value); } foreach ($translation->meta as $key => $value) { $xhtml->set($key, $value); } //$xhtml->set('updated', date('F d, Y h:i:sa T', filemtime(CONTENTDIR.'/'.$ref->filepath))); $this->xhtml = $xhtml; $this->language($lang); }
</script> <form action="?mod=massaction&act=groups" method="post" name="edit"> <div style="background:#f0f0f0;float:left;padding:5px;width:100px;text-align:center;font-weight:bold;margin-top:-5px">Создатель</div> <div style="background:#f0f0f0;float:left;padding:5px;width:243px;text-align:center;font-weight:bold;margin-top:-5px;margin-left:1px">Сообщество</div> <div style="background:#f0f0f0;float:left;padding:5px;width:75px;text-align:center;font-weight:bold;margin-top:-5px;margin-left:1px">Участников</div> <div style="background:#f0f0f0;float:left;padding:5px;width:110px;text-align:center;font-weight:bold;margin-top:-5px;margin-left:1px">Дата создания</div> <div style="background:#f0f0f0;float:left;padding:4px;width:20px;text-align:center;font-weight:bold;margin-top:-5px;margin-left:1px"><input type="checkbox" name="master_box" title="Выбрать все" onclick="javascript:ckeck_uncheck_all()" style="float:right;"></div> <div class="clr"></div> {$users} <div style="float:left;font-size:10px"> <font color="red">Удаленные сообщества помечены красным цветом</font><br /> <font color="blue">Забаненые сообщества помечены синим цветом</font> </div> <div style="float:right"> <select name="mass_type" class="inpu" style="width:260px"> <option value="0">- Действие -</option> <option value="1">Удалить сообщества</option> <option value="2">Заблокировать сообщества</option> <option value="3">Воостановить сообщества</option> <option value="4">Разблокировать сообщества</option> </select> <input type="submit" value="Выолнить" class="inp" /> </div> </form> <div class="clr"></div> HTML; $query_string = preg_replace("/&page=[0-9]+/i", '', $_SERVER['QUERY_STRING']); echo navigation($gcount, $numRows['cnt'], '?' . $query_string . '&page='); htmlclear(); echohtmlend();
require_once "../../includes/initialize.php"; selected_page(); ?> <?php include_layout_template('admin_header'); ?> <nav> <br> <a href="admin.php">« Main Menu</a> <br> <?php echo navigation($current_subject, $current_page); ?> </nav> <!-- end nav --> <div class = "page"> <?php if (!empty($message)) { echo "<div class = \"message\">{$message}</div>"; } ?> <?php if ($current_subject) { ?> <h2>Manage Subjects <?php
<?php if (isset($_GET["subject"])) { $selected_subject_id = $_GET["subject"]; $selected_page_id = null; } elseif (isset($_GET["page"])) { $selected_subject_id = null; $selected_page_id = $_GET["page"]; } else { $selected_subject_id = null; $selected_page_id = null; } ?> <div id="main"> <div id="navigation"> <?php echo navigation($selected_subject_id, $selected_page_id); ?> </div> <div id="page"> <h2>Manage Content</h2> <?php echo $selected_subject_id; ?> <br /> <?php echo $selected_page_id; ?> </div> </div> <?php
<?php require __DIR__ . '/../../../init.php'; redirect_authed($user); $error = array(); if (isset($_POST['email'])) { $email = $_POST['email']; $email_err = validate_email($email); if (strlen($email_err) > 0) { $error['email'] = $email_err; } if (count($error) == 0) { $uuid = $user->set_token(gen_uuid(), $email); if (!is_production()) { die("<a href='http://localhost:8080/auth/confirm.php?token={$uuid}'>login</a>"); } send_login_mail($email, $uuid); redirect('/auth/confirm.php'); } } echo html(title('Homespot - Sign In/Up'), navigation($user->is_authed()) . content(h1("Sign In/Up") . p('This website uses cookies to check if you are authenticated or not.') . p('By signing in or up you permit us to do so.') . form('post', input_err($error, 'email') . input('email') . submit())));
<input type="submit" name="deletephrases" value=" <?php echo $gXpLang['delete']; ?> " onclick="return del_confirm('selected phrases?') " /> </div> <br /> </form> <div style="height: 5px;"></div> <?php $url = "manage-language.php?view=" . $_GET['view']; $url .= $_GET['search'] ? "&search=" . $_GET['search'] : ""; $url .= $_GET['lang'] ? "&lang=" . $_GET['lang'] : ""; $url .= $_GET['search_type'] ? "&search_type=" . $_GET['search_type'] : ""; $url .= $_GET['phrase_group'] ? "&phrase_group=" . $_GET['phrase_group'] : ""; $url .= "&items=" . ITEMS_PER_PAGE; navigation($phrase_num, $start, count($lang_strings), $url, ITEMS_PER_PAGE); } elseif ('download' == $_GET['view']) { /** language file import actions **/ echo "<form action=\"manage-language.php?view=download\" method=\"post\" enctype=\"multipart/form-data\">"; echo '<table cellspacing="0" cellpadding="0" width="100%" class="adminlist">'; echo '<tr>'; echo "<th colspan=\"2\" class=\"last\">{$gXpLang['import']}</th>"; echo '</tr>'; echo '<tr>'; echo "<td width=\"200\">{$gXpLang['import_from_pc']}</td>"; echo "<td><input type=\"file\" name=\"language_file\" size=\"40\" /></td>"; echo '</tr>'; echo '<tr>'; echo "<td>{$gXpLang['import_from_server']}</td>"; echo "<td><input type=\"text\" size=\"40\" name=\"language_file2\" value=\"../backup/\" /></td>"; echo '</tr>';
$dir = "gallery"; $files = scandir($dir); $pages = 0; $j = 0; $items[0]; while ($i < count($files)) { if ($j == 8) { $j = 0; $pages = $pages + 1; } $files[$i] = "gallery/" . $files[$i]; $items[$pages] = $items[$pages] . "<div><a href=" . $files[$i] . " rel='lightgallery[flowers]'><img src='" . $files[$i] . "'/></a></div>"; $i++; $j++; } navigation($form_action, $items, $pages); ?> </div> </div> </div> <div class="footer site"> <?php include "parts/footer.html"; ?> </div> <div class="top">vverh</div> <div class="bottom">vniz</div> <script type="text/javascript">
<ul class="tabs"> <li><?php echo anchor($this->uri->segment(1) . '/' . $this->uri->segment(2) . '/' . $this->uri->segment(3) . '/', 'Perfil', navigation($this->uri->segment(4), FALSE)); ?> </li> <li><?php echo anchor($this->uri->segment(1) . '/' . $this->uri->segment(2) . '/' . $this->uri->segment(3) . '/descripcion', 'Descripción', navigation($this->uri->segment(4), 'descripcion')); ?> </li> <li><?php echo anchor($this->uri->segment(1) . '/' . $this->uri->segment(2) . '/' . $this->uri->segment(3) . '/sexualidad', 'Sexualidad', navigation($this->uri->segment(4), 'sexualidad')); ?> </li> <li><?php echo anchor($this->uri->segment(1) . '/' . $this->uri->segment(2) . '/' . $this->uri->segment(3) . '/galeria', 'Galeria', navigation($this->uri->segment(4), 'galeria')); ?> </li> </ul> <div class="box-wrapper"> <? if( ! $this->uri->segment(4)): ?> <div id="one" class="content-box current"> <div class="col-one col"> <? if($fotoperfil) { echo '<img src="'.base_url().'upload/'.img_perfil($fotoperfil).'" alt="" width="200"/>'; }else { echo '<img src="http://gayria.com/imagenodisp.jpg" alt="" width="200"/>';
<?php include "includes/connection.php"; include "includes/functions.php"; include "includes/headers.php"; find_selected_page(); ?> <table id="structure"> <tr> <td id="navigation"> <?php echo navigation($select_sub, $select_page, false); ?> </td> <td id="page"> <?php if (!is_null($select_sub)) { ?> <h2><?php echo $select_sub["menu_name"]; ?> </h2> <?php echo "<p>Welcome to {$select_sub[menu_name]} page.</p>"; ?> <?php } elseif (!is_null($select_page["menu_name"])) { ?> <h2><?php echo $select_page["menu_name"]; ?>
<div id="mainMenu"> <div class="float-right" style="padding:0.5em;text-align:right"> <?php if($this->user_lib->logged_in()): ?> <?php echo sprintf(lang('logged_in_welcome'), $user->first_name.' '.$user->last_name );?> <a href="<?php echo site_url('users/logout');?>"><?php echo lang('logout_label');?></a> <?php if($this->settings->item('enable_profiles')): ?> | <?php echo anchor('edit-profile', lang('edit_profile_label')); ?> <?php endif; ?> | <?php echo anchor('edit-settings', lang('settings_label')); ?> <?php if( $this->user_lib->check_role('admin') ): ?> | <?php echo anchor('admin', lang('cp_title'), 'target="_blank"'); ?> <?php endif; ?> <?php else: ?> <?php echo anchor('users/login', lang('user_login_btn')); ?> | <?php echo anchor('register', lang('user_register_btn')); ?> <?endif; ?> </div> <ul class="float-left"> <?php foreach(navigation('header') as $nav_link): ?> <li><?php echo anchor($nav_link->url, $nav_link->title, $nav_link->current_link ? 'class="here"' : ''); ?></li> <?php endforeach; ?> </ul> </div>
/** * string navigation(array $links) * * @param array $links * array( * string, * array( * string, * string, * ), * string * ) * @return string list of links * @access public */ function navigation($links) { $_html = HTML::start('ul'); foreach ($links as $value) { if (is_array($value)) { $_html .= navigation($value); } else { $_html .= HTML::start('li') . $value; } if (!is_array(next($links))) { $_html .= HTML::end('li'); } } $_html .= HTML::end('ul'); return $_html; }
?> "><?php echo $gXpLang['continue']; ?> </a></td> </tr> <?php } if (count($commissions) == 0) { ?> <tr class="row0"> <td colspan="5" align="center">No Items</td> </tr> <?php } ?> </table> <input type="hidden" name="task" value="" /> </form> <div style="height: 30px;clear:both;"></div> <?php $url = "pay-affiliates.php?items=" . ITEMS_PER_PAGE; navigation($commissions_num, $start, count($commissions), $url, ITEMS_PER_PAGE); ?> <!--main part ends--> <?php require_once 'footer.php';
?> <!DOCTYPE html> <html> <head> <?php head('브리드 복싱 & 크로스핏 - 관리자메뉴', array('/common/font-awesome/css/font-awesome.css', '/common/fileupload/css/jquery.fileupload.css', '/common/css/table-responsive.css', '/community/css/community.css')); ?> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script> <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script> <![endif]--> </head> <body> <?php login(); navigation(); ?> <section id="main-content"> <section class="wrapper"> <div class="container"> <h3><i class="fa fa-angle-right"></i> 사부님의 노트</h3> <div class="form-horizontal"> <div class="form-group mt"> <label for="title" class="col-sm-1 control-label">제목</label> <div class="col-sm-6"> <input id="title" type="text" name="title" class="form-control" placeholder="제목을 입력하세요."> </div> </div> </div> <textarea name="content" class="write form-control" placeholder="내용을 입력하세요."></textarea> <form id="fileupload" method="POST" enctype="multipart/form-data">
function body($header, $subtitle = ' ', $content, $navigation) { $return .= ' <body> <div id="header"> <h1 onclick="goHome()" id="title">' . headCheck($header) . '</h1> </div> <div id="nav">' . navigation($navigation) . '</div> <div id="content"> <h1>' . $subtitle . '</h1> ' . $content . ' </div> '; echo $return; }
$message = "The subject was successfully updated"; } else { $message = "The subject update failed: " . mysql_error(); } } else { $message = "There were " . count($errors) . " errors in the form."; } } find_selected_page(); include "includes/header.php"; ?> <table id="structure"> <tr> <td id="navigation"> <?php echo navigation($sel_subject, $sel_page); ?> </td> <td id="page"> <h2>Edit Subject: <?php echo $sel_subject['menu_name']; ?> </h2> <?php if (!empty($message)) { echo "<p class=\"message\">" . $message . "</p>"; } if (!empty($errors)) { echo "<p class=\"errors\">"; echo "Please review the following fields:<br />"; foreach ($errors as $error) {
$tpl->set('{adres}', $row['adres']); } else { $tpl->set('{adres}', 'public' . $row['id']); } $tpl->set('{name}', stripslashes($row['title'])); $tpl->set('{traf}', $row['traf'] . ' ' . gram_record($row['traf'], 'groups_users')); if ($act != 'admin') { $tpl->set('[admin]', ''); $tpl->set('[/admin]', ''); } else { $tpl->set_block("'\\[admin\\](.*?)\\[/admin\\]'si", ""); } if ($row['photo']) { $tpl->set('{photo}', "/uploads/groups/{$row['id']}/100_{$row['photo']}"); } else { $tpl->set('{photo}', "{theme}/images/no_ava_groups_100.gif"); } $tpl->compile('content'); } if ($act == 'admin') { $admn_act = 'act=admin&'; } navigation($gcount, $owner['user_public_num'], 'groups?' . $admn_act . 'page='); } } $tpl->clear(); $db->free(); } else { $user_speedbar = $lang['no_infooo']; msgbox('', $lang['not_logged'], 'info'); }
$tpl->set('{author-id}', $row['auser_id']); $tpl->compile('content'); } } elseif ($type == 6) { $tpl->load_template('search/result_groups.tpl'); foreach ($sql_ as $row) { if ($row['photo']) { $tpl->set('{ava}', '/uploads/groups/' . $row['id'] . '/100_' . $row['photo']); } else { $tpl->set('{ava}', '{theme}/images/no_ava_groups_100.gif'); } $tpl->set('{public-id}', $row['id']); $tpl->set('{name}', stripslashes($row['title'])); $tpl->set('{note-id}', $row['id']); $tpl->set('{traf}', $row['traf'] . ' ' . gram_record($row['traf'], 'groups_users')); if ($row['adres']) { $tpl->set('{adres}', $row['adres']); } else { $tpl->set('{adres}', 'public' . $row['id']); } $tpl->compile('content'); } } else { msgbox('', $lang['search_none'], 'info_2'); } navigation($gcount, $count['cnt'], '/index.php?' . $query_string . '&page='); } else { msgbox('', '', 'info_search'); } $tpl->clear(); $db->free();
<ul class="navigation"> <?php foreach (navigation($group) as $link) { ?> <li><?php echo anchor($link->url, $link->title, 'target="' . $link->target . '"'); ?> </li> <?php } ?> </ul>
<div class="section" id="footer"> <div class="wrapper narrow"> <div class="column-100"> <hr class="divider" /> <div class="navigation"> <div class="nav-container"> <?php // render navigation // relative paths: 'Example' => 'example' // absolute paths: 'Example' => 'http://example.com' navigation(array('Footer Page' => 'page', 'Photography' => 'photography', 'Twitter' => 'https://twitter.com/thomweerd', 'Dribbble' => 'https://dribbble.com/thom')); ?> </div> </div> </div> </div> </div> <script src="<?php print HTTP; ?> assets/js/site.js"></script> </body> </html>
print "<td><center><a href=\"client," . $new['c_type_e'] . "," . $new["c_id_s"] . ",{$offset}\"><img src=\"img/edit.png\" border=0></a></center></td>"; } else { print "<td> </td>"; } if (checkPerm('cli', 4)) { print "<td><center><a href=\"javascript:;\" onClick=\"if (confirm('Jesteś pewien?\\nUsuwasz tego " . ($new['c_type_e'] == 'd' ? 'dłużnika' : 'wierzyciela') . "')) {document.forms.delete_client_" . $new["c_id_s"] . ".submit();}\"><img src=\"img/del.png\" border=0></a></center></td>"; } else { print "<td> </td>"; } print "</tr>"; } } } } if ($razem) { print "<tr><td colspan=\"11\" class=\"p10\">" . navigation($razem, $count, "sel", "", $offset, 0, 30, $action) . "</td></tr>"; } if (checkPerm('cli', 4)) { print "<tr><td colspan=\"11\" class=\"p10r\">"; print "<input type='image' id='submit2' name='submit2' src='./img/button_usun_zaznaczone.png' onclick=\"if (!confirm('Jesteś pewien? Usuniesz WSZYSTKICH ZAZNACZONYCH " . ($typ == 'd' ? 'dłużników' : 'wierzycieli') . "')) return false;\" border=0 style='vertical-align: middle;'>"; print "</td></tr>"; } ?> </form> </table> <p><center><a href="#top">[na górę strony]</a></center></p> <?php } } else { print "Nieprawidłowy adres"; }
<?php require_once "databases.php"; require_once "functions.php"; navigation($user_id); try { $conn = new PDO("mysql:host={$servername};dbname={$dbname}", $user, $pass); $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $sql = "SELECT users.user_id AS UserId, loans.user_id AS user_loan_id, loans.id AS LoanId, users.fname, users.lname,\r\n users.gender, users.email, users.user_type, users.user_status, users.reg_date, users.id_no FROM users\r\n INNER JOIN loans ON loans.user_id=users.user_id"; $result = $conn->query($sql); $result->setFetchMode(PDO::FETCH_ASSOC); echo "<table>"; echo "<thead>"; echo "<tr>"; echo "<th>First Name</th>"; echo "<th>Last Name</th>"; echo "<th>ID Number</th>"; echo "<th>Gender</th>"; echo " <th>E-mail</th>"; echo "<th>User Type</th>"; echo "<th>Date Joined</th>"; echo "<th>User Status</th>"; echo " <th>Action</th>"; echo "</tr>"; echo "</thead>"; echo "<tbody>"; while ($loanee = $result->fetch()) { $loanee_user_id = test_input($loanee['UserId']); $loanee_user_loan_id = test_input($loanee['user_loan_id']); $loanee_loan_id = test_input($loanee['LoanId']); $loanee_fname = test_input($loanee['fname']);
<div class="width-half float-left"> ©2008 <?php echo $this->settings->item('site_name'); ?> <span class="grey">|</span> valid <a href="http://validator.w3.org/check?uri=referer" title="Validate XHTML">XHTML</a> <span class="grey">|</span> should be valid <a href="http://jigsaw.w3.org/css-validator" title="Validate CSS">CSS</a> </div> <div class="width-half float-right"> <?php foreach (navigation('footer') as $nav_link) { ?> <?php echo anchor($nav_link->url, $nav_link->title); ?> <?php } ?> </div>
$attach_filesD = ''; } $tpl->set('{attach}', $attach_filesP . $attach_filesV . $attach_filesS . $attach_filesA . $attach_filesVX . $attach_filesD); $tpl->set('{user-id}', $row['from_user_id']); $tpl->set('{name}', $row['user_search_pref']); $tpl->set('{mid}', $row['id']); OnlineTpl($row['user_last_visit']); megaDate($row['date'], 1, 1); if ($row['pm_read'] == 'no') { $tpl->set('[new]', ''); $tpl->set('[/new]', ''); } else { $tpl->set_block("'\\[new\\](.*?)\\[/new\\]'si", ""); } $tpl->set('{folder}', 'inbox'); $tpl->compile('content'); } if ($msg_count['cnt'] > $gcount) { navigation($gcount, $msg_count['cnt'], '/index.php?go=messages' . $query_string . '&page='); } } else { msgbox('', $lang['no_msg'], 'info_2'); } } } $tpl->clear(); $db->free(); } else { $user_speedbar = $lang['no_infooo']; msgbox('', $lang['not_logged'], 'info'); }
$output->addLink('first', './view.php?mode=log' . $get_string . '&page=1', $lang['First_page']); $output->addLink('prev', './view.php?mode=log' . $get_string . '&page=' . ($page_id - 1), $lang['Prev_page']); } if ($page_id < $total_pages) { $output->addLink('next', './view.php?mode=log' . $get_string . '&page=' . ($page_id + 1), $lang['Next_page']); $output->addLink('last', './view.php?mode=log' . $get_string . '&page=' . $total_pages, $lang['Last_page']); } if (is_array($logdata) && !empty($files_count[$log_id])) { $sql = "SELECT jf.file_id, jf.file_real_name, jf.file_physical_name, jf.file_size, jf.file_mimetype\n\t\t\t\tFROM " . JOINED_FILES_TABLE . " AS jf\n\t\t\t\t\tINNER JOIN " . LOG_FILES_TABLE . " AS lf ON lf.file_id = jf.file_id\n\t\t\t\t\tINNER JOIN " . LOG_TABLE . " AS l ON l.log_id = lf.log_id\n\t\t\t\t\t\tAND l.liste_id = {$listdata['liste_id']}\n\t\t\t\t\t\tAND l.log_id = {$log_id}\n\t\t\t\tORDER BY jf.file_real_name ASC"; if (!($result = $db->query($sql))) { trigger_error('Impossible d\'obtenir la liste des fichiers joints au log', ERROR); } $logdata['joined_files'] = $result->fetchAll(); } } $navigation = navigation(sessid('./view.php?mode=log' . $get_string), $total_logs, $log_per_page, $page_id); $u_form = './view.php?mode=log' . ($log_id > 0 ? '&id=' . $log_id : ''); $u_form .= $action != '' ? '&action=' . $action : ''; $u_form .= $page_id > 1 ? '&page=' . $page_id : ''; $get_string .= $page_id > 1 ? '&page=' . $page_id : ''; $output->addHiddenField('sessid', $session->session_id); $output->page_header(); $output->set_filenames(array('body' => 'view_logs_body.tpl')); $output->assign_vars(array('L_EXPLAIN' => nl2br($lang['Explain']['logs']), 'L_TITLE' => $lang['Title']['logs'], 'L_CLASSEMENT' => $lang['Classement'], 'L_BY_SUBJECT' => $lang['By_subject'], 'L_BY_DATE' => $lang['By_date'], 'L_BY_ASC' => $lang['By_asc'], 'L_BY_DESC' => $lang['By_desc'], 'L_CLASSER_BUTTON' => $lang['Button']['classer'], 'L_SUBJECT' => $lang['Log_subject'], 'L_DATE' => $lang['Log_date'], 'SELECTED_TYPE_SUBJECT' => $sql_type == 'log_subject' ? ' selected="selected"' : '', 'SELECTED_TYPE_DATE' => $sql_type == 'log_date' ? ' selected="selected"' : '', 'SELECTED_ORDER_ASC' => $sql_order == 'ASC' ? ' selected="selected"' : '', 'SELECTED_ORDER_DESC' => $sql_order == 'DESC' ? ' selected="selected"' : '', 'PAGINATION' => $navigation, 'PAGEOF' => $total_logs > 0 ? sprintf($lang['Page_of'], $page_id, ceil($total_logs / $log_per_page)) : '', 'NUM_LOGS' => $total_logs > 0 ? '[ <b>' . $total_logs . '</b> ' . $lang['Module']['log'] . ' ]' : '', 'WAROOT' => WA_ROOTDIR . '/', 'S_SESSID' => $session->session_id, 'S_HIDDEN_FIELDS' => $output->getHiddenFields(), 'U_FORM' => sessid($u_form))); if ($num_logs = count($logrow)) { $display_checkbox = false; if ($auth->check_auth(AUTH_DEL, $listdata['liste_id'])) { $output->assign_block_vars('delete_option', array('L_DELETE' => $lang['Button']['del_logs'])); $display_checkbox = true; } for ($i = 0; $i < $num_logs; $i++) {
# Author : Vantuz # # Email : visavi.net@mail.ru # # Site : http://visavi.net # # ICQ : 36-44-66 # # Skype : vantuzilla # #---------------------------------------------# ?> <div class="small" id="down"> <?php echo show_counter(); ?> <?php echo show_online(); ?> <?php echo navigation(); ?> <?php echo perfomance(); ?> </div> </div> </div> <div id="footer"> <div id="text"> © Copyright 2005-<?php echo date('Y'); ?> RotorCMS </div>
<div id="header-rightcol"> </div> </div> <!-- end of #header-row --> </div> <!-- end of #header --> <div id="navigation"> <div id="nav-row"> <?php /* PHP NAVIGATIN LIST MAKER FROM CLASS */ $wurl = $WEBSITE_URL; //determine launchpad constants $launchpadNAME = $launchpad; $launchpadID = GET_LP_ID($properties, $launchpad); echo navigation($wurl, $launchpadNAME, $launchpadID, $page, $properties, $subpage); ?> </div> <!-- end of nav-row --> </div> <!-- end of #navigation --> </div> <?php include "includes/private/art/top_left.php"; ?> <?php include "includes/private/art/top_right.php"; if ($logged == 1) { ?> <div id="container-already"><?php