diff --git a/application/views/api/index.php b/application/views/api/index.php deleted file mode 100644 index 008da5436..000000000 --- a/application/views/api/index.php +++ /dev/null @@ -1,143 +0,0 @@ -createProcessingInstruction("xml-stylesheet", "type=\"text/xsl\" href=\"".base_url()."assets/api.xsl\""); - $xmlDoc->appendChild($xsl); -} - -// Get the method called, and build the root node -$call = $data['queryInfo']['call']; -$rootNode = $xmlDoc->createElement("Wavelog-API"); -$parentNode = $xmlDoc->appendChild($rootNode); - -// Get the results output -$output = $data[$call."_Result"]; - -// Add the queryInfo node -$node = $xmlDoc->createElement("queryInfo"); -$queryElement = $parentNode->appendChild($node); -$queryElement->setAttribute("timeStamp", date("r", time())); -$queryElement->setAttribute("calledMethod", $data['queryInfo']['call']); -//$queryElement->setAttribute("queryArgs", $queryArgsString); -$queryElement->setAttribute("resultsCount", count($data['queryInfo']['numResults'])); -if(ENVIRONMENT == "development") { - $debugInfo = $xmlDoc->createElement("debugInfo"); - $debugElement = $queryElement->appendChild($debugInfo); - $debugElement->setAttribute("dbQuery", $data['queryInfo']['dbQuery']); - $debugElement->setAttribute("clientVersion", $_SERVER['HTTP_USER_AGENT']); - $debugElement->setAttribute("requestURI", $_SERVER['REQUEST_URI']); -# $debugElement->setAttribute("benchMark", $this->benchmark->marker['total_execution_time_start'].", ".$this->benchmark->marker['loading_time:_base_classes_start'].", ".$this->benchmark->marker['loading_time:_base_classes_end'].", ".$this->benchmark->marker['controller_execution_time_( api / add )_start']); -} -$queryElement->setAttribute("executionTime", $data['queryInfo']['executionTime']); -$queryElement->setAttribute("logbookURL", $this->config->item('base_url')); - -// Add the main results node -$node = $xmlDoc->createElement("results"); -$elementsNode = $parentNode->appendChild($node); - -// Cycle through the results and add to the results node -if($output['results']) -{ - foreach($output['results'] as $e) { - $node = $xmlDoc->createElement("result"); - $element = $elementsNode->appendChild($node); - - foreach($e as $attr) { - #while($attr = current($e)) { - if(is_array($attr)) - { - foreach($attr as $subattr) - { - $node = $xmlDoc->createElement(key($e)); - foreach($subattr as $subsubattr) - { - $node->setAttribute(key($subattr), $subsubattr); - next($subattr); - } - $element->appendChild($node); - } - } - else - { - $element->setAttribute(key($e), $attr); - } - next($e); - } - } -} - -if(isset($data['error'])) -{ - $node = $xmlDoc->createElement("error"); - $errorNode = $parentNode->appendChild($node); - - $errorNode->setAttribute("id", $data['error']); -} - -// Output - -// Check whether we want XML or JSON output -if(($data['format'] == "xml") || ($data['format'] == "xmlp") || ($data['format'] == "xmlt")) { - if(($data['format'] == "xml") || ($data['format'] == "xmlp")) { - // Set the content-type for browsers - header("Content-type: text/xml"); - } - echo formatXmlString($xmlDoc->saveXML()); -} else if($data['format'] == "json") { - // Set the content-type for browsers - header("Content-type: application/json"); - // For now, our JSON output is simply the XML re-parsed with SimpleXML and - // then re-encoded with json_encode - $x = simplexml_load_string($xmlDoc->saveXML()); - $j = json_encode($x); - echo $j; -} else { - echo "Error: Unknown format type '".$data['format']."'."; -} - -// This function tidies up the outputted XML -function formatXmlString($xml) { - - // add marker linefeeds to aid the pretty-tokeniser (adds a linefeed between all tag-end boundaries) - $xml = preg_replace('/(>)(<)(\/*)/', "$1\n$2$3", $xml); - - // now indent the tags - $token = strtok($xml, "\n"); - $result = ''; // holds formatted version as it is built - $pad = 0; // initial indent - $matches = array(); // returns from preg_matches() - - // scan each line and adjust indent based on opening/closing tags - while ($token !== false) : - - // test for the various tag states - - // 1. open and closing tags on same line - no change - if (preg_match('/.+<\/\w[^>]*>$/', $token, $matches)) : - $indent=0; - // 2. closing tag - outdent now - elseif (preg_match('/^<\/\w/', $token, $matches)) : - $pad--; - // 3. opening tag - don't pad this one, only subsequent tags - elseif (preg_match('/^<\w[^>]*[^\/]>.*$/', $token, $matches)) : - $indent=1; - // 4. no indentation needed - else : - $indent = 0; - endif; - - // pad the line with the required number of leading spaces - $line = str_pad($token, strlen($token)+$pad, ' ', STR_PAD_LEFT); - $result .= $line . "\n"; // add to the cumulative result, with linefeed - $token = strtok("\n"); // get the next token - $pad += $indent; // update the pad size for subsequent lines - endwhile; - - return $result; -} - -?> diff --git a/application/views/search/result_search.php b/application/views/search/result_search.php deleted file mode 100644 index 012e2a451..000000000 --- a/application/views/search/result_search.php +++ /dev/null @@ -1,100 +0,0 @@ -
- - - - - - - - - - - config->item('use_auth')) && ($this->session->userdata('user_type') >= 2)) { ?> - - - session->userdata('user_eqsl_name') != "") { ?> - - - - - - session->userdata('user_lotw_name') != "") { ?> - - - - - - - - - - result() as $row) { ?> - '; ?> - - - - - - - COL_SAT_NAME != null) { ?> - - - - - - config->item('use_auth')) && ($this->session->userdata('user_type') >= 2)) { ?> - - - session->userdata('user_eqsl_name')){ ?> - - - - session->userdata('user_lotw_name') != "") { ?> - - - - - - - - -
COL_TIME_ON); echo date('d/m/y', $timestamp); ?>COL_TIME_ON); echo date('H:i', $timestamp); ?>COL_CALL)); ?>COL_SUBMODE==null?$row->COL_MODE:$row->COL_SUBMODE; ?>COL_RST_SENT; ?> COL_STX_STRING) { ?>COL_STX_STRING;?>COL_RST_RCVD; ?> COL_SRX_STRING) { ?>COL_SRX_STRING;?>COL_SAT_NAME; ?>COL_BAND; ?>COL_COUNTRY))); ?> - - - - - - - - - Edit -
-
- diff --git a/assets/api.xsl b/assets/api.xsl deleted file mode 100644 index e26b0dedc..000000000 --- a/assets/api.xsl +++ /dev/null @@ -1,119 +0,0 @@ - - - - - - - <xsl:value-of select="//queryInfo/@calledMethod"/> - - - -

Output of ''

- - - - - - - - - - - - - - - - - - - - -
- - - - - - -
- = -
-
-

- -

- - - - - - - - - - -
requestURI
dbQuery
clientVersion
-
-

- -

- - -
-
diff --git a/assets/svg/Blank_USA,_w_territories.svg b/assets/svg/Blank_USA,_w_territories.svg deleted file mode 100644 index f78157253..000000000 --- a/assets/svg/Blank_USA,_w_territories.svg +++ /dev/null @@ -1,142 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - DC - - - - - MD - - - - - DE - - - - - NJ - - - - - CT - - - - - RI - - - - - MH - - - - - NH - - - - - VT - - - - - AS - - - - - MP - - - - - GU - - - - - VI - - - - - PR - - - - diff --git a/assets/svg/Blank_US_Map.svg b/assets/svg/Blank_US_Map.svg deleted file mode 100644 index 46ccbd39d..000000000 --- a/assets/svg/Blank_US_Map.svg +++ /dev/null @@ -1,326 +0,0 @@ - - - - - - image/svg+xml - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/images/CQzone.gif b/images/CQzone.gif deleted file mode 100644 index dac2bd698..000000000 Binary files a/images/CQzone.gif and /dev/null differ diff --git a/images/application_edit.png b/images/application_edit.png deleted file mode 100644 index fb2efb877..000000000 Binary files a/images/application_edit.png and /dev/null differ diff --git a/images/body.png b/images/body.png deleted file mode 100644 index c6b7531a8..000000000 Binary files a/images/body.png and /dev/null differ diff --git a/images/delete.png b/images/delete.png deleted file mode 100644 index 08f249365..000000000 Binary files a/images/delete.png and /dev/null differ diff --git a/images/grey_bg.png b/images/grey_bg.png deleted file mode 100644 index 705b98612..000000000 Binary files a/images/grey_bg.png and /dev/null differ diff --git a/images/icons/qslcard.png b/images/icons/qslcard.png deleted file mode 100644 index c2ae157e4..000000000 Binary files a/images/icons/qslcard.png and /dev/null differ diff --git a/images/icons/qslcard_in.png b/images/icons/qslcard_in.png deleted file mode 100644 index b0ba4bdef..000000000 Binary files a/images/icons/qslcard_in.png and /dev/null differ diff --git a/images/icons/qslcard_sent.png b/images/icons/qslcard_sent.png deleted file mode 100644 index 32b7f0f07..000000000 Binary files a/images/icons/qslcard_sent.png and /dev/null differ diff --git a/images/icons/stats.png b/images/icons/stats.png deleted file mode 100644 index 024eaac79..000000000 Binary files a/images/icons/stats.png and /dev/null differ diff --git a/images/icons/world.png b/images/icons/world.png deleted file mode 100644 index d88edc67c..000000000 Binary files a/images/icons/world.png and /dev/null differ diff --git a/images/jaysalvat.png b/images/jaysalvat.png deleted file mode 100644 index a2a23b39d..000000000 Binary files a/images/jaysalvat.png and /dev/null differ diff --git a/images/markitup.png b/images/markitup.png deleted file mode 100644 index 44f3e5db6..000000000 Binary files a/images/markitup.png and /dev/null differ diff --git a/images/nav_bg.gif b/images/nav_bg.gif deleted file mode 100644 index 2199e1014..000000000 Binary files a/images/nav_bg.gif and /dev/null differ diff --git a/images/style.css b/images/style.css deleted file mode 100644 index ea45f33a0..000000000 --- a/images/style.css +++ /dev/null @@ -1,27 +0,0 @@ -body { - background:#EEE url(body.png) repeat-x; - font: 13px "Trebuchet MS", Arial, Verdana; - padding:20px; -} -a { - text-decoration:none; - color:#3C769D; -} -h1 a, -p em a { - display:block; - overflow:hidden; - text-indent:-9999px; -} -h1 a { - width:700px; - height:200px; - background:transparent url(markitup.png) no-repeat center center; -} -p em a { - background:transparent url(jaysalvat.png) no-repeat 10% 50%; - width:120px; height:28px; - left:30px; - position:absolute; - top:0px; -} \ No newline at end of file