Upload your Photos


""){ ?> Choose Photos


""){ $stmt = $pdodb->prepare("UPDATE LOW_PRIORITY girls SET mainpic=:mainpic WHERE ID=:sessid "); $stmt->bindParam(':sessid',$_SESSION["uid"]); $stmt->bindParam(':mainpic',$_REQUEST["setmain"]); $stmt->execute(); echo '

hauptfoto gesetzt

'; } if($_REQUEST["did"] <> ""){ require_once('../asdk/sdk-1.5.15/sdk.class.php'); $stuff = new CFLoader(); $stuff->autoloader('Amazon'); $stuff->autoloader('CF'); $stuff->autoloader('lib'); $stuff->autoloader('RequestCore'); //AWS access info if (!defined('awsAccessKey')) define('awsAccessKey', 'AKIAIGXAAGLHAPXJGX2A'); if (!defined('awsSecretKey')) define('awsSecretKey', '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'); $s3 = new AmazonS3(); echo 'deleting'; $stmt = $pdodb->prepare("SELECT ID,picis FROM pix WHERE mid=:mid AND ID=:did LIMIT 1"); $stmt->bindParam(':did',$_REQUEST["did"]); $stmt->bindParam(':mid',$_SESSION["uid"]); $stmt->execute(); while($i3=$stmt->fetch()) { $npic = $i3["picis"]; } if($stmt->rowCount() > 0 && $npic <> ""){ //echo $npic; $stmt = $pdodb->prepare("DELETE FROM pix WHERE ID=:did and mid=:mid"); $stmt->bindParam(':did',$_REQUEST["did"]); $stmt->bindParam(':mid',$_SESSION["uid"]); $stmt->execute(); $s3->delete_object('gnxe', 'img50/'.$npic); $s3->delete_object('gnxe', 'img100/'.$npic); $s3->delete_object('gnxe', 'img200/'.$npic); $s3->delete_object('gnxe', 'img500/'.$npic); $file_upload_response = $s3->batch()->send(); //print_r($file_upload_response); } } $stmt = $pdodb->prepare("SELECT ID,picis FROM pix WHERE mid=:sessid ORDER BY ID desc"); $stmt->bindParam(':sessid',$_SESSION["uid"]); $stmt->execute(); while($i3=$stmt->fetch()) { echo ''; } ?>
Login Register