<tr> <td>Backend Host</td> <td>varnish</td> </tr> <tr> <td>Backend Port</td> <td>8080</td> </tr> </tbody> </table> </div> </div> </div> </div> </header> <script src="jquery.min.js"></script> <script src="bootstrap.min.js"></script> </body> </html> <?php } /** * Formats an URL which redirects to the PHP info page. * @return string */ if (isset($_GET['info']) && $_GET['info'] == "true") { phpinfo(); } else { $context = array("varnish_secret" => file_get_contents('/etc/varnish/secret'), "redis_config" => parseRedisConf('/etc/redis/redis.conf'), "mysql_config" => parse_ini_file('/data/web/.my.cnf'), "ready_name" => get_ready_name()); settings_page($context); }
function settings_edit($reload = 0, $page = 0) { global $phpenv, $setctl; kprintheader(get_lang(126)); $menuclass = array('header', 'header', 'header', 'header', 'header', 'header'); $menuclass[$page] = 'headermarked'; $widths = array('35%', '50%', '15%'); function pagelink($id, $reload) { return PHPSELF . '?action=settingsview&reload=' . $reload . '&page=' . $id; } ?> <form style="margin:0;padding:0" name="settings" method="post" action="<?php echo PHPSELF; ?> "> <input type="hidden" name="action" value="savesettings"/> <input type="hidden" name="page" value="<?php echo $page; ?> "/> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="13%" class="settings"> <a class="<?php echo $menuclass[0]; ?> " href="<?php echo pagelink(0, $reload); ?> "><?php echo get_lang(188); ?> </a></td> <td width="18%" class="settings"> <a class="<?php echo $menuclass[1]; ?> " href="<?php echo pagelink(1, $reload); ?> "><?php echo get_lang(189); ?> </a></td> <td width="19%" class="settings"> <a class="<?php echo $menuclass[2]; ?> " href="<?php echo pagelink(2, $reload); ?> "><?php echo get_lang(190); ?> </a></td> <td width="18%" class="settings"> <a class="<?php echo $menuclass[3]; ?> " href="<?php echo pagelink(3, $reload); ?> "><?php echo get_lang(203); ?> </a></td> <td width="18%" class="settings"> <a class="<?php echo $menuclass[4]; ?> " href="<?php echo pagelink(4, $reload); ?> "><?php echo get_lang(352); ?> </a></td> <td width="14%" class="settings" style="border-right-width: 0px;"> <a class="<?php echo $menuclass[5]; ?> " href="<?php echo pagelink(5, $reload); ?> "><?php echo get_lang(52); ?> </a></td> </tr> <tr> <td height="10"></td> </tr> <tr> <td colspan="6" height="5"/> </tr> </table> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="<?php echo $widths[0]; ?> "></td> <td width="<?php echo $widths[1]; ?> "></td> <td width="<?php echo $widths[2]; ?> "></td> </tr> <?php settings_page($page); ?> </table> <?php if ($page != 3) { ?> <div id="bottommsg" style="position:absolute; left:10px; bottom:10px; width:98%; height:35px; z-index:1"> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td align="left"><input class="fatbuttom" type="submit" name="submit" value="<?php echo get_lang(45); ?> "/> <input class="fatbuttom" type="submit" name="button" value="<?php echo get_lang(27); ?> " onclick="javascript: window.close(); <?php if ($reload) { echo 'window.opener.location.reload();'; } ?> "/></td> <td align="right" class="wtext"><?php echo get_lang(191); ?> </td> </tr> </table> </div> <?php } ?> </form> <?php kprintend(); die; }
$vars['navigate'] = theme('navigate', $vars); $query = "SELECT * FROM `" . $INFO['base_tabl'] . "` WHERE `" . $INFO['base_tabl'] . "`.id='" . intval($c) . "' limit 1"; if (isset($query)) { $e = mysql_query($query) or die("Invalid query: " . mysql_error()); include "popups.php"; $vars['content'] = popup_parse($e); } } # BROWSE END # STAT BEGING if ($jl_act == "stat") { include "modules/stat.php"; $vars['content'] = stat_page(); } # STAT END # SEARCH BEGING if ($jl_act == "search") { $vars['content'] = theme('search', $vars); } # SEARCH END # SETTINGS BEGING if ($jl_act == "settings") { if ($user_perm > 0) { include "modules/settings.php"; $vars['content'] = settings_page(); } else { $vars['content'] = "<tr><td>Доступно только зарегистрированным</td></tr>"; } } # SETTINGS END $vars['main'] = theme('main', $vars);