<?php list($category_id, $categories, $category_name, $category_memo, $category_icon, $category_acl, $category_parent, $groups) = _GL('category_id, categories, category_name, category_memo, category_icon, category_acl, category_parent, groups'); cn_snippet_messages(); cn_snippet_bc(); ?> <div style="text-align: right;"> <img border="0" src="skins/images/help_small.gif" style="vertical-align: middle;"> <a href="#"onclick="<?php echo cn_snippet_open_win(PHP_SELF . '?mod=help§ion=categories'); ?> ">What are categories and How to use them</a> </div> <br/> <!-- show categories --> <form action="<?php echo PHP_SELF; ?> " method="POST"> <?php cn_form_open('mod, opt'); ?> <input type="hidden" name="category_id" value="<?php echo $category_id; ?> " /> <table class="std-table wide"> <tr><th>ID</th> <th>Name</th> <th>Memo</th> <th>Icon</th> <th>Restriction</th> </tr>
<?php list($users, $section, $st, $per_page, $grp) = _GL('users, section, st, per_page, grp'); list($user_name, $user_nick, $user_email, $user_acl, $is_edit) = _GL('user_name, user_nick, user_email, user_acl, is_edit'); cn_snippet_messages(); cn_snippet_bc(); ?> <form action="<?php echo PHP_SELF; ?> " method="POST"> <?php cn_form_open('mod, opt, section'); ?> <!-- add / modify form --> <table class="panel" width="100%"> <tr> <td align="right">Username <span class="required">*</span></td> <td><input type="text" name="user_name" style="width: 350px;" value="<?php echo cn_htmlspecialchars($user_name); ?> "/></td> </tr> <tr> <td align="right">Password <?php if (!$user_name || $user_name && !$is_edit) {
<?php list($registered, $reg_site_key) = _GL('registered, reg_site_key'); ?> <div style="margin: 0 32px 0 0;"> <div style="background: #F7F6F4; padding: 4px; font: 15px/1em Arial; margin: 0 0 4px 0;">Help & Support</div> <div style="margin: 0 0 0 32px; font-size: 13px;"> <p> If you face any problem the first thing you should do is to pay your attention to <a style="font-size: 13px;" href="<?php echo PHP_SELF; ?> ?mod=help">CuteNews internal Help Documentation</a>. If it doesn't help, visit our <a style="font-size: 13px;" href="http://cutephp.com/forum/" target="_blank">support forum</a>. Read <a target="_blank" style="font-size: 13px;" href="docs/readme.html">README.html</a> file before it. </p> <ol> <li><a style="font-size: 12px;" href="<?php echo PHP_SELF; ?> ?mod=help">Internal Help Documentation</a></li> <li><a style="font-size: 12px;" href="http://cutephp.com/cutenews/readme.html" target=_blank>Readme.html File (online)</a></li> <li><a style="font-size: 12px;" href="http://cutephp.com/forum/" target=_blank>Support Forums</a></li> </ol> <div><strong>Your version:</strong> Cutenews v<?php echo VERSION . ' (Build ID - ' . VERSION_ID . ')'; ?> </div> <div><strong>License version:</strong> <script type="text/javascript" src="http://cutephp.com/cutenews/check_version.php?mybid=<?php
<?php list($grp, $group_id, $group_name, $group_grp, $access, $group_add, $group_sub, $group_system, $form_desc) = _GL('grp, group_id, group_name, group_grp, access, group_add, group_sub, group_system, form_desc'); cn_snippet_messages(); cn_snippet_bc(); ?> <!-- show categories --> <form action="<?php echo PHP_SELF; ?> " method="POST"> <?php cn_form_open('mod, opt'); ?> <input type="hidden" name="group_id" value="<?php echo intval($group_id); ?> " /> <table class="std-table wide"> <tr><th>ID</th> <th>Name</th> <th>Access rights</th> <th>In groups</th> <th width="1">Sys</th> </tr> <?php foreach ($grp as $id => $acl) { ?> <tr<?php if ($id == $group_id) { echo ' class="row_selected"';
<?php list($errors) = _GL('errors'); cn_snippet_bc(); ?> <table width="750" class="std-table"> <tr><th>Message</th> <th>File</th> <th>Permission</th> </tr> <?php foreach ($errors as $error) { ?> <tr> <td class="cn"><?php echo $error['msg']; ?> </td> <td><?php echo $error['file']; ?> </td> <td class="cn"><?php echo $error['perm']; ?> </td> </tr> <?php } ?> </table>
<?php list($version, $sample_id, $codepage, $preview_html, $old_dir) = _GL('version, sample_id, codepage, preview_html, old_dir'); cn_snippet_messages(); ?> <form action="<?php echo PHP_SELF; ?> " method="POST"> <?php cn_form_open('mod', 'opt'); ?> <table> <tr> <td align="right">Migrate from <span class="required">*</span></td> <td> <select name="version"> <option <?php if ($version == '2.0.x') { echo 'selected'; } ?> >2.0.x</option> <option <?php if ($version == '1.5.x') { echo 'selected'; } ?>
<?php list($errors_result, $regusername, $regnickname, $regemail) = _GL('errors_result, regusername, regnickname, regemail'); ?> <style>.required { color: red; }</style> <form name=login action="<?php echo PHP_SELF; ?> ?register" method="post"> <input type="hidden" name="action" value="register"> <table> <tr> <td colspan="3"><?php if ($errors_result) { ?> Errors: <ol><?php foreach ($errors_result as $result) { echo "<li style='color: red; font-weight: bold;'>{$result}</li>"; } ?> </ol><hr/><?php } ?> </td> </tr> <tr> <td width=85>Username: <span class="required">*</span></td> <td colspan="2"><input tabindex="1" type="text" name=regusername value="<?php
<?php list($catlist) = _GL('catlist'); foreach ($catlist as $id => $var) { ?> <input style="vertical-align: middle;" type="checkbox" name="__append[cats][<?php echo $id; ?> ]" value="Y" /> <?php echo cn_htmlspecialchars($var['name']); ?> <?php }
<?php list($help_sections) = _GL('help_sections'); foreach ($help_sections as $id => $section) { ?> <?php echo $section; ?> <div style="clear:both;"> </div> <?php }
<?php $odd = 0; list($sub, $options, $options_list) = _GL('sub, options, options_list'); cn_snippet_messages(); cn_snippet_bc(); ?> <ul class="sysconf_top"> <?php foreach ($options_list as $ID => $ol) { ?> <li<?php if ($sub == $ID) { echo ' class="selected"'; } ?> ><a href="<?php echo cn_url_modify("sub={$ID}"); ?> "><?php echo ucfirst($ID); ?> </a></li> <?php } ?> </ul> <div style="clear: both;"></div> <form action="<?php echo PHP_SELF;
<?php list($pc, $permission_ok) = _GL('pc, permission_ok'); cn_snippet_messages(); ?> <form action="<?php echo PHP_SELF; ?> " method="POST"> <table> <tr> <td valign="top"> <table class="panel"> <tr> <td>Username</td> <td><input type="text" name="username" value="<?php echo REQ('username', 'POST'); ?> "/></td> </tr> <tr> <td>Email</td> <td><input type="text" name="email" value="<?php echo REQ('email', 'POST'); ?> "/></td> </tr> <tr> <td>Password</td> <td><input type="password" name="password1" /></td>
<?php list($sub, $categories, $all_tpls) = _GL('sub, categories, all_tpls'); // Options list($rss_news_include_url, $rss_encoding, $rss_language, $rss_title) = _GL('rss_news_include_url, rss_encoding, rss_language, rss_title'); cn_snippet_bc(); ?> <ul class="sysconf_top"> <li<?php if ($sub == '') { echo " class='selected'"; } ?> ><a href="<?php echo cn_url_modify('sub='); ?> ">Integrate news in site</a></li> <li<?php if ($sub == 'rss') { echo " class='selected'"; } ?> ><a href="<?php echo cn_url_modify('sub=rss'); ?> ">RSS Setup</a></li> </ul> <div style="clear: both;"></div> <form action="<?php echo PHP_SELF;
<?php list($widgets, $plugins, $widget_settings, $widget_current, $plugin_current, $s_widget) = _GL('widgets, plugins, widget_settings, widget_current, plugin_current, s_widget'); cn_snippet_messages(); cn_snippet_bc(); if ($plugins) { ?> <div class="wigets-sidebar"> <h2>Widgets</h2> <ul> <?php foreach ($widgets as $widget) { ?> <li<?php if ($widget['selected']) { echo ' class="sl"'; } ?> ><a href="<?php echo cn_url_modify('selected=' . $widget['md5']); ?> "><?php echo ucfirst($widget['group']) . ' / ' . ucfirst($widget['name']); ?> </a></li> <?php } ?> </ul> <h2>Plugins</h2>
<?php // initialize list($preview_html, $preview_html_full, $vTitle, $vPage, $categories, $vCategory, $gstamp, $archive_id) = _GL('preview_html, preview_html_full, vTitle, vPage, categories, vCategory, gstamp, archive_id'); list($vShort, $EDITMODE, $vFull, $is_active_html, $vUseHtml, $is_draft, $vConcat, $vTags) = _GL('vShort, EDITMODE, vFull, is_active_html, vUseHtml, is_draft, vConcat, vTags'); list($_dateD, $_dateM, $_dateY, $_dateH, $_dateI, $_dateS) = make_postponed_date($gstamp); list($morefields) = _GL('morefields'); list($id) = GET('id', "GETPOST"); // CKEDITOR INITIALIZE BLOCK $CKEDITOR_Active = getoption('use_wysiwyg'); // DRAFT if (test('Bd')) { $is_draft = TRUE; } // MESSAGES BLOCK cn_snippet_messages(); if ($preview_html) { ?> <div style="margin: 10px 0 30px 0;"> <div style="border: 1px dashed gray; float: left; width: 50%;"> <div style="background: #eeeeee; border-bottom: 1px solid #cccccc; margin: 0; padding: 4px; text-align: center;"><b>PREVIEW ACTIVE NEWS ENTRY</b></div> <div style="border:4px solid #f0f0a0;"><?php echo $preview_html; ?> </div> </div> <div style="clear:left;"></div> <div style="height: 8px"></div> </div> <?php
<?php list($lang_token, $lang, $list, $tkn, $phraseid, $translate) = _GL('lang_token, lang, list, tkn, phraseid, translate'); $exid = REQ('exid'); cn_snippet_bc(); cn_snippet_messages(); ?> <!-- selection --> <form action="<?php echo PHP_SELF; ?> " method="POST"> <?php cn_form_open('mod, opt'); ?> <p> Select language <sup><a href="#" title="Create new language file (e.g. fr.txt) in ./core/lang with 666, 664 or 644 permission" onclick="return(tiny_msg(this));">?</a></sup> <select name="lang_token"> <?php foreach ($list as $token) { ?> <option <?php if ($token == $lang_token) { echo 'selected="selected"'; } ?> ><?php echo $token; ?>
<?php list($arch_list) = _GL('arch_list'); list($f_date_d, $f_date_m, $f_date_y, $t_date_d, $t_date_m, $t_date_y, $archive_id) = _GL('f_date_d, f_date_m, f_date_y, t_date_d, t_date_m, t_date_y, archive_id'); cn_snippet_messages(); cn_snippet_bc(); ?> <table class="std-table" width='100%'> <tr> <th>Date</th> <th>Count news</th> <th>First date</th> <th>Last date</th> </tr> <?php foreach ($arch_list as $id => $item) { ?> <tr align="center" <?php if ($id == $archive_id) { echo 'class="row_selected"'; } ?> > <td><a href="<?php echo cn_url_modify('archive_id=' . $id); ?> "><?php echo date('Y-m-d H:i:s', $id); ?> </a></td>
<?php if (function_exists('disk_total_space') && function_exists('disk_free_space')) { $ds = disk_total_space("/"); $fs = disk_free_space("/"); $symbols = array('B', 'KiB', 'MiB', 'GiB', 'TiB', 'PiB', 'EiB', 'ZiB', 'YiB'); $exp = intval(log($ds) / log(1024)); $ds_t = sprintf('%.2f ' . $symbols[$exp], $ds / pow(1024, floor($exp))); $free = intval((1 - $fs / $ds) * 100); } else { $free = 0; $ds_t = 0; } list($dashboard, $username, $greeting_message) = _GL('dashboard, username, greeting_message'); ?> <div class="wrapper"> <?php if (test('Cvm')) { ?> <script type="text/javascript"> function cn_greetings() { var display; var datetoday = new Date(); var timenow = datetoday.getTime(); datetoday.setTime(timenow); var thehour = datetoday.getHours();
<?php list($list) = _GL('list'); cn_snippet_messages(); cn_snippet_bc(); ?> <form action="<?php echo PHP_SELF; ?> " method="POST"> <?php cn_form_open('mod, opt'); ?> <table class="std-table" width="100%"> <?php cn_snippet_show_list_head('IP|Times been blocked|Unblock'); ?> <?php foreach ($list as $ip => $item) { ?> <tr> <td><?php echo $ip; ?> </td> <td align="center"><?php echo $item[0]; ?> </td>
<?php list($logs, $st, $num, $isfin, $section) = _GL('logs, st, num,isfin, section'); $st = intval($st); $num = intval($num); cn_snippet_bc(); ?> <ul class="sysconf_top"> <li<?php if (!$section) { echo ' class="selected"'; } ?> ><a href="<?php echo cn_url_modify('section'); ?> ">System</a></li> <li<?php if ($section === 'user') { echo ' class="selected"'; } ?> ><a href="<?php echo cn_url_modify('section=user'); ?> ">User</a></li> </ul> <table class="std-table" width="100%"> <tr>
<?php list($config, $path) = _GL('config, path'); echo '<p><b>PATH:</b> root/' . cn_htmlspecialchars($path ? $path : '') . '</p>'; ?> <table class="std-table" width="100%"> <tr><th>Section</th> <th>Variable</th></tr> <?php foreach ($config as $u => $v) { ?> <tr> <td><?php echo cn_htmlspecialchars($u); ?> </td> <td> <?php if (is_array($v)) { echo '<a href="' . cn_url_modify('path=' . $path . '/' . $u) . '">click to expand →</a>'; $edit = FALSE; } elseif (is_numeric($v)) { echo $v; $edit = TRUE; } elseif (strlen($v) > 128) { echo cn_htmlspecialchars(clever_truncate($v, 128)); $edit = TRUE; } else { echo cn_htmlspecialchars($v);
<?php list($archives, $name) = _GL('archives, name'); cn_snippet_messages(); cn_snippet_bc(); ?> <p><b>Be careful:</b> creating back up may cause `allowed memory limit` error</p> <form action="<?php echo PHP_SELF; ?> " method="POST"> <?php cn_form_open('mod, opt'); ?> <table class="std-table" width="100%"> <?php cn_snippet_show_list_head('Name|Size (kb)|Date archived'); ?> <?php foreach ($archives as $archive) { ?> <tr> <td><?php echo $archive['name']; ?> [<a href="<?php
<?php list($files, $dirs, $path, $pathes, $popup_form, $root_dir) = _GL('files, dirs, path, pathes, popup_form, root_dir'); $ckeditor = REQ('CKEditorFuncNum'); $inline = REQ('opt', 'GETPOST') == 'inline' ? TRUE : FALSE; $opts = REQ('imgopts', 'GETPOST') == 'yes' ? TRUE : FALSE; $path_dir = ''; // Keep this parameters $KeepString = 'mod, opt, folder, CKEditorFuncNum, callback, style, faddm, imgopts'; // Set GET for dir links after file operations cn_set_GET($KeepString); cn_snippet_messages(); // BC only for stand-alone form if (!$inline) { cn_snippet_bc(); } ?> <script type="text/javascript"> function add_file_node() { var fnode = document.getElementById('file_node'); var ndiv=document.createElement('div'); ndiv.innerHTML = '<input type="file" name="upload_file[]" /> <a href="#" onclick="return(remove_it_node(this));">– remove</a>'; fnode.appendChild(ndiv); return false; } function remove_it_node(obj) {
<?php // init list($source, $page, $per_page, $entries, $showed, $entries_total, $userlist) = _GL('source, page, per_page, entries, entries_showed:intval, entries_total:intval, userlist'); list($sort, $dir, $ptree, $YS, $MS, $DS, $TY, $TM, $TD) = _GL('sort, dir, ptree, year_selected, mon_selected, day_selected, TY, TM, TD'); list($nactive, $ndraft, $nprospect, $has_next, $archives) = _GL('nactive, ndraft, nprospect, has_next, archives'); list($category_filters, $user_filters, $cat_filter) = _GL('category_filters, user_filters, cat_filter'); $i = 0; $page = intval($page); $archive_id = intval(REQ('archive_id', 'GPG')); $category = cn_get_categories(false); // MESSAGES BLOCK cn_snippet_messages(); ?> <div class="panel"> <div style="float: right;"> Entries on page: <?php foreach (array(25, 50, 100, 250) as $_per_page) { echo ' <a href="' . cn_url_modify('mod=editnews', "per_page={$_per_page}") . '" ' . ($per_page == $_per_page ? 'class="b"' : '') . '>' . $_per_page . '</a> '; } ?> <a style="color: #008080;" href="#" onclick="DoDiv('filters'); return false;">[Change filters]</a> </div> <?php echo i18n('Showed <b>%1</b> ', $showed); if ($nprospect) { echo i18n('(postponed <b>%1</b>)', $nprospect); } echo i18n(' from total <b>%1</b> ', $entries_total);
<?php list($member, $acl_write_news, $accesslevel, $personal_more) = _GL('member, acl_write_news, acl_desc, personal_more'); $username = isset($member['name']) ? $member['name'] : ''; $nickname = isset($member['nick']) ? $member['nick'] : ''; $avatar_url = isset($member['avatar']) ? (getoption('uploads_ext') ? getoption('uploads_ext') : getoption('http_script_dir') . '/uploads') . '/' . $member['avatar'] : ''; $usermail = isset($member['email']) ? $member['email'] : ''; $written_news = isset($member['cnt']) ? $member['cnt'] : 0; $register_date = isset($member['id']) ? $member['id'] : 0; $hide_email = isset($member['e-hide']) ? $member['e-hide'] : 0; $ban_times = isset($member['ban']) ? $member['ban'] : 0; $callback = 'personal'; cn_snippet_messages(); cn_snippet_bc(); ?> <form action="<?php echo PHP_SELF; ?> " enctype="multipart/form-data" method="POST"> <?php cn_form_open('mod, opt'); ?> <table class="std-table" width="100%"> <tr><th colspan="2" align="left">General options</th></tr> <tr> <td align="right">Username</td> <td><input type="text" name="username" disabled="disabled" style="background: #f0f0f0; width: 250px;" value="<?php
<?php list($sub) = _GL('sub'); cn_snippet_bc(); ?> <ul class="sysconf_top"> <li<?php if ($sub == 'migrate') { echo " class='selected'"; } ?> ><a href="<?php echo cn_url_modify('sub=migrate'); ?> ">Migration</a></li> <li<?php if ($sub == 'sysconf') { echo " class='selected'"; } ?> ><a href="<?php echo cn_url_modify('sub=sysconf', 'path'); ?> ">System conf</a></li> </ul> <div style="clear: both;"></div>
<?php list($template_parts, $all_templates, $template_text, $template, $sub, $can_delete) = _GL('template_parts, all_templates, template_text, template, sub, can_delete'); cn_snippet_messages(); cn_snippet_bc(); ?> <form action="<?php echo PHP_SELF; ?> " method="POST"> <?php cn_form_open('mod, opt, template, sub'); ?> <input type="hidden" name="select" value="Y" /> <div class="panel"> <select name="template"> <?php foreach ($all_templates as $id => $ud) { ?> <option value="<?php echo $id; ?> " <?php if ($template == $id) { echo 'selected'; } ?> ><?php echo ucfirst($id);
<?php list($wlist, $word, $replace, $is_repl_opt) = _GL('wlist, word, replace, repopt'); cn_snippet_bc(); if (!$is_repl_opt) { ?> <div style="color:#FF0000; font-size: 10px;"> For working word replacement need turn on option: Use word replace module.<br/> For more information contact with site administrator. </div> <?php } ?> <form action="<?php echo PHP_SELF; ?> " method="POST"> <?php cn_form_open('mod, opt'); ?> <table class="std-table" width="100%"> <tr><th>Word</th> <th>Replace</th></tr> <?php if (is_array($wlist) && $wlist) { foreach ($wlist as $name => $var) { ?> <tr <?php if ($word == $name) {
<?php list($list) = _GL('list'); list($type, $name, $desc, $meta, $group, $req) = _GL('type, name, desc, meta, group, req'); cn_snippet_messages(); cn_snippet_bc(); ?> <table class="std-table" width="100%"> <tr> <th>Name</th> <th>Type</th> <th>Desc</th> <th>Meta</th> <th>Group</th> <th>Required</th> </tr> <?php if ($list) { foreach ($list as $_name => $item) { ?> <tr <?php if ($name == $_name) { echo 'class="row_selected"'; } ?> > <td align="center"><a href="<?php echo cn_url_modify("extr_name={$_name}"); ?> "><?php echo cn_htmlspecialchars($_name); ?> </a></td> <td align="center" style="color: #666666;"><?php echo $item['type']; ?> </td>