Page 1
Hierarki Direktori dan Script
/<Document_Root>/cmodels/
File action_upload.php<?php
//Buat konfigurasi upload
//Folder tujuan upload file
$eror = false;
$folder = '/var/www/html/pidl/contentME/';
//type file yang bisa diupload
$file_type = array('jpg','jpeg','png','gif','bmp','doc','docx','xls','xlsx','3gp','JPG','JPEG','mp3','MP3','mp4','MP4');
//tukuran maximum file yang dapat diupload
$max_size = 10000000; // 1MB
if(isset($_POST['btnUpload'])){
//Mulai memorises data
$file_name = $_FILES['data_upload']['name'];
$file_size = $_FILES['data_upload']['size'];
//cari extensi file dengan menggunakan fungsi explode
$explode = explode('.',$file_name);
$extensi = $explode[count($explode)-1];
//check apakah type file sudah sesuai
if(!in_array($extensi,$file_type)){
$eror = true;
$pesan .= '- Type file yang anda upload tidak sesuai<br />';
}
if($file_size > $max_size){
$eror = true;
Page 2
$pesan .= '- Ukuran file melebihi batas maximum<br />';
}
//check ukuran file apakah sudah sesuai
if($eror == true){
echo '<div id="eror">'.$pesan.'</div>';
}
else{
//mulai memproses upload file
if(move_uploaded_file($_FILES['data_upload']['tmp_name'], $folder.$file_name)){
//catat nama file ke database
$catat = mysql_query('insert into file_upload(Filename,Detail,Folder,DateUpload) values ("'.$file_name.'", "'.$_POST['keterangan'].'","'.$folder.'", "'.date('Y-m-d H:i:s').'")');
echo '<div id="msg">Berhasil mengupload file '.$file_name.'
,Lokasi lengkap file : http://www.klubmodel.com/dld.php?code='.$file_name.'</div>';
} else{
echo "Proses upload eror";
}
}
}
?>
File Config.php
<?php
$dbhost = '192.168.0.77';
$dbusn = 'sms';
$dbpass = 'sms_pwd!!';
$dbname = 'mmscms';
$dbconn = mysql_connect($dbhost,$dbusn,$dbpass);
Page 3
/*echo "<article style='width:40%;float:left;margin:0 30%;' />";
echo "<div style='border: 2px solid red; height: 20px; padding: 5px; text-align: left; width: 400px;'>Browse your content </div>
<p>";*/
File upload.php
<?php
include('config.php');
include('action_upload.php');
?>
<style type="text/css">
.table{
font:normal 12px Tahoma,verdana;
border:silver 1px solid;
width:350px;
}
.table tr td{
border-bottom:silver 1px solid;
border-right:silver 1px solid;
padding:0 5px 0 5px;
}
.table tr td.title{
font:bold 12px Tahoma,verdana;
background-color:#999999;
color:#000000;
}
input{
font:normal 12px Tahoma,verdana;
}
Page 4
#eror{
width:345px;;
border:red 1px solid;
margin-left:auto;
margin-right:auto;
margin-bottom:5px;
padding:0 0 0 5px;
}
#msg{
width:345px;;
border:green 1px solid;
margin-left:auto;
margin-right:auto;
margin-bottom:5px;
padding:0 0 0 5px;
}
</style>
<form method="post" enctype="multipart/form-data" action="">
<table class="table" cellpadding="0" cellspacing="0" align="center">
<tr>
<td colspan="2" height="25" class="title">Upload Your File</td>
</tr>
<tr>
<td width="100">File</td>
<td><input type="file" name="data_upload" /></td>
</tr>
<tr>
<td width="100" valign="top">Content Description, Ex : Video, Wallpaper, Sound, or others</td>
<td><textarea name="keterangan" cols="30" rows="3"></textarea></td>
Page 5
</tr>
<tr>
<td></td>
<td><input type="submit" name="btnUpload" value="Upload" /></td>
</tr>
</table>
</form>
/<Document_Root>/contentME/
Semua file upload akan ditampung didirektori ini
/<Document_Root>/model/Template lengkap dapat diunduh di http://www.tutorial-webdesign.com/template-website-tour-travel-gratis/
File index.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Content Tools, Free XHTML CSS Template</title>
<meta name="keywords" content="Content Tools, Free XHTML CSS Template, Web Design" />
<meta name="description" content="Content Tools - Free XHTML CSS Template provided by TemplateMo.com" />
<link href="templatemo_style.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript">
function clearText(field)
{
if (field.defaultValue == field.value) field.value = '';
else if (field.value == '') field.value = field.defaultValue;
}
Page 6
</script>
</head>
<body>
<div id="templatemo_container">
<div id="templatemo_banner">
<div id="search_section">
<input type="text" disabled="disabled" value="" name="q" size="10" id="searchfield"
title="searchfield" onfocus="clearText(this)" onblur="clearText(this)" />
<input type="submit" name="Search" value="" alt="Search" id="searchbutton" title="Search" />
</form>
</div>
<div id="templatemo_banner">
<br>
<font face="Forte" size=6>PASSINDONESIA</font>
</div>
</div>
<div id="templatemo_menu">
<ul>
<li><a href="#" class="current">Realtime Reports</a></li>
<!--<li><a href="#">Others</a></li>-->
<!--<li><a href="#">Destinations</a></li>
<li><a href="#">Gallery</a></li>
<li><a href="#">About Us</a></li>
<li><a href="#" class="last">Contact</a></li>-->
</ul>
</div> <!-- end of menu -->
Page 7
<div id="templatemo_content">
<div class="section_w430 fl margin_right_40">
<div class="header_01">Record Download Content</div>
<?php
mysql_connect("192.168.0.77", "sms", 'sms_pwd!!');
mysql_select_db("mmscms");
$ip_addr=$_SERVER['REMOTE_ADDR'];
$browser=$_SERVER['HTTP_USER_AGENT'];
//$refer= $_SERVER['HTTP_REFERER'];
//echo "$ip_addr\n";
//echo $browser;
echo "<form name='form' method='post' action='retr.php'>";
echo "</select>";
echo "<select name='hour'>
<option selected='selected'>Hour</option>";
$hour=array("01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23");
$jlh_hour=count($hour);
for($d=0; $d<$jlh_hour; $d+=1){
echo"<option value=$hour[$d]> $hour[$d] </option>";
Page 8
}
echo "</select>";
echo "<select name='tgl'>
<option selected='selected'>Date</option>";
$tanggal=array("01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31");
$jlh_tgl=count($tanggal);
for($d=0; $d<$jlh_tgl; $d+=1){
echo"<option value=$tanggal[$d]> $tanggal[$d] </option>";
}
echo "</select>";
echo "<select name='bln'>
<option selected='selected'>Month</option>";
$bulan=array("01","02","03","04","05","06","07","08","09","10","11","12");
$jlh_bln=count($bulan);
for($c=0; $c<$jlh_bln; $c+=1){
echo"<option value=$bulan[$c]> $bulan[$c] </option>";
}
echo "</select>";
echo "<select name='thn'>
<option selected='selected'>Year</option>";
for ($b=2011; $b<=2020; $b+=1){
echo "<option value=$b> $b </option>";
}
echo "</select>";
Page 9
// Range of timestamp
echo "<b> TO </b> : </select>";
echo "<select name='hour1'>
<option selected='selected'>Hour</option>";
$hour=array("01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23");
$jlh_hour=count($hour);
for($d=0; $d<$jlh_hour; $d+=1){
echo"<option value=$hour[$d]> $hour[$d] </option>";
}
echo "</select>";
echo "<select name='tgl1'>
<option selected='selected'>Date</option>";
$tanggal=array("01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31");
$jlh_tgl=count($tanggal);
for($d=0; $d<$jlh_tgl; $d+=1){
echo"<option value=$tanggal[$d]> $tanggal[$d] </option>";
}
echo "</select>";
echo "<select name='bln1'>
<option selected='selected'>Month</option>";
$bulan=array("01","02","03","04","05","06","07","08","09","10","11","12");
$jlh_bln=count($bulan);
for($c=0; $c<$jlh_bln; $c+=1){
Page 10
echo"<option value=$bulan[$c]> $bulan[$c] </option>";
}
echo "</select>";
echo "<select name='thn1'>
<option selected='selected'>Year</option>";
for ($b=2011; $b<=2020; $b+=1){
echo "<option value=$b> $b </option>";
}
echo "</select>";
echo "<input type=submit name=submit value=Submit>";
echo "<hr>";
echo "</select>";
// Query Content
//echo "<b> TYPE CONTENT HERE </b> : <textarea style='resize:none' name='txt_query' cols='9' rows='1px' id='txt_query' value='Type here'></textarea><br><hr>";
// Core
//echo "The Data will be displayed here";
$content_query = "select ID, CONTENT, TYPE, PRICE, DATE, count(id) as AMOUNT from content group by content";
$content_q = mysql_query($content_query);
//echo "Realtime Report";
echo "<table border=1>
<tr bgcolor=black>
<td align=center width=50><font color=white>ID</font></td>
Page 11
<td align=center width=150><font color=white>CONTENT</font></td>
<td align=center width=150><font color=white>TYPE</font></td>
<td align=center width=150><font color=white>PRICE</font></td>
<td align=center width=210><font color=white>TIME</font></td>
<td align=center width=250><font color=white>AMOUNT</font></td>
</tr>";
while($result = mysql_fetch_array($content_q)){
echo "<tr>
<td align=center>";
echo $result['ID']; echo "
</td>
<td align=center>";
echo $result['CONTENT']; echo "
</td>
<td align=center>";
echo $result['TYPE']; echo "
</td>
<td align=center>";
echo $result['PRICE']; echo "
</td>
<td align=center>";
echo $result['DATE']; echo "
</td>
<td align=right>";
echo $result['AMOUNT']; echo "
</td>
</tr>";
}
Page 12
// Content Summary download and amount of summary
$content_sum = "select sum(NUMB) as DOWNLOAD from content;";
$content_s = mysql_query($content_sum);
echo "<tr bgcolor=black>
<td colspan=5 align=center><font color=white>Total Download</font></td>
<td align=right>";
while($result1=mysql_fetch_array($content_s)){
echo "<font color=yellow>"; echo $result1['DOWNLOAD']; echo "</font>";
$summary = $result1['DOWNLOAD']*2000;
}
echo "</td>
</tr>
<tr bgcolor=black>
<td colspan=5 align=center><font color=white>Total Revenue</font></td>
<td align=right><font color=yellow>Rp. $summary</font></td>
</tr>
";
echo "</table>";
echo "</form>";
?>
<!--<div class="rc_btn_01"><a href="#">Read more</a></div>-->
<!--<img src="images/templatemo_image_01.jpg" alt="image" />-->
<div class="margin_bottom_30"></div>
Page 13
<div class="header_01"></div>
<div class="rc_btn_02"></div>
<div class="cleaner"></div>
</div>
<div class="section_w320 fl">
<div class="margin_bottom_40"></div>
</div>
<div class="section_w320_with_bg fl">
<div class="section_w320_with_bg_top"></div>
<div class="header_02">Disclaimer</div>
<div class="new_destination">
<div class="img_wrapper">
<img src="images/templatemo_image_02.jpg" alt="image" />
</div>
<div class="text">
<div class="header_03">One content for each downloader</div>
<p>You are cannot download more than once</p>
</div>
</div>
<!--<div class="margin_bottom_30"></div>
Page 14
<div class="new_destination">
<div class="img_wrapper">
</div>
<div class="text">
<div class="header_03"></div>
<p></p>
</div>
</div>
<div class="margin_bottom_30"></div>
<div class="new_destination">
<div class="img_wrapper">
</div>
<div class="text">
<div class="header_03"></div>
</div>
</div>
<div class="margin_bottom_30"></div>
<div class="new_destination">
<div class="img_wrapper">
</div>
<div class="text">
<div class="header_03"></div>
<div><a class="read_more_ok" href="http://www.mystockphoto.com" title="My Stock Photo" target="_blank">My Stock Photo</a></div>
Page 15
</div>
</div>-->
<div class="section_w320_with_bg_bottom"></div>
</div> <!-- end of section w320 -->
<div class="cleaner"></div>
</div> <!-- end of content -->
<div id="templatemo_footer">
<ul class="footer_list">
<!-- <li><a href="#">Home</a></li>
<li><a href="#">Services</a></li>
<li><a href="#">Destinations</a></li>
<li><a href="#">About Us</a></li>
<li class="last"><a href="#">Contact Us</a></li>-->
</ul>
<div class="margin_bottom_10"></div>
Copyright © 2024 <a href="subpage.html">Your Company Name</a> |
Designed by <a rel="nofollow" href="http://www.templatemo.com/page/1" target="_parent">Free CSS Templates</a>
<div class="margin_bottom_10"></div>
<a href="http://validator.w3.org/check?uri=referer"><img style="border:0;width:88px;height:31px" src="http://www.w3.org/Icons/valid-xhtml10" alt="Valid XHTML 1.0 Transitional" width="88" height="31" vspace="8" border="0" /></a>
Page 16
<a href="http://jigsaw.w3.org/css-validator/check/referer"><img style="border:0;width:88px;height:31px" src="http://jigsaw.w3.org/css-validator/images/vcss-blue" alt="Valid CSS!" vspace="8" border="0" /></a>
<div id="templatemo_footer_bottom"></div>
</div>
</div>
<script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jquery/1.3.1/jquery.min.js'></script>
<script type='text/javascript' src='js/logging.js'></script>
</body>
</html>
File retr.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Content Tools, Free XHTML CSS Template</title>
<meta name="keywords" content="Content Tools, Free XHTML CSS Template, Web Design" />
<meta name="description" content="Content Tools - Free XHTML CSS Template provided by TemplateMo.com" />
<link href="templatemo_style.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript">
function clearText(field)
{
if (field.defaultValue == field.value) field.value = '';
else if (field.value == '') field.value = field.defaultValue;
}
</script>
Page 17
</head>
<body>
<div id="templatemo_container">
<div id="templatemo_banner">
<div id="search_section">
<form action="#" method="get">
<input type="text" disabled="disabled" value="" name="q" size="10" id="searchfield"
title="searchfield" onfocus="clearText(this)" onblur="clearText(this)" />
<input type="submit" name="Search" value="" alt="Search" id="searchbutton" title="Search" />
</form>
</div>
<div id="templatemo_banner">
<br>
<font face="Forte" size=6>PASSINDONESIA</font>
</div>
</div>
<div id="templatemo_menu">
<ul>
<li><a href="#" class="current">Realtime Reports</a></li>
<!--<li><a href="#">Others</a></li>-->
<!--<li><a href="#">Destinations</a></li>
<li><a href="#">Gallery</a></li>
<li><a href="#">About Us</a></li>
<li><a href="#" class="last">Contact</a></li>-->
</ul>
</div> <!-- end of menu -->
<div id="templatemo_content">
Page 18
<div class="section_w430 fl margin_right_40">
<div class="header_01">Record Download Content</div>
<?php
mysql_connect("192.168.0.77", "sms", 'sms_pwd!!');
mysql_select_db("mmscms");
// Action POST from user
$hour = $_POST['hour'];
$hour1 = $_POST['hour1'];
$tgl = $_POST['tgl'];
$tgl1 = $_POST['tgl1'];
$bln = $_POST['bln'];
$bln1 = $_POST['bln1'];
$thn = $_POST['thn'];
$thn1 = $_POST['thn1'];
if($hour != "" && $hour1 != "" && $tgl != "" && $tgl1 != "" && $bln != "" && $bln1 != "" && $thn != "" && $thn1 != "" ){
$post_query = "select ID, CONTENT, TYPE, PRICE, DATE, count(id) as AMOUNT FROM content WHERE left(date,13) between '$thn-$bln-$tgl $hour' and '$thn1-$bln1-$tgl1 $hour1' group by CONTENT";
$post_q = mysql_query($post_query);
echo "<b>Report from</b> $thn:$bln:$tgl $hour <b>to</b> $thn1:$bln1:$tgl1 $hour1";
echo "<table border=1>
<tr bgcolor=black>
<td align=center width=50><font color=white>ID</font></td>
<td align=center width=150><font color=white>CONTENT</font></td>
Page 19
<td align=center width=150><font color=white>TYPE</font></td>
<td align=center width=150><font color=white>PRICE</font></td>
<td align=center width=210><font color=white>TIME</font></td>
<td align=center width=250><font color=white>AMOUNT</font></td>
</tr>";
while($result2 = mysql_fetch_array($post_q)){
echo "<tr>
<td align=center>";
echo $result2['ID']; echo "
</td>
<td align=center>";
echo $result2['CONTENT']; echo "
</td>
<td align=center>";
echo $result2['TYPE']; echo "
</td>
<td align=center>";
echo $result2['PRICE']; echo "
</td>
<td align=center>";
echo $result2['DATE']; echo "
</td>
<td align=right>";
echo $result2['AMOUNT']; echo "
</td>
</tr>";
}
$content_sum = "select sum(NUMB) as DOWNLOAD from content WHERE left(date,13) between '$thn-$bln-$tgl $hour' and '$thn1-$bln1-$tgl1 $hour1';";
Page 20
$content_s = mysql_query($content_sum);
echo "<tr bgcolor=black>
<td colspan=5 align=center><font color=white>Total Download</font></td>
<td align=right>";
while($result2=mysql_fetch_array($content_s)){
echo "<font color=yellow>"; echo $result2['DOWNLOAD']; echo "</font>";
$summary = $result2['DOWNLOAD']*2000;
}
echo "</td>
</tr>
<tr bgcolor=black>
<td colspan=5 align=center><font color=white>Total Revenue</font></td>
<td align=right><font color=yellow>Rp. $summary</font></td>
</tr>
";
echo "</table><br>";
}
else{}
echo "<p align=center><a href='http://www.klubmodel.com/model/index.php'>Back</a></p>";
?>
<!--<div class="rc_btn_01"><a href="#">Read more</a></div>-->
<!--<img src="images/templatemo_image_01.jpg" alt="image" />-->
<div class="margin_bottom_30"></div>
<div class="header_01"></div>
Page 21
<div class="rc_btn_02"></div>
<div class="cleaner"></div>
</div>
<div class="section_w320 fl">
<div class="margin_bottom_40"></div>
</div>
<div class="section_w320_with_bg fl">
<div class="section_w320_with_bg_top"></div>
<div class="header_02">Disclaimer</div>
<div class="new_destination">
<div class="img_wrapper">
<img src="images/templatemo_image_02.jpg" alt="image" />
</div>
<div class="text">
<div class="header_03">One content for each downloader</div>
<p>You are cannot download more than once</p>
</div>
</div>
<!--<div class="margin_bottom_30"></div>
Page 22
<div class="new_destination">
<div class="img_wrapper">
</div>
<div class="text">
<div class="header_03"></div>
<p></p>
</div>
</div>
<div class="margin_bottom_30"></div>
<div class="new_destination">
<div class="img_wrapper">
</div>
<div class="text">
<div class="header_03"></div>
</div>
</div>
<div class="margin_bottom_30"></div>
<div class="new_destination">
<div class="img_wrapper">
</div>
<div class="text">
<div class="header_03"></div>
<div><a class="read_more_ok" href="http://www.mystockphoto.com" title="My Stock Photo" target="_blank">My Stock Photo</a></div>
</div>
Page 23
</div>-->
<div class="section_w320_with_bg_bottom"></div>
</div> <!-- end of section w320 -->
<div class="cleaner"></div>
</div> <!-- end of content -->
<div id="templatemo_footer">
<ul class="footer_list">
<!-- <li><a href="#">Home</a></li>
<li><a href="#">Services</a></li>
<li><a href="#">Destinations</a></li>
<li><a href="#">About Us</a></li>
<li class="last"><a href="#">Contact Us</a></li>-->
</ul>
<div class="margin_bottom_10"></div>
Copyright © 2024 <a href="subpage.html">Your Company Name</a> |
Designed by <a rel="nofollow" href="http://www.templatemo.com/page/1" target="_parent">Free CSS Templates</a>
<div class="margin_bottom_10"></div>
<a href="http://validator.w3.org/check?uri=referer"><img style="border:0;width:88px;height:31px" src="http://www.w3.org/Icons/valid-xhtml10" alt="Valid XHTML 1.0 Transitional" width="88" height="31" vspace="8" border="0" /></a>
<a href="http://jigsaw.w3.org/css-validator/check/referer"><img style="border:0;width:88px;height:31px" src="http://jigsaw.w3.org/css-validator/images/vcss-blue" alt="Valid CSS!" vspace="8" border="0" /></a>
Page 24
<div id="templatemo_footer_bottom"></div>
</div>
</div>
<script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jquery/1.3.1/jquery.min.js'></script>
<script type='text/javascript' src='js/logging.js'></script>
</body>
</html>
/Document_Root/
File dld.php
<?php
mysql_connect("192.168.0.77", "sms", "sms_pwd!!");
mysql_select_db("mmscms");
$content = $_GET['code'];
$str = explode(".", $content);
$format = "$str[1]";
$ip_addr=$_SERVER['REMOTE_ADDR'];
$browser=$_SERVER['HTTP_USER_AGENT'];
//$refer= $_SERVER['HTTP_REFERER'];
echo $ip_addr;
echo $browser;
$select = mysql_query("select count(id) as juml from c_session where source_ip='$ip_addr' and usr_agent='$browser';");
while($selecting=mysql_fetch_array($select)){
Page 25
if($selecting['juml']<1){
if($format == "3gp"){
$insert = mysql_query("insert into content (ID, CONTENT, TYPE, price, DATE, NUMB) values ('', '$content', 'Video', '2000', now(), '1');");
}
elseif($format == "mp3"){
$insert = mysql_query("insert into content (ID, CONTENT, TYPE, price, DATE, NUMB) values ('', '$content', 'Sound', '2000', now(), '1');");
}
elseif($format == "mp4"){
$insert = mysql_query("insert into content (ID, CONTENT, TYPE, price, DATE, NUMB) values ('', '$content', 'Sound', '2000', now(), '1');");
}
elseif($format == "png"){
$insert = mysql_query("insert into content (ID, CONTENT, TYPE, price, DATE, NUMB) values ('', '$content', 'Wallpaper', '2000', now(), '1');");
}
elseif($format == "jpg"){
$insert = mysql_query("insert into content (ID, CONTENT, TYPE, price, DATE, NUMB) values ('', '$content', 'Wallpaper', '2000', now(), '1');");
}
elseif($format == "jpeg"){
$insert = mysql_query("insert into content (ID, CONTENT, TYPE, price, DATE, NUMB) values ('', '$content', 'Wallpaper', '2000', now(), '1');");
}
elseif($format == "gif"){
$insert = mysql_query("insert into content (ID, CONTENT, TYPE, price, DATE, NUMB) values ('', '$content', 'Wallpaper', '2000', now(), '1');");
}
elseif($format == "JPG"){
$insert = mysql_query("insert into content (ID, CONTENT, TYPE, price, DATE, NUMB) values ('', '$content', 'Wallpaper', '2000', now(), '1');");
Page 26
}
elseif($format == "JPEG"){
$insert = mysql_query("insert into content (ID, CONTENT, TYPE, price, DATE, NUMB) values ('', '$content', 'Wallpaper', '2000', now(), '1');");
}
if($format == "3GP"){
$insert = mysql_query("insert into content (ID, CONTENT, TYPE, price, DATE, NUMB) values ('', '$content', 'Video', '2000', now(), '1');");
}
elseif($format == "GIF"){
$insert = mysql_query("insert into content (ID, CONTENT, TYPE, price, DATE, NUMB) values ('', '$content', 'Wallpaper', '2000', now(), '1');");
}
elseif($format == "PNG"){
$insert = mysql_query("insert into content (ID, CONTENT, TYPE, price, DATE, NUMB) values ('', '$content', 'Wallpaper', '2000', now(), '1');");
}
elseif($format == "MP3"){
$insert = mysql_query("insert into content (ID, CONTENT, TYPE, price, DATE, NUMB) values ('', '$content', 'Sound', '2000', now(), '1');");
}
elseif($format == "MP4"){
$insert = mysql_query("insert into content (ID, CONTENT, TYPE, price, DATE, NUMB) values ('', '$content', 'Sound', '2000', now(), '1');");
}
else{}
header("location: http://www.klubmodel.com/contentME/$content");
//echo $selecting['juml'];
}
else{
Page 27
header("location: http://www.klubmodel.com/contentME/notif.php");
exit;
}
$insert = mysql_query("insert into c_session (id,source_ip,usr_agent) values ('','$ip_addr','$browser');");
}