function smile_edit($smile_data, $s_hidden_fields, $filename_list, $smiley_image) { global $smilies_path, $modheader; $modheader .= '<script type="text/javascript"> function update_smiley(newimage) { document.getElementById("smiley_image").src = "' . $smilies_path . '" + newimage; } </script>'; showheader(); echo ' <form method="post" action="' . URL::admin('smilies') . '" enctype="multipart/form-data" accept-charset="utf-8"> <table class="forumline" cellspacing="1" cellpadding="4" border="0"> <tr> <th class="thHead" colspan="2">Smiley Configuration</th> </tr> <tr> <td class="row2">Smiley Code</td> <td class="row2"><input type="text" name="smile_code" value="' . (isset($smile_data['code']) ? $smile_data['code'] : '') . '" /></td> </tr> <tr> <td class="row1">Smiley Image File</td> <td class="row1"><select name="smile_url" onchange="update_smiley(this.options[selectedIndex].value);">' . $filename_list . '</select> <img id="smiley_image" name="smiley_image" src="' . $smilies_path . $smiley_image . '" border="0" alt="" /> </td> </tr> <tr> <td class="row2">Smiley Emotion</td> <td class="row2"><input type="text" name="smile_emotion" value="' . (isset($smile_data['emoticon']) ? $smile_data['emoticon'] : '') . '" /></td> </tr> <tr> <td class="catBottom" colspan="2" align="center">' . $s_hidden_fields . '<input class="mainoption" type="submit" value="' . _SAVECHANGES . '" /></td> </tr> </table></form>'; }
<? include_once $GLOBALS["DOCUMENT_ROOT"]."/lib/sql.php"; //authorize(); showheader( "Подраздел"); ?> <? showfooter(); ?>
<?php session_start(); if (!isset($_SESSION['id'])) { header('Location: login.php'); exit; } include 'showh.php'; showheader("File Manger"); ?> <div class="wrapper style1"> <div id="addform"> <div class="box"></div> <div class="folders"> <form method="POST" enctype="multipart/form-data"> - <p class="p1">Add files: </p><br /> - <input type="text" name="foldername" placeholder="The name of the folder" style="padding: 1px 4px; font-size: 0.8em; color: #4B3655;"> - <input name="userfile[]" type="file" style="padding: 1px 4px; font-size: 0.8em; color: #4B3655;" class="files" multiple> - <input class="button"type="submit" style="padding: 1px 4px; font-size: 0.8em; color: #4B3655;" type="submit" name="action" value="Submit the files"></input> - </form> </div> </div> <?php // Include the library require_once 'AESCryptFileLib.php'; // Include an AES256 Implementation require_once 'aes256/MCryptAES256Implementation.php'; // Construct the implementation $mcrypt = new MCryptAES256Implementation();
<!DOCTYPE html> <html> <?php showheader('Galería'); ?> <body class="skin-blue sidebar-mini"> <div class="wrapper"> <?php showmenu('galeria'); ?> <div class="content-wrapper"> <section class="content-header"> <h1>ORIGINAL - GRAYSCALE & FILTRADA - ECUALIZADA GLOBAL</h1> </section> <section class="content"> <?php for ($i = 0; $i <= 30; $i++) { ?> <div class="row"> <div class="col-lg-12 col-md-12 col-xs-12"> <div class="box box-primary"> <div class="box-header with-border"> <h3 class="box-title">Paquete (<?php echo strstr($imagenes[$i], '.', 1); ?> )</h3> </div> <div class="box-body center"> <div class="col-xs-4">
* $Id: index.php 10469 2010-05-11 09:12:14Z monkey $ */ require './include/common.inc.php'; $action = getgpc('a'); $action = empty($action) ? getgpc('action') : $action; $source = getgpc('source') ? getgpc('source') : getgpc('s'); $step = getgpc('step'); $start = getgpc('start'); $setting = array(); if ($source) { if (!($setting = loadsetting($source))) { showmessage('load_setting_error'); } } $action = empty($action) || empty($source) ? 'source' : $action; showheader($action, $setting); if ($action == 'source') { require DISCUZ_ROOT . './include/do_source.inc.php'; } elseif ($action == 'config' || CONFIG_EMPTY) { require DISCUZ_ROOT . './include/do_config.inc.php'; } elseif ($action == 'setting') { require DISCUZ_ROOT . './include/do_setting.inc.php'; } elseif ($action == 'select') { require DISCUZ_ROOT . './include/do_select.inc.php'; } elseif ($action == 'convert') { require DISCUZ_ROOT . './include/do_convert.inc.php'; } elseif ($action == 'finish') { require DISCUZ_ROOT . './include/do_finish.inc.php'; } else { showmessage('非法请求'); }
if ($v === '') { $v = @array_keys($menu[$k]); $v = $menu[$k][$v[0]][1]; } showheader($k, $v); } if ($isfounder) { echo '<li><em><a id="header_uc" hidefocus="true" href="' . UC_API . '/admin.php?m=frame&a=main&iframe=1" onclick="uc_login=1;toggleMenu(\'uc\', \'\');" target="main">' . $lang['header_uc'] . '</a></em></li>'; } } elseif ($_G['myshopstatus'] == 'verified' || $_G['myshopstatus'] == 'unverified') { showheader('index', 'index'); if ($shop->status == 'new') { showheader('shop', 'edit&m=shop'); } elseif ($shop->status == 'normal') { showheader('shop', 'edit&m=shop'); showheader('infomanage', 'report'); } } else { cpmsg('無權限', 'index.php'); } echo <<<EOT \t\t\t\t\t</ul> \t\t\t\t\t<div class="currentloca"> EOT; if (IN_ADMIN === true) { echo "<p id=\"admincpnav\"></p>"; } else { echo "<p>" . lang('you_cur_shop_is') . " <font style=\"color:#6666ff; font-weight:bold;\">" . (!empty($_SGLOBAL['panelinfo']['subject']) ? $_SGLOBAL['panelinfo']['subject'] : $lang['none']) . "</font>"; echo " <select id=\"myshoplist\"><option value=\"0\">{$lang['change_your_cur_shop']}</option>"; foreach ($_G['myshopsarr'] as $myshop) {
function showmessage($message, $url_forward = '', $vars = array(), $timeout = 1) { showheader(); $message = lang('update', $message, $vars); $messageadd = ''; $timeout = intval($timeout); if ($url_forward) { $messageadd .= "<script>setTimeout(\"redirect('{$url_forward}');\", {$timeout});</script>"; $messageadd .= ">><a href=\"index.php\"><strong>" . lang('update', 'message_stop') . "</strong></a>"; } elseif (strpos($message, lang('update', 'return'))) { $messageadd .= "<a href=\"javascript:history.go(-1);\" class=\"mediumtxt\">" . lang('update', 'message_return') . '</a><br><br>'; } $prompt = lang('update', 'prompt'); echo <<<EOT <table class="showtable"> \t<tbody><tr class="title"><td style="color: white">{$prompt}</td></tr> \t\t<tr><td style="padding: 10px; background-color: #fefefe;font-size: 14px "><br>{$message}<br><br></td></tr> \t\t<tr><td>{$messageadd}</td></tr> \t</tbody> </table> EOT; showfooter(); exit; }
<!DOCTYPE html> <html> <?php showheader('Procesar imagen'); ?> <body class="skin-blue sidebar-mini"> <div class="wrapper"> <?php showmenu('procesar'); ?> <div class="content-wrapper"> <section class="content"> <div class="row"> <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12"> <?php echo form_open_multipart('resultado', array('role' => 'form', 'id' => 'form', 'class' => 'form-horizontal')); ?> <div class="box"> <div class="box-header"> <h3 class="box-title">Elige una imagen</h3> </div> <div class="box-body"> <div class="col-xs-12 col-sm-6 col-md-6 col-lg-6"> <div class="form-group labelimg"> <label for="userfile" title="Click para subir imagen" id="lab"> <img src="<?php echo base_url('resources/img/image.png'); ?>
<!DOCTYPE html> <html> <?php showheader('Resultado imagen'); ?> <body class="skin-blue sidebar-mini"> <div class="wrapper"> <?php showmenu('resultado'); ?> <div class="content-wrapper"> <section class="content"> <div class="row"> <div class="col-lg-12 col-md-12 col-xs-12"> <div class="box box-primary"> <div class="box-header with-border"> <div class="hidden-xs col-md-4 col-lg-4"> <h3 class="box-title">Imagen original</h3> </div> <div class="hidden-xs col-md-4 col-lg-4"> <h3 class="box-title">Escala de grises + filtrado</h3> </div> <div class="hidden-xs col-md-4 col-lg-4"> <h3 class="box-title">Imagen ecualizada</h3> <div class="box-tools pull-right"> <button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button> </div> </div>
</div> <div class="navbg"></div> <div class="nav"> <ul id="topmenu"> EOT; showheader('index', 'home'); showheader('global', 'settings&operation=basic'); showheader('style', 'settings&operation=styles'); showheader('forum', 'forums'); showheader('user', 'members'); showheader('topic', 'moderate&operation=threads'); showheader('extended', 'tasks'); showheader('plugin', 'plugins'); showheader('adv', 'adv'); showheader('tool', 'tools&operation=updatecache'); if ($isfounder) { echo '<li><em><a id="header_uc" hidefocus="true" href="' . UC_API . '/admin.php?m=frame&a=main&iframe=1" onclick="uc_login=1;toggleMenu(\'uc\', \'\');" target="main">' . $lang['header_uc'] . '</a></em></li>'; } echo <<<EOT </ul> <div class="currentloca"> <p id="admincpnav"></p> </div> <div class="navbd"></div> <div class="sitemapbtn"> \t<div style="float: left; margin:-5px 10px 0 0"><form name="search" method="post" action="{$BASESCRIPT}?action=search" target="main"><input type="text" name="keywords" value="" class="txt" /> <input type="hidden" name="searchsubmit" value="yes" class="btn" /><input type="submit" name="searchsubmit" value="{$lang['search']}" class="btn" style="margin-top: 5px;vertical-align:middle" /></form></div> \t<span id="add2custom"></span> \t<a href="###" id="cpmap" onclick="showMap();return false;"><img src="images/admincp/btn_map.gif" title="{$lang['admincp_sitemap']}" width="72" height="18" /></a> </div>
function main() { global $db, $user_prefix, $pagetitle, $CLASS, $bgcolor2; if (isset($_GET['show'])) { if ($_GET['show'] == 'tmpusers') { $pagetitle .= ' ' . _BC_DELIM . ' ' . _WAITINGUSERS; } else { if ($_GET['show'] == 'sususers') { $pagetitle .= ' ' . _BC_DELIM . ' ' . _SUSPENDUSERS; } else { if ($_GET['show'] == 'delusers') { $pagetitle .= ' ' . _BC_DELIM . ' ' . _DELETEUSERS; } } } } list($tmprows) = $db->sql_ufetchrow('SELECT COUNT(*) FROM ' . $user_prefix . '_users_temp', SQL_NUM); list($usrrows) = $db->sql_ufetchrow('SELECT COUNT(*) FROM ' . $user_prefix . '_users WHERE user_level>0 AND user_id>1', SQL_NUM); list($susrows) = $db->sql_ufetchrow('SELECT COUNT(*) FROM ' . $user_prefix . '_users WHERE user_level=0 AND user_id>1', SQL_NUM); list($delrows) = $db->sql_ufetchrow('SELECT COUNT(*) FROM ' . $user_prefix . '_users WHERE user_level<0 AND user_id>1', SQL_NUM); showheader(); echo '<table> <tr><td>' . ($tmprows > 0 ? '<a href="' . URL::admin('&show=tmpusers') . '">' . _WAITINGUSERS . '</a>' : _WAITINGUSERS) . '</td><td>: ' . $tmprows . '</td></tr> <tr><td>' . _ACTIVEUSERS . '</td><td>: ' . $usrrows . '</td></tr>'; if ($susrows > 0) { echo '<tr><td><a href="' . URL::admin('&show=sususers') . '">' . _SUSPENDUSERS . '</a></td><td>: ' . $susrows . '</td></tr>'; } if ($delrows > 0) { echo '<tr><td><a href="' . URL::admin('&show=delusers') . '">' . _DELETEUSERS . '</a></td><td>: ' . $delrows . '</td></tr>'; } echo '</table><br />'; if (isset($_GET['show']) && !$CLASS['member']->demo) { if ($_GET['show'] == 'tmpusers') { /* Begin List Waiting Users */ echo open_form(URL::admin(), 'waitingusers', _WAITINGUSERS, ' class="title"'); echo '<table width="100%"> <tr bgcolor="' . $bgcolor2 . '"><td width="20"></td><td>' . _NICKNAME . '</td><td>' . _EMAIL . '</td></tr>'; $result = $db->sql_query("SELECT user_id, username, user_email FROM " . $user_prefix . "_users_temp ORDER BY username"); while ($row = $db->sql_fetchrow($result)) { echo '<tr><td><input name="members[]" type="checkbox" value="' . $row['user_id'] . '" /></td><td>' . $row['username'] . '</td><td>' . $row['user_email'] . '</td></tr>'; } echo '<tr><td colspan="4"><select name="wait"> <option value="approve">' . _APPROVE . '</option> <option value="deny">' . _DENY . '</option> <option value="resendMail">' . _RESEND . '</option> <option value="modify">' . _MODIFYINFO . '</option> </select> <input type="submit" value="' . _OK . '" /></td></tr>'; /* End List Waiting Users */ } else { if ($_GET['show'] == 'sususers') { /* Begin List Suspended Users */ echo open_form(URL::admin(), 'suspendedusers', _SUSPENDUSERS, ' class="title"'); echo '<table width="100%"> <tr bgcolor="' . $bgcolor2 . '"><td width="20">' . _RESTORE . '</td><td>' . _NICKNAME . '</td><td>' . _EMAIL . '</td><td>' . _SUSPENDREASON . '</td></tr>'; $result = $db->sql_query("SELECT user_id, username, user_email, susdel_reason FROM " . $user_prefix . "_users WHERE user_level=0 AND user_id>1 ORDER BY username"); while ($row = $db->sql_fetchrow($result)) { echo '<tr><td><input name="members[]" type="checkbox" value="' . $row['user_id'] . '" /></td><td><a href="' . URL::admin("&mode=edit&edit=profile&id={$row['user_id']}") . '">' . $row['username'] . '</a></td><td>' . $row['user_email'] . '</td><td>' . $row['susdel_reason'] . '</td></tr>'; } echo '<tr><td colspan="4"><input type="hidden" name="susdel" value="restoreUser" /><input type="submit" value="' . _RESTORE . '" /></td></tr>'; /* End List Suspended Users */ } else { if ($_GET['show'] == 'delusers') { /* Begin List Deleted Users */ echo open_form(URL::admin(), 'deletedusers', _DELETEUSERS, ' class="title"'); echo '<tr bgcolor="' . $bgcolor2 . '"><td width="20"></td><td>' . _NICKNAME . '</td><td>' . _EMAIL . '</td><td>' . _DELETEREASON . '</td></tr>'; $result = $db->sql_query("SELECT user_id, username, user_email, susdel_reason FROM " . $user_prefix . "_users WHERE user_level<0 AND user_id>1 ORDER BY username"); while ($row = $db->sql_fetchrow($result)) { echo '<tr><td><input name="members[]" type="checkbox" value="' . $row['user_id'] . '" /></td><td><a href="' . URL::admin("&mode=edit&edit=profile&id={$row['user_id']}") . '">' . $row['username'] . '</a></td><td>' . $row['user_email'] . '</td><td>' . $row['susdel_reason'] . '</td></tr>'; } echo '<tr><td colspan="4"><select name="susdel"> <option value="removeUser">' . _REMOVE . '</option> </select> <input type="submit" value="' . _OK . '" /></td></tr>'; /* End List Deleted Users */ } } } echo '</table></form></fieldset>'; } showfooter(); }
<?php include_once $_SERVER["DOCUMENT_ROOT"] . "/lib/engine.php"; // это нужно так как при notop не вызывается заголовк html authorize(); // вызов авторизации showheader("Управление"); $menu = new Menu(); $menu->add("todo", "ToDo"); $menu->add("logs", "Logs"); $menu->add("users", "Users"); $menu->add("backup", "Backup", false, '/lib/modules/backup/admin_dumper.php'); $menu->add("back", "Назад", false, '/'); $menu->show(); showfooter();
<? include_once $GLOBALS["DOCUMENT_ROOT"]."/lib/sql.php"; authorize(); showheader( "Склады"); // тут ссылк ана главное // дальше собственно текст страницы ?> <div class="menu"> <table width="100%"><tr><td align="center"> <table><tr> <td><div class='menuitem'><a href='himiya/'><img src="/picture/him.gif"><br>Материалы</a></div></td> <td><div class='menuitem'><a href='materials/'><img src="/picture/mater.gif"><br>Текстолит</a></div></td> <td><div class='menuitem'><a href='himiya2/'><img src="/picture/him2.gif"><br>Лаборатория</a></div></td> <td><div class='menuitem'><a href='sverla/'><img src="/picture/sver.gif"><br>Сверла 3.0</a></div></td> <td><div class='menuitem'><a href='halaty/'><img src="/picture/halat.gif"><br>Спецодежда</a></div></td> </tr><tr> <td><div class='menuitem'><a href='instr/'><img src="/picture/instr.gif"><br>Осн.Средства</a></div></td> <td><div class='menuitem'><a href='nepon/'><img src="/picture/sver.gif"><br>Сверла 3.175</a></div></td> <td><div class='menuitem'><a href='maloc/'><img src="/picture/none.gif"><br>Малоценка</a></div></td> <td><div class='menuitem'><a href='stroy/'><img src="/picture/stroy.gif"><br>Стройматериалы</a></div></td> <td><div class='menuitem'><a href='zap/'><img src="/picture/none.gif"><br>Запчасти<br>инструменты</a></div></td> </tr></table> </td></tr></table> </div> <? showfooter(); ?>
<a href="index.php" target="_blank">$header_bbs</a> </p> </div> <!-- <div class="navbg"></div>--> <div id="nav" class="nav"> <ul id="topmenu"> EOT; foreach($topmenu as $k => $v) { if($v === '') { $v = @array_keys($menu[$k]); $v = $menu[$k][$v[0]][1]; } showheader($k, $v); } $uc_api_url = ''; if($isfounder) { loaducenter(); $uc_api_url = UC_API; echo '<li><em><a id="header_uc" hidefocus="true" href="'.UC_API.'/admin.php?m=frame" onmouseover="previewheader(\'uc\')" onmouseout="previewheader()" onclick="uc_login=1;toggleMenu(\'uc\', \'\');doane(event);">'.cplang('header_uc').'</a></em></li>'; $topmenu['uc'] = ''; } $headers = "'".implode("','", array_keys($topmenu))."'"; echo <<<EOT </ul>
<? include_once $GLOBALS["DOCUMENT_ROOT"]."/lib/sql.php"; if ($action!='add') { showheader("‘отошаблоны запуск"); } include "inc.php"; if ($action!='add') { showfooter(); } ?>
$ucfounderpw = md5(md5($_POST['password']) . $ucsalt); $config = file_get_contents(UC_CONFIG); $config = preg_replace("/define\\(\\'UC_FOUNDERPW\\', \\'(\\w+)\\'\\);/", "define('UC_FOUNDERPW', '{$ucfounderpw}');\r\n", $config); if (strpos($config, 'define(\'UC_FOUNDERSALT\'') !== FALSE) { $config = preg_replace("/define\\(\\'UC_FOUNDERSALT\\', \\'(\\w+)\\'\\);/", "define('UC_FOUNDERSALT', '{$ucsalt}');\r\n", $config); } else { $config = preg_replace("/(.+)\\?\\>\$/", "\\1", trim($config)); $config .= "define('UC_FOUNDERSALT', '{$ucsalt}');\r\n"; } $fp = fopen(UC_CONFIG, 'w'); fwrite($fp, $config); fclose($fp); header("Location:upgrade_1.0.0Beta_1.0.0.php?action=db"); } } elseif ($action == 'db') { showheader(); $db = new db(); $db->connect(UC_DBHOST, UC_DBUSER, UC_DBPW, UC_DBNAME, UC_DBCHARSET); runquery($sql); @mkdir(UC_ROOT . './data/tmp', 0777); @mkdir(UC_ROOT . './data/backup', 0777); dir_clear(UC_ROOT . './data/view'); echo "The upgrade is complete. Please delete the upgrade_1.0.0Beta_1.0.0.php"; showfooter(); } function dir_clear($dir) { $directory = dir($dir); while ($entry = $directory->read()) { $filename = $dir . '/' . $entry; if (is_file($filename)) {
<td colspan="2" height="90"> <div class="mainhd"> <div class="logo">Discuz! XPlus Administrator's Control Panel</div> <div class="uinfo" id="frameuinfo"> <p>{$header_welcome}, {$cpadmingroup} <em>{$_G['member']['username']}</em> [ <a href="{$basescript}?action=logout" target="_top">{$header_logout}</a> ]</p> </div> <div class="navbg"></div> <div class="nav"> <ul id="topmenu"> EOT; foreach ($topmenu as $k => $name) { //echo $k; $v = @array_keys($menu[$k]); $v = $menu[$k][$v[0]][1]; showheader($k, $v, $name); } $uc_api_url = ''; $headers = "'" . implode("','", array_keys($topmenu)) . "'"; echo <<<EOT </ul> <div class="currentloca"> <p id="admincpnav"></p> </div> <div class="navbd"></div> <div class="sitemapbtn"> \t<span id="add2custom" style="display: none"></span> \t<a href="###" id="cpmap" onclick="showMap();return false;"><img src="static/image/admincp/btn_map.gif" title="{$lang['admincp_maptext']}" width="46" height="18" /></a> </div> </div>