| Server IP : 127.0.0.1 / Your IP : 216.73.216.48 Web Server : Apache/2.4.58 (Win64) OpenSSL/3.1.3 PHP/8.2.12 System : Windows NT DESKTOP-3H4FHQJ 10.0 build 19045 (Windows 10) AMD64 User : win 10 ( 0) PHP Version : 8.2.12 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : D:/xampp/htdocs-coblaa/coblaa/ |
Upload File : |
<html>
<head>
<title>Coblaa Music, Latest Ugandan music</title>
<link rel="icon" type="image/jpg" href="http://craneblue.com/cb_image/main_icon/coot_icon.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="main_css/playlist.css?v3" />
<!--meta name="google-adsense-account" content="ca-pub-4728417548940171"><!--gog ads -k->
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-4728417548940171"crossorigin="anonymous"></script><!-- ad unit -->
</head>
<?php
$user_ip = getenv('REMOTE_ADDR');
$geo = unserialize(file_get_contents("http://www.geoplugin.net/php.gp?ip=$user_ip"));
$city = $geo["geoplugin_city"];
$country = $geo["geoplugin_countryName"];
//echo" mmm $user_ip";
?>
<input type="text" id="user_ip" value="<?php echo"$user_ip";?>" style="display:none;" />
<input type="text" id="user_city" value="<?php echo"$city";?>" style="display:none;" />
<input type="text" id="user_country" value="<?php echo"$country";?>" style="display:none;" />
<?php
session_start();
include('db.php');
if(isset($_SESSION['my_id']))
{
$user_id = $_SESSION['my_id'];
}else{
$user_id = $user_ip;
}
?>
<input id="my_id" value="<?php echo $user_id ?>" style="display:none;" />
<body>
<div class="content_div" >
<div id="playlst_div" class="playlst_div" >
<span id="" class="title_plylst" >Create new Playlist</span><span Onclick="history.back();" onClickk="close_playlist_div();" class="close_playlst_btn" >x</span>
<span id="" class="single_plylst" >
<input id="new_plylst_input" class="new_plylst_input" placeholder="Playlist name..." />
<button class="add_plylst_btn" onClick="save_new_playlist();" style="color:blue;border:1px solid blue;display:block;" >Save</button>
</span>
<span id="new_plylst_output" class="new_plylst_output" > </span>
<span id="" class="title_plylst" style="color:brown;" >Your Playlist</span>
<span id="playlist_output" ></span>
<!--span id="" class="single_plylst2" >
<span id="" class="single_plylst_name" >Vicent songs</span>
<span id="" class="single_plylst_song_count" >20</span>
<button class="add_plylst_btn" >Add</button>
</span-->
</div>
</div><!-- end of content_div -->
<div id="save_error"></div>
<div class="footer_div"></div>
<script>
/*
function show_playlist_div()
{
document.getElementById('playlst_div').style.display="block";
}
function close_playlist_div()
{
document.getElementById('playlst_div').style.display="none";
}*/
disp_playlist();
function disp_playlist()
{
my_id = document.getElementById("my_id").value;
xmlhttp = new XMLHttpRequest();
xmlhttp.open("GET","autopage.php?my_id="+my_id+"&&status=disp_playlist",false);
xmlhttp.send(null);
document.getElementById("playlist_output").innerHTML=xmlhttp.responseText;
}
function save_new_playlist()
{
playlstname = document.getElementById("new_plylst_input").value;
plylstname_leng = playlstname.length;
my_id = document.getElementById("my_id").value;
if(playlstname =="" || plylstname_leng <3 ){}else{
//var formdata = new FormData();
//formdata.append('image_input',curr_image);
xmlhttp = new XMLHttpRequest();
xmlhttp.open("GET","autopage.php?my_id="+my_id+"&&playlstname="+playlstname+"&&status=save_new_playlist",false);
xmlhttp.send(null);
//xmlhttp.send(formdata);
document.getElementById("new_plylst_output").innerHTML=xmlhttp.responseText;
document.getElementById("new_plylst_input").value="";
disp_playlist();
}
}
var btn_status=1;
function select_playlist(spl)
{
more_option ='more_option'+spl;
if(btn_status ==1 ){
document.getElementById(more_option).style.display="block";
btn_status =more_option;
}else{
document.getElementById(more_option).style.display="block";
document.getElementById(btn_status).style.display="none";
btn_status =more_option;
}
}
function close_option_span()
{
document.getElementById(more_option).style.display="none";
document.getElementById(btn_status).style.display="none";
}
function add_song_playlist(aspl)
{
playlistid = aspl;
cur_idsong = document.getElementById("cur_idsong").value;
my_id = document.getElementById("my_id").value;
xmlhttp = new XMLHttpRequest();
xmlhttp.open("GET","autopage.php?my_id="+my_id+"&&playlistid="+playlistid+"&&cur_idsong="+cur_idsong+"&&status=add_song_playlist",false);
xmlhttp.send(null);
document.getElementById("new_plylst_output").innerHTML=xmlhttp.responseText;
disp_playlist();
}
function delete_playlist(dp)
{
playlist_id = dp;
xmlhttp = new XMLHttpRequest();
xmlhttp.open("GET","autopage.php?my_id="+my_id+"&&playlist_id="+playlist_id+"&&status=delete_playlist",false);
xmlhttp.send(null);
//document.getElementById("new_plylst_output").innerHTML=xmlhttp.responseText;
disp_playlist();
}
</script>
</body>
</html>