Changeset 1328
- Timestamp:
- 03/06/06 09:08:37 (3 years ago)
- Location:
- trunk/rss
- Files:
-
- 3 modified
-
admin/config.php (modified) (3 diffs)
-
admin/ds.php (modified) (2 diffs)
-
opml.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/rss/admin/config.php
r1309 r1328 222 222 echo "<form style=\"display:inline\" id=\"cfg\" method=\"post\" action=\"" .$_SERVER['PHP_SELF'] ."\">\n"; 223 223 224 config_edit_form($key,$value,$default,$type,$desc,$export); 224 $onclickaction = null; 225 config_edit_form($key,$value,$default,$type,$desc,$export,$onclickaction); 225 226 226 227 echo "<p style=\"display:inline\">\n"; 227 228 echo (isset($preview)?"<input type=\"submit\" name=\"action\" value=\"". LBL_ADMIN_PREVIEW_CHANGES ."\"" 228 .( isset($onclickaction)?" onclick=\"$onclickaction\"":"") ." />\n":"");229 .($onclickaction?" onclick=\"$onclickaction\"":"") ." />\n":""); 229 230 echo "<input type=\"hidden\" name=\"".CST_ADMIN_METAACTION."\" value=\"LBL_ADMIN_SUBMIT_CHANGES\" />"; 230 231 231 232 echo "<input type=\"submit\" name=\"action\" value=\"". LBL_ADMIN_SUBMIT_CHANGES ."\"" 232 .( isset($onclickaction)?" onclick=\"$onclickaction\"":"")233 .($onclickaction?" onclick=\"$onclickaction\"":"") 233 234 ." /><input type=\"hidden\" name=\"".CST_ADMIN_DOMAIN."\" value=\"". CST_ADMIN_DOMAIN_CONFIG ."\"/>\n</p></form>\n"; 234 235 … … 250 251 case LBL_ADMIN_SUBMIT_CHANGES: 251 252 case 'LBL_ADMIN_SUBMIT_CHANGES': 253 252 254 $key = sanitize($_POST['key'],RSS_SANITIZER_NO_SPACES|RSS_SANITIZER_SIMPLE_SQL); 253 255 $type = sanitize($_POST['type'],RSS_SANITIZER_CHARACTERS); 254 256 $value = sanitize($_POST['value'], RSS_SANITIZER_SIMPLE_SQL); 255 257 256 257 258 // sanitizine routines for values 258 259 switch ($key) { … … 375 376 } 376 377 377 function config_edit_form($key,$value,$default,$type,$desc,$export ) {378 function config_edit_form($key,$value,$default,$type,$desc,$export, & $onclickaction = null) { 378 379 $value = real_strip_slashes($value); 379 380 -
trunk/rss/admin/ds.php
r1181 r1328 57 57 } 58 58 59 function populate1() {59 function populate1() { 60 60 var box1 = getForm().first; 61 61 var box2 = getForm().second; … … 68 68 69 69 function add1() { 70 var newtag = getForm().newtag.value.replace(/[^a-zA-Z ]*/g,"");70 var newtag = getForm().newtag.value.replace(/[^a-zA-Z0-9]*/g,""); 71 71 if (newtag == '') return; 72 72 getForm().newtag.value = ''; -
trunk/rss/opml.php
r1181 r1328 61 61 or xml_error("couldnt set XML handlers"); 62 62 63 xml_parse($xp, $opml, true) or xml_error("failed parsing xml ");63 xml_parse($xp, $opml, true) or xml_error("failed parsing xml at line ".xml_get_current_line_number().": " . xml_error_string()); 64 64 xml_parser_free($xp) or xml_error("failed freeing the parser"); 65 65 return $blogs;
