Welcome to World of IPTV

Join us now to get access to all our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, and so, so much more. It's also quick and totally free, so what are you waiting for?

Forum Rules

Our Rules: Read to avoid getting banned!

Advertising

Introduce Yourself to the World with Us!

Resource Database

Find the newest resources around IPTV!

Account upgrade

Upgrade your account to unlock more benefits!

Question ibo player web admin panel help

jackjoni

Extended Member
Ext. Member
Joined
Sep 19, 2019
Messages
111
Reaction score
57
Points
39
Location
ass
hi i have install ibo player web admin panel but when i open the web side i can not log in in to panel he says


PHP:
exec("CREATE TABLE IF NOT EXISTS users(id INTEGER PRIMARY KEY, username TEXT ,password TEXT)");$db->exec("CREATE TABLE IF NOT EXISTS subscription(id INTEGER PRIMARY KEY, mac_address TEXT, expire_date TEXT)");$db->exec('CREATE TABLE IF NOT EXISTS ibo(id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, mac_address VARCHAR(100), username VARCHAR(100), password VARCHAR(100), expire_date VARCHAR(100), url VARCHAR(100), title VARCHAR(100), created_at VARCHAR(100))');// Kullanıcı oturum kontrolü$log_check = $db->query("SELECT * FROM users WHERE id='1'");$roe = $log_check->fetchArray();$loggedinuser = @$roe['username'];if (isset($_SESSION['name']) && $_SESSION['name'] == $loggedinuser) {    header("location: user.php");    exit(); // Yönlendirme sonrası kod çalışmasını engellemek için}// Kullanıcı yoksa admin ekle$rows = $db->query("SELECT COUNT(*) as count FROM users");$row = $rows->fetchArray();$numRows = $row['count'];if ($numRows == 0){    $db->exec("INSERT INTO users(id, username, password) VALUES('1', 'admin', 'admin')");    $db->close();}// Giriş işlemiif (isset($_POST["login"])) {    if(!$db) {        echo $db->lastErrorMsg();    } else {        $sql = 'SELECT * FROM users WHERE username = :username';        $stmt = $db->prepare($sql);        $stmt->bindValue(':username', $_POST["username"], SQLITE3_TEXT);        $ret = $stmt->execute();        $row = $ret->fetchArray();                // Kullanıcı doğrulaması        if ($row) {            $id = $row['id'];            $username = $row['username'];            $password = $row['password'];                        if ($password == $_POST["password"]) {                session_regenerate_id();                $_SESSION['loggedin'] = TRUE;                $_SESSION['name'] = $_POST['username'];                header('Location: user.php');                exit();            } else {                header('Location: ./api/index.php');                exit();            }        } else {            header('Location: ./api/index.php');            exit();        }    }    $db->close();}?>

how i can do it can anywhere help me o write how to do for dumys
 
Last edited by a moderator:
@jackjoni learn using bb-codes if add some code stuff !!!

1741773600639.png
 
shape1
shape2
shape3
shape4
shape5
shape6
Back
Top