This is my sea scripts view.php
<?php #-----------------------------------------------------# # # #-----------------------------------------------------# require 'moduls/ini.php'; require 'moduls/fun.php'; require 'moduls/connect.php'; require 'moduls/header1.php'; require 'online.php'; // Test variables $id = intval($_GET['id']); is_num($_GET['eval'],'eval'); // Get the ин�� file $file_info = mysql_fetch_assoc(mysql_query('SELECT * FROM `files` WHERE `id` = '.$id)); if(!is_file($file_info['path'])){ die('File does not exist'); } ###############Get the current directory############# if(!$id){ $d['path'] = $setup['path'].'/'; } else{ $d = mysql_fetch_assoc(mysql_query('SELECT `path` FROM `files` WHERE `id` = '.$id.' LIMIT 1')); } ###############Cooking title################### $ex = explode('/',$d['path']); foreach($ex as $k=>$v) { if($v!='' and $v!='.' and $v!='..' and $v!=$setup['path']) { $s = mysql_fetch_array(mysql_query("SELECT `id`,`name` FROM `files` WHERE `path` LIKE '%".clean($v)."/' AND `size` = '0'")); $s['name'] = str_replace('*','',$s['name']); if($k >= sizeof($ex)-1) $put .= $s['name']; else $put .= ' » ['.$s['name'].'](#)'; } } ##############Title########################## /*echo ' <a href="'.$setup['site_url'].'">'.$setup['site_url'].'</a>»[Downloads](#)»'.$put.'';*/ ##############Total comments $all_komments = mysql_result(mysql_query('SELECT COUNT(`id`) FROM `komments` WHERE `file_id` = '.$id),0); ##############Polls are############## if(isset($_GET['eval']) and $setup['eval_change'] == 1) { $ips = explode("\n",$file_info['ips']); if(in_array($ip ,$ips) === false) { $vote = 0; if(empty($file_info['ips'])){ $ipp = $ip; } else{ $ipp = $file_info['ips']."\n".$ip; } if($_GET['eval']==0){ $str = 'UPDATE `files` SET `no`=`no`+1,`ips`="'.$ipp.'" WHERE `id` = '.$file_info['id']; } elseif($_GET['eval']==1){ $str = 'UPDATE `files` SET `yes`=`yes`+1,`ips`="'.$ipp.'" WHERE `id` = '.$file_info['id']; } mysql_query($str); $vote = 1; $file_info = mysql_fetch_assoc(mysql_query('SELECT * FROM `files` WHERE `id` = '.$id)); } else $vote = 2; } #######Get the file name and the reverse directory##### $filename = pathinfo($file_info['path']); $ext = strtolower($filename['extension']); $dir = $filename['dirname'].'/'; $filename = $filename['basename']; $back = mysql_fetch_assoc(mysql_query("SELECT * FROM `files` WHERE `path` = '".clean($dir)."'")); ###############Nice size################### if($file_info['size'] < 1024){ $file_info['size'] = $file_info['size'].'b'; } elseif($file_info['size'] < 1048576 and $file_info['size'] >= 1024){ $file_info['size'] = round($file_info['size']/1024, 2).'Kb'; } else{ $file_info['size'] = round($file_info['size']/1024/1024, 2).'Mb'; } ###############Output################### print ''; echo ''; include 'RandomAd.php'; echo ''; echo ''; include 'smaato.php'; echo ''; echo ''; include 'admob.php'; echo ''; echo ''; include 'vserv.php'; echo ''; echo '<form name="sfiles" action="http://www.xxxxxx/search.php?act=search" method="post"> Search File : <form><input class="enter" name="word" type="text" maxlength="20" value=""><input class=buttom type="submit" value="Search"></form>'; echo ''; if ($ext =='jar') echo '<h2> '.$filename.'</h2>'; else echo '<h2>Download- '.$filename.'</h2>'; ###############Description############################# if ($ext == 'txt') {$popis=file_get_contents($file_info['path']); $popis=substr($popis,0,500); $popis = htmlentities($popis, ENT_QUOTES, 'UTF-8'); echo ''.$popis.'... '; } if(!empty($file_info['about'])){ $file_info['about'] = str_replace("\n", ' ', $file_info['about']); echo ''.$file_info['about'].' '; } if(is_file($setup['opath'].'/'.$filename.'.txt')) { include('kodirovka.php'); $a=file_get_contents($setup['opath'].'/'.$filename.'.txt'); $a=charset_x_win("$a"); $a=iconv("windows-1251", "UTF-8", "$a"); $f = str_replace("\n",' ', $a); echo ''.$f.' '; } if($ext == 'thm' || $ext == 'nth'){ echo '  '; } ##############Screenshot############## if(is_file($setup['spath'].'/'.$filename.'.gif')){ echo ' <img class="absmiddle" src="'.$setup['spath'].'/'.$filename.'.gif" alt="screen"> '; } if(is_file($setup['spath'].'/'.$filename.'.jpg')){echo ' <img class="absmiddle" src="'.$setup['spath'].'/'.$filename.'.jpg" alt="screen"> '; } if(is_file($setup['spath'].'/'.$filename.'.jpeg')){echo ' <img class="absmiddle" src="'.$setup['spath'].'/'.$filename.'.jpeg" alt="screen"> '; } // Video (ffmpeg) elseif(($ext == '3gp' || $ext == 'avi' || $ext == 'mp4') && extension_loaded('ffmpeg')){ $mov = new ffmpeg_movie($file_info['path']); // 80x80 print '  '; } ###############Custom size for images############ $image = ''; $ext = strtolower($ext); if ($ext == 'gif' or $ext == 'jpg' or $ext == 'jpeg' or $ext == 'jpe' or $ext == 'png') $image = 1; if ($image == 1) { $arr = array('128x128','128x160','176x220','220x176','240x320','320x240','360x640','640x480',); //Upload Image echo '  Select Your Screen Size: '; foreach($arr as $v) { list ($W,$H) = explode('x',$v); echo '**['.$v.'](http://www.xxxxxx/im.php?id=)**, '; } echo''; } /*$image = ''; $ext = strtolower($ext); if ($ext == 'gif' or $ext == 'jpg' or $ext == 'jpeg' or $ext == 'jpe' or $ext == 'png') $image = 1; if ($image == 1) { echo ' **Custom size:** <form action="http://www.xxxxxx/im.php" method="GET"> <input type="hidden" name="id" value="'.$id.'"> <input type="text" name="W" maxlength="3" size="3">x<input type="text" name="H" maxlength="3" size="3"> px. <input type="submit" value="Ok"> </form>'; }*/ echo ' Download Link: <a class="dwnLink" rel="nofollow" href="'.$setup['site_url'].dirname($_SERVER['PHP_SELF']).'/'.$file_info['path'].'"onclick="vserv();">**[ Download File ]**</a> '; echo 'File Size:**'.$file_info['size'].'** '; ###############Recent downloads################### /*if($file_info['timeload']) { $file_info['timeload'] = date('d.m.Y (H:i)', $file_info['timeload']); print '**Recent downloads:**'.$file_info['timeload'].''; }*/ ###############Time added###################### /*$file_info['timeupload'] = date('d.m.Y (H:i)', $file_info['timeupload']); print '**Time added:**'.$file_info['timeupload'].'';*/ ###############INFO on jar########################### /*elseif($ext == 'jar'){ include 'jar_info.php'; echo '**Developer:'.$poz.'** '; echo '**Version:'.$ver.'** '; echo ''; }*/ ###############INFO on mp3########################### if($ext == 'mp3' or $ext == 'wav'){ if ( !$h_ua || strpos($h_ua, 'windows') !== false || strpos($h_ua, 'linux') !== false || strpos($h_ua, 'bsd') !== false || strpos($h_ua, 'x11') !== false || strpos($h_ua, 'unix') !== false || strpos($h_ua, 'macintosh') !== false || strpos($h_ua, 'macos') !== false) { /*echo'**Play Mp3 Online:** <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0 " width="96" height="20" id="own_flashplayer" align="middle"> <param name="allowScriptAccess" value="sameDomain" /> <embed src="own_flashplayer_plc.swf?file='.$file_info['path']. '&sta rtplay=false" quality="high" bgcolor="#ffffff" width="96" height="20" name="own_flashplayer" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /> </object>';*/ } /*echo ''; include 'moduls/classAudioFile.php'; $AF = new AudioFile; $AF->loadFile($file_info['path']); $AF->printSampleInfo();echo '';*/ } if(($ext == 'avi' || $ext == 'flv' || $ext =='swf' || $ext =='mp4') AND ( !$h_ua || strpos($h_ua, 'windows') !== false || strpos($h_ua, 'linux') !== false || strpos($h_ua, 'bsd') !== false || strpos($h_ua, 'x11') !== false || strpos($h_ua, 'unix') !== false || strpos($h_ua, 'macintosh') !== false || strpos($h_ua, 'macos') !== false)) { echo '<object type="application/x-shockwave-flash" data="uflvplayer_500x375.swf" height="188" width="250"> <param name="bgcolor" value="#DFE6EF" /><param name="allowFullScreen" value="true" /><param name="allowScriptAccess" value="always" /><param name="movie" value="uflvplayer_500x375.swf" /> <param name="FlashVars" value="way='.$file_info['path'].'&swf=uflvplayer_500x375.swf&w=400&h=300&pic=ffmpeg.php?id='.$file_info['id'].'&autoplay=0&tools=1&skin=white&volume=70&q=&comment=" /></object> '; } ###############Vote########################### /*if($setup['eval_change'] == 1) { $i = @round(($file_info['yes'])/($file_info['yes']+$file_info['no'])*100,0); echo ' **Rate File : '.$file_info['yes'].'/'.$file_info['no'].'** '; if ($vote==0) echo '( [**+**](#)/[**-**](#))'; if ($vote==1) echo ' Thanks, your vote counted!'; if ($vote==2) echo ' You have already voted for this file.'; }*/ ###############Thread########################### if($setup['cut_change'] == 1) { if ($ext == 'mp3') print '[**Thread**](#) [**Listen to an excerpt [7c.]**](#) '; } //echo ''; ###############Browse archive#################### /*if($setup['zip_change'] == 1) { if($ext == 'zip'){ print '[**Browse archive**](#) '; } }*/ ##############txt############## /*if($ext == 'txt'){ echo'[Read](#) '; print '[Download [ZIP]](#) [Download [JAR]](#) '; }*/ ###############Download Menu####################### /*if($ext == 'jar' and $setup['jad_change'] == 1){ echo '[**Download [Jad]**](#) '; }*/ $backdir = @mysql_fetch_array(mysql_query("SELECT * FROM `files` WHERE `path` = '".clean($file_info['infolder'])."'")); ###############Picture Text####################### $pyt=$file_info[path]; if($ext==png or $ext==jpg ) { $h_ua = str_replace('windows ce', '', strtolower($_SERVER['HTTP_USER_AGENT'])); if ( !$h_ua || strpos($h_ua, 'windows') !== false || strpos($h_ua, 'linux') !== false || strpos($h_ua, 'bsd') !== false || strpos($h_ua, 'x11') !== false || strpos($h_ua, 'unix') !== false || strpos($h_ua, 'macintosh') !== false || strpos($h_ua, 'macos') !== false) { /*echo('[**Download image as text [txt]**](#) ');*/ }} //<tr><td width="10%" align=left style="background: #DFE6EF;">**Downloads:**</td><td style="background: #DFE6EF;"> '.$file_info['loads'].' �аз(а)</td></tr> echo'Downloads:**'.$file_info['loads'].' time**'; $backdir=str_replace('*',' ',$backdir); echo'Category:**'.$backdir['name'].'**'; /*echo '<input class="enter" size="20" type="text" value="'.$setup['site_url'].dirname($_SERVER['PHP_SELF']).'/'.$file_info['path'].'"/> ';*/ ###############Comments####################### if($setup['komments_change'] == 1){ echo '[**Comments ['.$all_komments.']**](http://www.xxxxxx/komm.php?id=) '; } echo' **« [Go Back](http://www.xxxxxx/dj-) '; echo ' [Home](/)**'; /*if($setup['online'] == 1)echo '**Online: '.$all_online[0].'**';*/ echo ''; include 'smaato1.php'; echo ''; echo ''; include 'vserv1.php'; echo ''; echo ''; include 'admob1.js'; echo ' '; echo 'Sponsor Sites: '; include 'RandomAd.php'; echo ''; include 'moduls/foot.php'; echo '</body></html>'; ?> <script language=JavaScript> <!-- //This will disable the right click for guests at your forum. var message="Right Clicks Not Allowed!"; /////////////////////////////////// function clickIE4(){ if (event.button==2){ alert(message); return false; } } function clickNS4(e){ if (document.layers||document.getElementById&&!document.all){ if (e.which==2||e.which==3){ alert(message); return false; } } } if (document.layers){ document.captureEvents(Event.MOUSEDOWN); document.onmousedown=clickNS4; } else if (document.all&&!document.getElementById){ document.onmousedown=clickIE4; } document.oncontextmenu=new Function("alert(message);return false") // --> </script>Always Help Needy Peoples !!!!!
