diff options
author | mensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2008-11-14 15:39:19 +0000 |
---|---|---|
committer | mensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2008-11-14 15:39:19 +0000 |
commit | 1c5685d68f1b73270fb814fe04cbb490eb90ba5f (patch) | |
tree | 3d3ada08a934b96fc31531f1327690d7edc6f766 /includes/js/dijit/tests/layout/getResponse.php | |
parent | 104d59099e048688c4dbac37d72137006e396558 (diff) | |
download | semanticscuttle-1c5685d68f1b73270fb814fe04cbb490eb90ba5f.tar.gz semanticscuttle-1c5685d68f1b73270fb814fe04cbb490eb90ba5f.tar.bz2 |
Minor fix: Remove DOJO library (60Mo) replaced by link to Google CDN (online DOJO library)
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@159 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'includes/js/dijit/tests/layout/getResponse.php')
-rw-r--r-- | includes/js/dijit/tests/layout/getResponse.php | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/includes/js/dijit/tests/layout/getResponse.php b/includes/js/dijit/tests/layout/getResponse.php deleted file mode 100644 index d695a4b..0000000 --- a/includes/js/dijit/tests/layout/getResponse.php +++ /dev/null @@ -1,57 +0,0 @@ -<?php - // this just bounces a message as a response, and optionally emulates network latency. - - // default delay is 0 sec, to change: - // getResponse.php?delay=[Int milliseconds] - - // to change the message returned - // getResponse.php?mess=whatever%20string%20you%20want. - - // to select a predefined message - // getResponse.php?messId=0 - - error_reporting(E_ALL ^ E_NOTICE); - - $delay = 1; // 1 micro second to avoid zero division in messId 2 - if(isset($_GET['delay']) && is_numeric($_GET['delay'])){ - $delay = (intval($_GET['delay']) * 1000); - } - - if(isset($_GET['messId']) && is_numeric($_GET['messId'])){ - switch($_GET['messId']){ - case 0: - echo "<h3>WARNING This should NEVER be seen, delayed by 2 sec!</h3>"; - $delay = 2; - break; - case 1: - echo "<div dojotype='dijit.TestWidget'>Testing setHref</div>"; - break; - case 2: - echo "<div dojotype='dijit.TestWidget'>Delayed setHref test</div> - <div dojotype='dijit.TestWidget'>Delayed by " . ($delay/1000000) . " sec.</div>"; - break; - case 3: - echo "IT WAS the best of times, it was the worst of times, it was the age of wisdom, it was the age of foolishness, it was the epoch of belief, it was the epoch of incredulity, it was the season of Light, it was the season of Darkness, it was the spring of hope, it was the winter of despair, we had everything before us, we had nothing before us, we were all going direct to Heaven, we were all going direct the other way -- in short, the period was so far like the present period, that some of its noisiest authorities insisted on its being received, for good or for evil, in the superlative degree of comparison only"; - break; - case 4: - echo "There were a king with a large jaw and a queen with a plain face, on the throne of England; there were a king with a large jaw and a queen with a fair face, on the throne of France. In both countries it was clearer than crystal to the lords of the State preserves of loaves and fishes, that things in general were settled for ever."; - break; - case 5: - echo "It was the year of Our Lord one thousand seven hundred and seventy- five. Spiritual revelations were conceded to England at that favoured period, as at this. Mrs. Southcott had recently attained her five-and- twentieth blessed birthday, of whom a prophetic private in the Life Guards had heralded the sublime appearance by announcing that arrangements were made for the swallowing up of London and Westminster. Even the Cock-lane ghost had been laid only a round dozen of years, after rapping out its messages, as the spirits of this very year last past (supernaturally deficient in originality) rapped out theirs. Mere messages in the earthly order of events had lately come to the English Crown and People, from a congress of British subjects in America:"; - break; - default: - echo "unknown messId:{$_GET['messId']}"; - } - } - - if(isset($_GET['bounceGetStr']) && $_GET['bounceGetStr']){ - echo "<div id='bouncedGetStr'>{$_SERVER["QUERY_STRING"]}</div>"; - } - - if(isset($_GET['message']) && $_GET['message']){ - echo $_GET['message']; - } - - usleep($delay); - -?> |