Browse code

new jquery based mobile template added

Rolf Brugger authored on 29.12.2011 22:05:04
Showing 2 changed files

... ...
@@ -91,8 +91,7 @@ ini_set('display_errors', '1');
91 91
 
92 92
 if (preg_match("/android|iphone/i", $_SERVER["HTTP_USER_AGENT"])) {
93 93
   // 
94
-  $defaulttemplate = 'tpl-iphone';
95
-  $defaulttemplate = 'tpl-iphone-jqm';
94
+  $defaulttemplate = 'tpl-mobile';
96 95
 }
97 96
 else{
98 97
   $defaulttemplate = 'tpl-std';
... ...
@@ -360,7 +359,7 @@ if (isset($_GET['edt']) or isset($_POST['entryedit']   ) ){ $decrmode = "edit";
360 359
 
361 360
 if(isset($decrmode)) {
362 361
   // decrypt the specified entry
363
-  // print_r($_POST);
362
+  print_r($_POST);
364 363
 
365 364
   // for security reasons, strip off all html special characters
366 365
   $pf  = escape_for_db($_POST['pf']);
... ...
@@ -372,8 +371,10 @@ if(isset($decrmode)) {
372 371
   if (isset($_POST['entrydecrypt']) or isset($_POST['entrydelete']) or isset($_POST['entryedit'])){
373 372
     // find and decrypt it
374 373
     $i = entry_index($vlt, $cat, $t1, $t2);
374
+print "found? ";
375 375
 
376 376
     if ($i >= 0){
377
+print " YES ";
377 378
       $recfields = explode ("\t", $vlt[$i], $nbfields);
378 379
       $decfields = svdecrypt($pf, $recfields[$nbfields-1]);
379 380
       if ($decfields[0] == $preamble){
... ...
@@ -426,6 +427,7 @@ if(isset($decrmode)) {
426 427
       }
427 428
     }
428 429
     else{
430
+print " NO ";
429 431
       $errormsg[] =  "Internal Error: Could not find an entry to decrypt.";
430 432
     }
431 433
   }
... ...
@@ -708,10 +710,7 @@ function print_url ($string)
708 710
 // Escape characters to make it safe for showing on webpage
709 711
 function escape_for_html($string)
710 712
 {
711
-  //return (strtr($string, "<>&\\'\"", "......"));
712
-  //$string = strtr($string, "\t", " ");
713
-  return htmlspecialchars($string);
714
-
713
+  return htmlspecialchars($string); // replaces &, ", ', < and >
715 714
 }
716 715
 
717 716
 // Escape characters to make it safe for storage in the database (unencrypted part)
... ...
@@ -719,16 +718,13 @@ function escape_for_db($string)
719 718
 {
720 719
   $string = strtr($string, "\r\n\t", "   ");
721 720
   return $string;
722
-  //return (htmlspecialchars ( $string));
723 721
 }
724 722
 
725 723
 
726 724
 // Escape characters to make it safe for storage in the database (encrypted part)
727 725
 function escape_for_db_enc($string)
728 726
 {
729
-  //$string = strtr($string, "\t", " ");
730 727
   return $string;
731
-  //return (htmlspecialchars ( $string));
732 728
 }
733 729
 
734 730
 // Report suspicious activity
... ...
@@ -26,6 +26,7 @@ Internet	Solnet		1261328301						%BDhY%ED%91%C2M%F5%F1E%80%AAb%E8%5C%D32R%DC%9E%
26 26
 Internet	UMTS/GSM Router Tessin	SIM Card	1272148175						%93%2A%24C%E9%D4R%D5%7CT%14%A3%93v%05%FBfNa%F0%8B%FA%28%3F_%D0%7E%7B%D8%C5%14%22%DD%83z%A0y%F2I%F0%A9%A1TX%27%FE%E3%60%ADW%DF%CE%25%F8%89%82N%7F%1ET%A8%FD1%F6%F3Q%60%1AO%8C%F2u%88%A1%82%D0%05%CE%25%AC%02%3AC%E6%12%DA%A70lc%29%B4%E1K%92%8D
27 27
 Internet	UMTS/GSM Router Tessin	WLAN	1272148416						%A4%8F%F4Y%06%EA%04%80%80%80%1A%DD%169%C1l%3Dt%5D%F5%A6%9C%5E%BC%7C%E2%C4v%09%24%C1%15%8B%95%D6%C2%83%0C_%D5%E0U%0D%CC%B4%AA%21%82%3C%B7%DD%D0%9CW%B1%C6%B5T%BC%91%B4%A1%7FMz%D0%95%FC%03%BE%D1r%BA%F8%83%1B%C3%ACn%89z%C0%A9%93I%21%9F%CE_%7Ba%16%C1%D2nr
28 28
 Internet	UMTS/GSM Router Tessin	admin login	1272148294						s%2C%B9%B6%BE88%F0%F68%D5%EEW%06%9B%7FC%10%E8%7C%07%BE%9E%FE%0E%0FrtD%86h%DEF%B34%D2E%28%EB%A1%10%B6%1D.%97.%92L%C8%D1%A1%C4%0A%08%BD%B1F%13%27%F9%40M%FD%D8%5E%ADb%C8%02%E3%E5S%82%8C%F3%F1%F9H%C3%15DsKg%8F%D3%EB%84%F4%25L%2F%C1%19%84R
29
+Online Shops	oreilly		1325191220						%EB%B8%5E%E8c%81%9C%1F%92%90%5D%DF%C8%17%B7tf%E5%94%FD%BBn%F4Q%DF%3A0%7B%28pA%BA%9F2%10%05%A5%80%04%21%08%0F%E0%83%D3%88K%C9P%BBZI%CF%17H%5D%E3%B4%D3%E8oa%D2%CD
29 30
 Private	CCDEB		1257536085						%F3%A5%5E%CE%3A9%0C%1A%9Ei%AF%009d%7D%0B%8FS%B6%8F%0D%01%D7%DA%23%08%3F%85jE%174
30 31
 Private	Fenris (TI)		1252277258						IEDwxZ%D4%EE%05%80d%97e%D3%1F%22%5B%89A%7C%0Ab%0D%AB%E2zU%00%D7Y%7F%B0%0D%CEl%AE%CC%93%8C%E3d%A6%BA%11wL%91S%C1%23l%19%E6%89%BA%23%BF%F2%3A.%80%BC%99%0B%E6%C0%01L5%99%9E%E4%60%88%13H%EA%98H%B8%D4a%BE%28%2B%EFd%A0%CE%DC%BF%2C%A0m%FC%82
31 32
 Private	GnuPG rolf@freja		1277072639						+N%B8%B8%26%9C%A1%FF%7CY%7B5%A0%2A%3A%F7%EE%40%80x%AA%C3e%07%12%B0%CB%8E%C8%2Bvi%2CKW%B0%8C%3D%B6d%F6hY%95%B4%D8%04%19Cpu%9A6%BA2Z%02%E4h%3D%5E%0A%0E%99%276%DB%05%89%CB%A5%E8%B4%DF2%B6%7Fv%BF%C2%3AE%9B%88Z%DE%85%84%1FA%F5%E1%98%93%A5%3A%AF%27%A2%A1%7Ew%99%05%C0%EF%F4%99%8B%2B%87%0Eh3%E6%09C%90%26%94%FB%BA%DE%BF%5C%9B%5E%F2%AD%E3%F0%D9%A8I%D9%FA%B73%0D%22%80Q%8Ag%3E%F2%F9%97%D1%F1%BB.6%D9%92%A8%C1%9A%81%CB%FE%AF%81n%EB%CB%15%EF%23d%9E%F4%EA56%00T%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