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!

Custom cms for read-write in xc2 sql

sympan

Extended Member
Ext. Member
Joined
Sep 20, 2019
Messages
61
Reaction score
220
Points
44
Location
athens
Hello to all
i have start to write an interface to read some data from xc sql and make some basic functions like extend one user, create other or just see where one line expire
this is has 2 parts, one for users and one for streamings
you can tell me some basic actions that you believe as sos to create ?
create this because if xc open again you have not lost any data in your db
thanks
 
Channels MatchTime Unblock CDN Offshore Server Contact
100 cnx / 90€ 5Gbps / 180€ 48CPU-256GRAM 10Gbps 569€ Skype live:giefsl
500 cnx / 350€ 10Gbps / 350€ 48CPU-128GRAM 5Gbps / 349€ TG @changcdn
1000 cnx / 500€ 20Gbps / 700€ 40CPU-128GRAM 20Gbps / €980 http://coronaserver.com
Hello to all
i have start to write an interface to read some data from xc sql and make some basic functions like extend one user, create other or just see where one line expire
this is has 2 parts, one for users and one for streamings
you can tell me some basic actions that you believe as sos to create ?
create this because if xc open again you have not lost any data in your db
thanks

some good stuff here

 
<?php
// DISPLAY USER LIST BY ID-USER-PASS-EXPIRY

$servername = "localhost:7999";
$username = "root";
$password = "password";
$dbname = "xtream_iptvpro";


$conn = new mysqli($servername, $username, $password, $dbname);

if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}

$sql = "SELECT member_id, username, password, exp_date FROM users";
$result = $conn->query($sql);

if ($result->num_rows > 0) {
while($row = $result->fetch_assoc()) {
echo "<br> USER ID: ". $row["member_id"]. " - USERNAME: ". $row["username"]. " - PASSWORD: ". $row["password"]. " - ESPIRES: ". $row["exp_date"] . "<br>";
}
} else {
echo "0 results";
}

$conn->close();
?>

edit expiry date with

$sql = "UPDATE streams SET exp_date='<NEW DATE HERE>' WHERE member_id=<MEMBERS ID HERE>";

dates are unix timestamp

these are all your available sql queries
member_id
exp_date
is_restreamer
admin_enabled
enabled
is_trial
created_at
created_by
pair_id
is_mag
username
password
is_e2

hope this helps pal
 
Channels MatchTime Unblock CDN Offshore Server Contact
100 cnx / 90€ 5Gbps / 180€ 48CPU-256GRAM 10Gbps 569€ Skype live:giefsl
500 cnx / 350€ 10Gbps / 350€ 48CPU-128GRAM 5Gbps / 349€ TG @changcdn
1000 cnx / 500€ 20Gbps / 700€ 40CPU-128GRAM 20Gbps / €980 http://coronaserver.com
Channels MatchTime Unblock CDN Offshore Server Contact
100 cnx / 90€ 5Gbps / 180€ 48CPU-256GRAM 10Gbps 569€ Skype live:giefsl
500 cnx / 350€ 10Gbps / 350€ 48CPU-128GRAM 5Gbps / 349€ TG @changcdn
1000 cnx / 500€ 20Gbps / 700€ 40CPU-128GRAM 20Gbps / €980 http://coronaserver.com
shape1
shape2
shape3
shape4
shape5
shape6
Back
Top