]> jfr.im git - z_archive/KronOS.git/commitdiff
Ignoring .htaccess
authorJohn Runyon <redacted>
Fri, 1 Nov 2013 05:07:50 +0000 (05:07 +0000)
committerJohn Runyon <redacted>
Fri, 1 Nov 2013 05:07:50 +0000 (05:07 +0000)
.gitignore
kosapps/store/headviewer.php [new file with mode: 0644]

index 6c68886c3fa068cd41712c9ccb3976e64b6f881f..e9dc863bed2d4edb052f978b55b2ff8ec8438d5f 100644 (file)
@@ -1,5 +1,6 @@
 *.pem
 *~
 *.bak
+.htaccess
 config.php
 database.php
diff --git a/kosapps/store/headviewer.php b/kosapps/store/headviewer.php
new file mode 100644 (file)
index 0000000..2a3f20d
--- /dev/null
@@ -0,0 +1,35 @@
+<?php
+
+require_once('kosapps/common.php');
+
+class Headviewer extends KOS_App {
+       protected $iid;
+
+       public function appName() {
+               return "headviewer";
+       }
+       public function windowTitle() {
+               return "HTTP Headers Tool";
+       }
+       public function jscode($target) {
+               return <<<EOF
+jQuery($target+' .httpheaders-urlbar').submit(function(ev){
+       'get headers for "$target .httpheaders-urlbar > input" from app.'
+
+       ev.preventDefault();
+});
+EOF;
+       }
+       public function windowContents() {
+               return <<<EOF
+<div><form class="httpheaders-urlbar">http://google.com/</form></div>
+<div class="httpheaders-headers"></div>
+EOF;
+       }
+
+       public function act($action) {
+               return $action;
+       }
+}
+
+?>