-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
15 changed files
with
92 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
function getXMLHttp() | ||
{ | ||
var xmlHttp | ||
|
||
try | ||
{ | ||
//Firefox, Opera 8.0+, Safari | ||
xmlHttp = new XMLHttpRequest(); | ||
} | ||
catch(e) | ||
{ | ||
//Internet Explorer | ||
try | ||
{ | ||
xmlHttp = new ActiveXObject("Msxml2.XMLHTTP"); | ||
} | ||
catch(e) | ||
{ | ||
try | ||
{ | ||
xmlHttp = new ActiveXObject("Microsoft.XMLHTTP"); | ||
} | ||
catch(e) | ||
{ | ||
alert("Your browser does not support AJAX!") | ||
return false; | ||
} | ||
} | ||
} | ||
return xmlHttp; | ||
} | ||
|
||
function RequestImage(filename) | ||
{ | ||
var xmlHttp = getXMLHttp(); | ||
|
||
xmlHttp.onreadystatechange = function() | ||
{ | ||
if(xmlHttp.readyState == 4) | ||
{ | ||
HandleResponse(xmlHttp.responseText, filename); | ||
} | ||
} | ||
|
||
xmlHttp.open("GET", "ajax.php?var1=value1&var2=value2", true); | ||
xmlHttp.send(null); | ||
} | ||
|
||
function HandleResponse(response, filename) | ||
{ | ||
//document.getElementById('preview').innerHTML = ag.concat("/>\""); | ||
document.getElementById('filtered').innerHTML = response; | ||
} | ||
|
||
function openFile(file) { | ||
//document.getElementById('preview').innerHTML = "<img src=bank/rannou/25696c5.jpg>"; | ||
var im = "<img src="; | ||
var ag = im.concat(file.substring(6)); | ||
document.getElementById('preview').innerHTML = ag.concat(" height=\"200\" width=\"200\" />"); | ||
//RequestImage(file); | ||
} | ||
|
||
function preview(file) { | ||
RequestImage(); | ||
// get image name | ||
// get filter | ||
// server process | ||
// server sends new image location | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<?php | ||
$cat=&$_GET['var1']; | ||
echo $cat; | ||
?> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?php | ||
$target = "bank/rannou/"; | ||
$target = $target . basename( $_FILES['uploaded']['name']) ; | ||
$ok=1; | ||
if(move_uploaded_file($_FILES['uploaded']['tmp_name'], $target)) | ||
{ | ||
echo "The file ". basename( $_FILES['uploadedfile']['name']). " has been uploaded"; | ||
} | ||
else { | ||
echo "Sorry, there was a problem uploading your file."; | ||
} | ||
?> |