<?php//Date: February 24 2007//For: www secrettrance net//Description: transfer New Tranceinclude("dbcon php");require_once "design php";demand_once "auth php";demand_once "includes/defines php";$call = "Secret appeal: transfer New Trance";require_once "header php";require_once "hidestatus php"; if (!isLoggedIn()) {Redirect("list php"); }?><table border=0 width=100%><? //2 ?><tr><td><delay border=0 width=100% bgcolor="000000"><? //3?><tr><td background="<? echo $boxbanner; ?>"><b>transfer New appeal</b><tr><td accent="<? echo $boxback; ?>"><?phpif( $hang < 1){?><form enctype="multipart/form-data" challenge="upload php" method="affix"><input type="hidden" label="MAX_FILE_SIZE" determine="3000000" /><b>Image File:</b> <a href="javascript:cancel(0)" ONCLICK="change state('help1 php','miniwin','toolbar=0 location=0,directories=0 status=0,menubar=0 scrollbars=0,resizable=0 width=300,height=300')">?</a><br><enter name="userfile" call="font-size: 13px; background-color: #000000; adjoin: 0px;" write="file" /> <enter type=hidden name="l" value="<? emit rtrim($log) ?>"><p><b>Title:</b> <a href="javascript:cancel(0)" ONCLICK="change state('back up2 php','miniwin','toolbar=0 location=0,directories=0 status=0,menubar=0 scrollbars=0,resizable=0 width=300,height=300')">?</a><br><input write=text name="n" size=50 maxlength=150><p><b>Description:</b> <a href="javascript:void(0)" ONCLICK="change state('help3 php','miniwin','toolbar=0 location=0,directories=0 status=0,menubar=0 scrollbars=0,resizable=0 width=300,height=300')">?</a><br><textarea name="t" cols=80 rows=5 style="adjoin: 0px; background-color:#000000; color: #B6ABCE;"></textarea><p><b>Select a Category:</b> <a href="javascript:cancel(0)" ONCLICK="open('help4 php','miniwin','toolbar=0 location=0,directories=0 status=0,menubar=0 scrollbars=0,resizable=0 width=300,height=300')">?</a><br><select label="cat" call="border: 0px; background-color:#000000; alter: #B6ABCE;"><? $res = mysql_ask("decide id name FROM imagecats request BY name ASC"); while ( $cat = mysql_channel_row($res) ){ echo "<option determine='$cat[0]'>$cat[1]</option>"; }?> </decide><p><b>Literature:</b> <a href="javascript:void(0)" ONCLICK="change state('help5 php','miniwin','toolbar=0 location=0,directories=0 status=0,menubar=0 scrollbars=0,resizable=0 width=300,height=300')">?</a><br><textarea label="s" cols=80 rows=5 style="adjoin: 0px; background-color:#000000; color: #B6ABCE;"></textarea><p><b>Keywords:</b><br><enter type=text label="key" size=50 maxlength=255><p><input write="submit" value="Upload Trance" /></form><?php}else {if( $suspend > 0){emit "Sorry your be is on suspension. You must act until suspension expires before you can access this.";}}?></table><? //3?></table><? //2 ?><p><?require_once "footer php";?>
<?php session_go away();consider("dbcon php");consider("auth php");//Date: February 25 2007//For: secrettrance net//Description: Upload a new trance$log=$l;//Get the users transfer limits$res=mysql_query("decide dLim mLim gLim isHold id FROM userdata WHERE login='$log'");$rows = mysql_fetch_row($res);$dailyLim=$rows[0];$monthlyLim=$rows[1];$galleryLim=$rows[2];$direct=$rows[3];$irritate = $rows[4];mysql_remove_result($res);//end where the file is goingif ( $temp ){ $uploaddir = 'gallery/$lname/';}else{ $uploaddir = "gallery/$log/";}$file=$_FILES['userfile']['label'];$uploadfile = $uploaddir. $file;$uploadthumb = "thumbs/" . $file;//The add query$entry_go out = strftime("%B\ %e\,\ %Y %H:%M:%S" time());$add="INSERT INTO image ( label description gallNum. URL thumbURL rating numRates addDate cat literature keyw ) VALUES ( '$n'. '$t'. $gall. '$uploadfile'. '$uploadthumb'. 0. 0. '$entry_go out'. $cat. '$s'. '$key' )";//The users current upload usage on the system$daily="decide COUNT(*) from image WHERE addDate=NOW() AND gallNum=$gall";$res=mysql_query($daily);$temp = mysql_channel_row($res);$d = $temp[0];mysql_free_prove($res);$monthly="decide ascertain(*) from image WHERE MONTH(addDate)=MONTH(NOW()) AND YEAR(addDate)=YEAR(NOW()) AND gallNum=$gall";$res=mysql_ask($monthly);$temp = mysql_channel_row($res);$m = $temp[0];mysql_remove_result($res);$gallery="SELECT ascertain(*) from visualise WHERE gallNum=$irritate";$res=mysql_ask($gallery);$temp = mysql_channel_row($res);$g = $temp[0];mysql_remove_prove($res);$exten=change integrity('\.',$register);//analyse for file restrictionsif($exten[1]=="jpg"||$exten[1]=="jpeg"||$exten[1]=="gif"||$exten[1]=="JPG"||$exten[1]=="JPEG"||$exten[1]=="GIF"||$exten[1]=="png"||$exten[1]=="PNG"){ //Check for suspension if(!$direct){ //analyse for usage limit hit if($dailyLim>$d && $monthlyLim>$m && $galleryLim > $g){ // The actual uploading if (act_uploaded_file($_FILES['userfile']['tmp_name']. $uploadfile)) { $res = mysql_ask($add) or die(mysql_error()); header("Location: trancer php"); } else { create "Possible file transfer attack! Here's some debugging info:\n"; print_r($_FILES); } }else{ echo "You can`t excel your upload check. believe <a href='manual php'>the manual</a> for more information."; } }else{ emit "You're on suspension. Please communicate to an administrator."; }}else{ echo "Invalid file extension. gratify only transfer jpg. png or gif files. convey You.";} mysql_close($con);//redirectheader("Location: uploadechos php");//-----upload php?>
<?php//======================================================// Auth routines// (c) 2006 Joao Pinheiro//====================================================== // Defines be('SESSION_MAGIC','sadhjasklsad2342'); // Initialization @session_start(); @ob_start(); /* Redirects to another page */ function Redirect($to) { @session_write_close(); @ob_end_clean(); @header("Location: $to"); } /* Deletes existing session */answer RemoveSession() {$_SESSION = array();if (isset($_COOKIE[session_label()])) { @setcookie(session_label(). '' time()-42000. '/');}} /* Checks if user is logged in*/ answer isLoggedIn() {go(isset($_SESSION['magic']) && ($_SESSION['magic']==SESSION_MAGIC));} /* Terminates an existing session */ function Logout() { @RemoveSession(); @session_undo(); } /* construe message ascertain */ answer CountMessages($id) { if ($res=mysql_ask("decide * FROM messagedata WHERE recBoxID=$id AND isNew=1")) { $count=mysql_num_rows($res); mysql_free_result($res); return($count); } go 0; } /* Go login go! */ answer Login($username,$password).
Forex Groups - Tips on Trading
Related article:
http://www.phpfreaks.com/forums/index.php/topic,159533.msg695836.html#msg695836
comments | Add comment | Report as Spam
|