Welcome to World of IPTV

With

+23k members
+11k threads
+106k posts

we are the most popular IPTV community on the web. 

IMPORTANT NOTE:
WE HAVE RECENTLY NOTICED THAT TOO MANY DOUBLE FAKE ACCOUNTS ARE CREATED IN THE PAST.
TO PREVENT THIS ISSUE THE DECISION WAS MADE THAT IN THE FUTURE A ANNUALLY FEE 20 EURO WILL BE RAISED FOR NEW MEMBERSHIPS.

Join now to the World of IPTV

Forum Rules

Before you start, check out the forum rules first

Account upgrade

Upgrade your account to get access to full features

Advertising

Would you like to place your advertisement with us ?

Resources Manager

Hundreds of IPTV scripts and apps are available for download

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 @changglobize
1000 cnx / 500€ 20Gbps / 700€ 40CPU-128GRAM 20Gbps / €980 http://coronaserver.com
A

acetk

Guest
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

 

maundy

Extended Member
Ext. Member
Joined
Sep 22, 2019
Messages
5
Reaction score
41
Points
21
Location
uk
<?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 @changglobize
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 @changglobize
1000 cnx / 500€ 20Gbps / 700€ 40CPU-128GRAM 20Gbps / €980 http://coronaserver.com
shape1
shape2
shape3
shape4
shape5
shape6
Top
AdBlock Detected

We know, ad-blocking software do a great job at blocking ads. But our site is sponsored by advertising. 

For the best possible site experience please take a moment to disable your AdBlocker.
You can create a Account with us or if you already have account, you can prefer an Account Upgrade.

I've Disabled AdBlock