Postado Agosto 1, 2015 9 anos Oi genti Bom meu site nicaw tem a primeira pagina "NEWS", no site pra baixar o lek fala que é no "admin.php" em que se coloca oque você quer na primeira pagina.. alguem poderia me falar onde colocar? Meu admin? <?php /* Copyright © 2007 - 2009 Nicaw This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ include ("include.inc.php"); require ('tools/check.php'); $ptitle="Admin Panel - $cfg[server_name]"; include ("header.inc.php"); ?> <div id="content"> <div class="top">Admin Panel</div> <div class="mid"> <ul class="task-menu" style="margin: 10px"> <li onclick="ajax('form','tools/news_create.php','',true)" style=" background-image: url(resource/rss_add.png);">Create News</li> <li onclick="ajax('form','tools/poll_create.php','',true)" style=" background-image: url(resource/chart_bar_add.png);">Create Poll</li> <li onclick="ajax('form','tools/character_search.php','script=tools/character_delete.php',true)" style=" background-image: url(resource/user_delete.png);">Delete Player</li> <li onclick="ajax('form','tools/character_search.php','script=tools/character_group.php',true)" style=" background-image: url(resource/user_gray.png);">Create GM</li> <li onclick="ajax('form','tools/group_create.php','',true)" style=" background-image: url(resource/group_add.png);">Create Group</li> <li onclick="ajax('form','tools/ip_update.php','',true)" style=" background-image: url(resource/computer_link.png);">Update IP</li> <li onclick="ajax('form','tools/table_repair.php','',true)" style=" background-image: url(resource/database_error.png);">Repair Tables</li> <li onclick="self.window.location.href='tools/php_info.php'" style=" background-image: url(resource/information.png);">PHP Info</li> <?php if(!empty($_SESSION['account'])): ?> <li onclick="window.location.href='login.php?logout&redirect=account.php'" style=" background-image: url(resource/resultset_previous.png);">Logout</li> <?php endif; ?> </ul> <?php $errors = ''; if(!extension_loaded('gd')) $errors .= '<li>GD library is not installed. It is essential for image manipulations.</li>'; if(!extension_loaded('mysql')) $errors .= '<li>MySQL library is not installed. Database access is impossible.</li>'; if(get_magic_quotes_gpc()) $errors .= '<li>Magic quotes is on! While this option may be important for other scripts, you can safely disable it for this AAC.</li>'; if(ini_get('register_globals')) $errors .= '<li>Register globals is on! This feature is DEPRECATED and REMOVED as of PHP 6.0.0. Relying on this feature is highly discouraged.</li>'; if (!version_compare(phpversion(), "5.1.4", ">=") ) $errors .= '<li>There are known issues with this PHP version. Please update your sofware, try to get at least PHP 5.2.x</li>'; if(!is_dir($cfg['dirdata'])) $errors .= '<li>Data directory is not a valid path in config.inc.php</li>'; if (!empty($errors)) echo '<div style="background-color: yellow; padding: 5px; color: black;"><b>Warnings</b><hr/><ol>'.$errors.'</ol>You can alter most settings in php.ini file. Click \'PHP Info\' to locate it.</div>'; ?> <div id="ajax"></div> <?php $ServerXML = simplexml_load_file('status.xml'); $params = htmlspecialchars('?url='.$cfg['server_url'].'&version=.$cfg['aac_version].'&remote_ip='.$_SERVER['REMOTE_ADDR'].'&server_ip=.$_SERVER['SERVER_ADDR].'&port='.$_SERVER['SERVER_PORT'].'&server_software=.urlencode($_SERVER['SERVER_SOFTWARE]).'&otserv_type='.$ServerXML->serverinfo['server'].$ServerXML->serverinfo['version']); ?> <script language="javascript" type="text/javascript"> //<![CDATA[ if (Cookies.get('allow_iframe') == null){ if (confirm('AAC will now contact external site and send your server details.\r\nNo personal information submited.\r\nIs that OK?')){ Cookies.create('allow_iframe','yes',31); }else{ Cookies.create('allow_iframe','no',31); } } if (Cookies.get('allow_iframe') == 'yes'){ document.write('<iframe width="100%" height="400px" src="http://aac.nicaw.net/<?phpecho $params?>" ></iframe>'); } if (Cookies.get('allow_iframe') == 'no'){ document.write('<span onclick="Cookies.erase(\'allow_iframe\'); location.reload(false);" style="cursor: pointer">Click here to enable iframe</span>'); } //]]> </script> </div> <div class="bot"></div> </div> <?php include ("footer.inc.php"); ?> Obrigado! rep+
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.