<?php define('RANK', '5'); require '../includes/init.php'; if (Tools::checkACL($user->rank, ACL_SITE_NEWS_POST)) { if (isset($_POST['title'])) { $_POST['shortdesc'] = str_replace('script', '', $_POST['shortdesc']); $_POST['content'] = str_replace('script', '', $_POST['content']); if ($db->query("INSERT INTO habbophp_news VALUES ('',\r\n'" . safe($_POST['title'], 'SQL') . "',\r\n'" . safe($_POST['shortdesc'], 'SQL') . "',\r\n'" . safe($_POST['content'], 'SQL') . "',\r\n'" . safe($_POST['image'], 'SQL') . "'\r\n, '" . date('Y-m-d H:i:s') . "',\r\n'" . safe($_POST['comment'], 'SQL') . "',\r\n'" . safe($_POST['button_texte'], 'SQL') . "'\r\n,'" . safe($_POST['button_display'], 'SQL') . "',\r\n'" . safe($_POST['button_link'], 'SQL') . "')") and addLog($user->username, "Add a news (" . safe($_POST['title'], 'SQL') . ")")) { echo "1"; } } }
/admin/logs.php">Logs</a> </li><?php } if (Tools::checkACL($user->rank, ACL_MENU_PAGE)) { ?> <li class="<?php if ($pagename == "page.php") { echo "active"; } ?> "> <a href="<?php echo $config->url_site; ?> /admin/page.php">Page</a> </li><?php } if (Tools::checkACL($user->rank, ACL_MENU_FORM)) { ?> <li class="<?php if ($pagename == "manage_forms.php" or $pagename == "edit_form.php") { echo "active"; } ?> "> <a href="<?php echo $config->url_site; ?> /admin/form/manage_forms.php">Formulaires</a> </li><?php }
<?php include "includes/header.php"; if (Tools::checkACL($user->rank, ACL_LOGS_VIEW)) { ?> <header class="jumbotron subhead" id="overview"> <h1>Admin logs</h1> </header> <script> </script> <section id="server"> <input type="text" name="search" value="" id="id_search" placeholder="<?php echo $lang['Search']; ?> " /> <table class="table table-bordered table-striped"> <thead> <tr style="background:white;"> <th><?php echo $lang['Username']; ?> </th> <th><?php echo $lang['Action']; ?> </th>
echo $lang['Update']; ?> </button> </div> </div> </div> </section> <?php } ?> <?php if (Tools::checkACL($user->rank, ACL_SITE_FB)) { ?> <section id="facebookconnect"> <div class="page-header"> <h1><?php echo $lang['FacebookConnect']; ?> <small><a href="http://habbophp.com/wiki/doku.php?id=wiki:facebookconnect" target="_blank"><?php echo $lang['HowToConfigFacebookConnect']; ?> </a></small></h1> </div> <div class="alert alert-error"> <?php echo $lang['NoFacebook']; ?>
" /> <br /> <button type="submit" onclick="addhcategory($('#categoryname').val());" class="btn btn-primary"><?php echo $lang['Add']; ?> </button> </div> </div> </div> </section> <?php } ?> <?php if (Tools::checkACL($user->rank, ACL_SUPPORT_ARTICLES)) { ?> <section id="articlesadd"> <div class="page-header"> <h1><?php echo $lang['Topics']; ?> </h1> </div> <div class="row"> <div class="span12"> <table id="tablewf" class="table table-bordered table-striped"> <thead> <tr> <th><?php echo $lang['CategoryName'];
</div> <br style="clear:both"/> <div class="span6"> <h2>Tweets</h2> <a class="twitter-timeline" href="https://twitter.com/HabboPHPCom" data-widget-id="352558774193639424">Tweets de @HabboPHPCom</a> <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script> </div> <div class="span6" style=""> <h2>Quoi de neuf ?</h2> <div class="well"> <iframe style="width:530px;border:none;height:355px;" src="http://release.habbophp.com/new.php"></iframe> </div> </div> <div class="span6"> <?php if (Tools::checkACL($user->rank, ACL_INDEX_NOTES)) { ?> <h2><?php echo $lang['Notes']; ?> </h2> <textarea style="width:100%;height:290px;" id="notes" ><?php echo $config->notes; ?> </textarea><br/> <button type="button" onclick="setconfig($('.nicEdit-main').html(),'notes');" class="btn btn-primary"><?php echo $lang['Save']; ?> </button> <?php }
<?php #|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#| #| #| #| HABBOPHP - http://habbophp.com #| #| Copyright © 2012 Valentin & Robin. All rights reserved. #| #| #| #|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#| require '../includes/init.php'; ini_set('display_errors', 0); ini_set('log_errors', 0); error_reporting(0); if (!Tools::checkACL($user->rank, ACL_FORM_MANAGE)) { redirection('../index.php?error=acl'); } $currentFile = $_SERVER["PHP_SELF"]; $parts = Explode('/', $currentFile); $pagename = $parts[count($parts) - 1]; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title><?php echo $lang['Administration']; ?> </title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta name="robots" content="index, nofollow" /> <link href="../assets/css/bootstrap.css" rel="stylesheet">
?> </a> </div> </div> </div> </div> </div> </div> </section> <?php } ?> <?php if (Tools::checkACL($user->rank, ACL_SHOP_PAIEMENT_LOGS)) { ?> <section id="logs"> <div class="page-header"> <h1><?php echo $lang['PaymentsLogs']; ?> </h1> </div> <div class="row"> <div class="span12"> <input type="text" name="search" value="" id="id_search" placeholder="<?php echo $lang['Search']; ?> " />
} else { ?> <button type="button" onclick="addPage(0)" class="btn btn-primary"><?php echo $lang['SendMyPage']; ?> <?php } ?> </div> </fieldset> </div> </section> <?php } if (Tools::checkACL($user->rank, ACL_PAGES_VIEW)) { ?> <section id="listpage"> <?php $req = mysql_query('select * from habbophp_pages'); ?> <input type="text" name="search" value="" id="id_search" placeholder="<?php echo $lang['Search']; ?> " /> <table class="table table-bordered table-striped"> <thead> <tr> <th>Titre</th> <th>Contenu</th> <th>Lien</th>
<?php include 'includes/header.php'; if (!Tools::checkACL($user->rank, ACL_ROOM_DEFAULT_REGISTER)) { header("Location: /admin/"); die; } ?> <header class="jumbotron subhead" id="overview"> <h1>Apparts</h1> <p class="lead">Modifier l'appart de base à l'inscription</p> <div class="subnav"> <ul class="nav nav-pills"> <?php if (Tools::checkACL($user->rank, ACL_ROOM_DEFAULT_REGISTER)) { ?> <li><a href="#">Construire un appart par défaut</a></li><?php } ?> </ul> </div> </header> <section id="search"> <div class="form-horizontal" style="margin-top:-60px;"> <fieldset> <?php if (isset($_POST['id'])) { $room = mysql_query("SELECT * FROM rooms WHERE id = '" . safe(intval($_POST['id']), 'SQL') . "'"); $r = mysql_fetch_assoc($room); if ($r['caption'] !== NULL) { $first = '<room id="default">
if (Tools::checkACL($user->rank, ACL_USERS_BAN)) { ?> <li><a href="ban.php"><?php echo $lang['ManageBan']; ?> </a></li><?php } ?> </ul> </div> </header> <script src="assets/js/jquery.js"></script> <br/> <?php if (Tools::checkACL($user->rank, ACL_USERS_BAN)) { ?> <div class="form-horizontal"> <input type="hidden" name="linkimagenews" id="linkimagenews" /> <fieldset> <form action="" method="post"> <input type="text" class="" name="search" style="width:99%;font-size:24px;height:40px;" placeholder="Nom d'utilisateur ou IP" id="input01"> <div class="form-actions" style="text-align:center;"> <button style="margin-left:-154px;font-size:24px;" class="btn btn-primary btn-large"><?php echo $lang['Search']; ?> </button> </div> </form> </fieldset> </div>
<div class="form-actions"> <button type="submit" onclick="addwordfilterButterfly($('#word').val(),$('#new').val(),$('#strict').val());" class="btn btn-primary"><?php echo $lang['Add']; ?> </button> </div> </div> </div> </section> <?php } ?> <?php if (Tools::checkACL($user->rank, ACL_SERVER_MAINTENACE)) { ?> <section id="off"> <div class="page-header"> <h1><?php echo $lang['Maintenance']; ?> <small><?php echo $lang['MaintenanceInfo']; ?> </small></h1> </div> <div class="span11" style="text-align:center;"> <div class="form-actions"> <button type="button" <?php
?> <?php if (Tools::checkACL($user->rank, ACL_USERS_BAN)) { ?> <li><a href="ban.php"><?php echo $lang['ManageBan']; ?> </a></li><?php } ?> </ul> </div> </header> <?php if (Tools::checkACL($user->rank, ACL_USERS_VIEW)) { ?> <section id="server"> <div class="form-horizontal"> <input type="hidden" name="linkimagenews" id="linkimagenews" /> <fieldset> <input type="text" class="" style="width:99%;font-size:24px;height:40px;" placeholder="<?php echo $lang['UsernameIPEmail']; ?> " id="input01"> <div class="form-actions" style="text-align:center;"> <a href="javascript:void(0);" onclick="searchusers($('#input01').val());" style="margin-left:-154px;font-size:24px;" class="btn btn-primary btn-large"><?php echo $lang['Search'];
<?php require '../includes/init.php'; if (Tools::checkACL($user->rank, ACL_SITE_NOTIF)) { $nDB = new Db('habbophp_notifications'); $data = array('titre' => safe($_POST['titre']), 'contenu' => safe($_POST['contenu'])); $nDB->save($data); }