This file contains hidden or 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
| $("a").click(function (e) { | |
| window.location = $(this).attr("href"); | |
| e.preventDefault(); | |
| }); |
This file contains hidden or 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
| <?xml version="1.0"?> | |
| <!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd"> | |
| <cross-domain-policy> | |
| <!-- Read this: www.adobe.com/devnet/articles/crossdomain_policy_file_spec.html --> | |
| <!-- Most restrictive policy: --> | |
| <site-control permitted-cross-domain-policies="none"/> |
This file contains hidden or 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
| setTimeout(function () { | |
| if ($(".some-error") != null) | |
| $.mobile.silentScroll($(".some-error").position().top); | |
| }, 200); |
This file contains hidden or 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
| function cloneFromView(obj) { | |
| if (null == obj || "object" != typeof obj) return obj; | |
| var copy = Ember.View.create({ | |
| templateName: obj.templateName | |
| }); | |
| for (var attr in obj) { | |
| if (obj.hasOwnProperty(attr)) copy[attr] = obj[attr]; | |
| } | |
| return copy; | |
| } |
This file contains hidden or 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
| <?php | |
| ob_start(); | |
| ini_set ("display_errors", 1); | |
| if (isset($_REQUEST["id"])) { | |
| $id = $_REQUEST["id"]; | |
| $c = mysqli_connect("localhost" , "root", "", "mcdb"); | |
| $sql = "SELECT name, type, size, content " ."FROM photo WHERE id = '$id'"; | |
| $rc = mysqli_query($c, $sql) or die('Error, query failed'); | |
| list($name, $type, $size, $content) = mysqli_fetch_array($rc); |
This file contains hidden or 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
| <?php | |
| ob_start(); | |
| ini_set ("display_errors", 1); | |
| if (isset($_POST["submit"])) { | |
| $fileName = $_FILES['file']['name']; | |
| $tmpName = $_FILES['file']['tmp_name']; | |
| $fileSize = $_FILES['file']['size']; | |
| $fileType = $_FILES['file']['type']; |
NewerOlder