Changeset 883
- Timestamp:
- 02/17/2004 03:00:20 AM (21 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/import-greymatter.php
r762 r883 36 36 37 37 if (!chdir($archivespath)) 38 alert_error("Wrong path, $archivespath\ndoesn't exist\non the server");38 die("Wrong path, $archivespath\ndoesn't exist\non the server"); 39 39 40 40 if (!chdir($gmpath)) 41 alert_error("Wrong path, $gmpath\ndoesn't exist\non the server");41 die("Wrong path, $gmpath\ndoesn't exist\non the server"); 42 42 ?> 43 43 <html> -
trunk/wp-includes/functions.php
r881 r883 459 459 $gzip_compressed=1; 460 460 } 461 }462 463 function alert_error($msg) { // displays a warning box with an error message (original by KYank)464 global $$HTTP_SERVER_VARS;465 ?>466 <html>467 <head>468 <script language="JavaScript">469 <!--470 alert("<?php echo $msg ?>");471 history.back();472 //-->473 </script>474 </head>475 <body>476 <!-- this is for non-JS browsers (actually we should never reach that code, but hey, just in case...) -->477 <?php echo $msg; ?><br />478 <a href="<?php echo $HTTP_SERVER_VARS["HTTP_REFERER"]; ?>">go back</a>479 </body>480 </html>481 <?php482 exit;483 461 } 484 462 … … 1176 1154 } 1177 1155 1156 // Filters: these are the core of WP's plugin architecture 1157 1178 1158 function apply_filters($tag, $string) { 1179 1159 global $wp_filter; … … 1221 1201 //die(var_dump($wp_filter)); 1222 1202 return true; 1203 } 1204 1205 // The *_action functions are just aliases for the *_filter functions, they take special strings instead of generic content 1206 1207 function do_action($tag, $string) { 1208 return apply_filter($tag, $string); 1209 } 1210 1211 function add_action($tag, $function_to_add, $priority = 10) { 1212 add_filter($tag, $function_to_add, $priority); 1213 } 1214 1215 function remove_action($tag, $function_to_remove, $priority = 10) { 1216 remove_filter($tag, $function_to_remove, $priority); 1223 1217 } 1224 1218
Note: See TracChangeset
for help on using the changeset viewer.