-
Notifications
You must be signed in to change notification settings - Fork 35
Expand file tree
/
Copy pathuser.php
More file actions
29 lines (20 loc) · 777 Bytes
/
user.php
File metadata and controls
29 lines (20 loc) · 777 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php
// Author : Paul Moore
// Project : In2streams.co Video CMS
include('config/config.php');
include('functions/db.php');
include('functions/settings.php');
$get_query = new setup;
$db1 = new db;
$db1->connect();
if(isset($_GET['user']))
{
header("Content-Type: audio/mpegurl");
@$content['users_db'] = $db1->db_query("SELECT * FROM users_db where email=".$db1->GetSQLValueString($_GET['user'], "text").' AND pword='.$db1->GetSQLValueString($_GET['pass'], "text"),array ('code'),100000,0);
if($content['users_db'][0]['is_empty'] == 'false'){
@$content['streams'] = $db1->db_query("SELECT * FROM `user_streams` where user=".$db1->GetSQLValueString($_GET['user'], "text"),array ('code'),100000,0);
foreach($content['streams'] as $items){
echo $items['code'];
}
}
} ?>