• R/O
  • SSH
  • HTTPS

researchclip: Commit


Commit MetaInfo

Revision40 (tree)
Time2009-04-06 11:25:31
Authorwalgbart

Log Message

admin/manage_banned_domains.php:
テンプレートの指定が古い?不具合を修正

Change Summary

Incremental Difference

--- pligg/trunk/pligg/admin/manage_banned_domains.php (revision 39)
+++ pligg/trunk/pligg/admin/manage_banned_domains.php (revision 40)
@@ -31,8 +31,8 @@
3131 // if spam checking is not enabled in the admin panel
3232 if(CHECK_SPAM == false){
3333 $main_smarty->assign('errorText', "<b>Error:</b> You have <b>Enable spam checking</b> set to false. Please set it to true in the <a href='$my_base_url$my_pligg_base/admin_config.php?page=AntiSpam' target='_blank'>admin panel</a>.");
34- $main_smarty->assign('tpl_center', The_Template . '/admin_templates/admin_banned_domain_add');
35- $main_smarty->display(The_Template . '/pligg.tpl');
34+ $main_smarty->assign('tpl_center', $template_dir . '/admin/admin_banned_domain_add');
35+ $main_smarty->display($the_template . '/pligg.tpl');
3636 }
3737
3838 if(isset($_REQUEST["id"]) && is_numeric($_REQUEST["id"])){$id = $_REQUEST["id"];}
@@ -41,8 +41,8 @@
4141 if(isset($_REQUEST['add'])){
4242 $main_smarty->assign('story_id', sanitize($_REQUEST['id'], 3));
4343 $main_smarty->assign('domain_to_ban', sanitize($_REQUEST['add'], 3));
44- $main_smarty->assign('tpl_center', The_Template . '/admin_templates/admin_banned_domain_add');
45- $main_smarty->display(The_Template . '/pligg.tpl');
44+ $main_smarty->assign('tpl_center', $template_dir . '/admin/admin_banned_domain_add');
45+ $main_smarty->display($the_template . '/pligg.tpl');
4646 }
4747 if(isset($_REQUEST['doban'])){
4848 $filename = '../local-antispam.txt';
@@ -50,14 +50,14 @@
5050 if (is_writable($filename)) {
5151 if (!$handle = fopen($filename, 'a')) {
5252 $main_smarty->assign('errorText', "Cannot open file ($filename)");
53- $main_smarty->assign('tpl_center', The_Template . '/admin_templates/admin_banned_domain_add');
54- $main_smarty->display(The_Template . '/pligg.tpl');
53+ $main_smarty->assign('tpl_center', $template_dir . '/admin/admin_banned_domain_add');
54+ $main_smarty->display($the_template . '/pligg.tpl');
5555 exit;
5656 }
5757 if (fwrite($handle, $somecontent) === FALSE) {
5858 $main_smarty->assign('errorText', "Cannot write to file ($filename)");
59- $main_smarty->assign('tpl_center', The_Template . '/admin_templates/admin_banned_domain_add');
60- $main_smarty->display(The_Template . '/pligg.tpl');
59+ $main_smarty->assign('tpl_center', $template_dir . '/admin/admin_banned_domain_add');
60+ $main_smarty->display($the_template . '/pligg.tpl');
6161 exit;
6262 }
6363
@@ -64,8 +64,8 @@
6464 $main_smarty->assign('somecontent', $somecontent);
6565 $main_smarty->assign('filename', $filename);
6666 $main_smarty->assign('storyurl', getmyurl("story", $id));
67- $main_smarty->assign('tpl_center', The_Template . '/admin_templates/admin_banned_domain_added');
68- $main_smarty->display(The_Template . '/pligg.tpl');
67+ $main_smarty->assign('tpl_center', $template_dir . '/admin/admin_banned_domain_added');
68+ $main_smarty->display($the_template . '/pligg.tpl');
6969
7070 fclose($handle);
7171
@@ -72,8 +72,8 @@
7272 }
7373 else {
7474 $main_smarty->assign('errorText', "The file $filename is not writable");
75- $main_smarty->assign('tpl_center', The_Template . '/admin_templates/admin_banned_domain_add');
76- $main_smarty->display(The_Template . '/pligg.tpl');
75+ $main_smarty->assign('tpl_center', $template_dir . '/admin/admin_banned_domain_add');
76+ $main_smarty->display($the_template . '/pligg.tpl');
7777 }
7878 }
7979
@@ -81,14 +81,14 @@
8181 {
8282 $lines = file('local-antispam.txt');
8383 $main_smarty->assign('lines', $lines);
84- $main_smarty->assign('tpl_center', The_Template . '/admin_templates/admin_banned_domain_list');
85- $main_smarty->display(The_Template . '/pligg.tpl');
84+ $main_smarty->assign('tpl_center', $template_dir . '/admin/admin_banned_domain_list');
85+ $main_smarty->display($the_template . '/pligg.tpl');
8686 }
8787 }
8888 else
8989 {
9090 $main_smarty->assign('errorText', "<br />We're sorry, but you do not have administrative privileges on this site.<br />If you wish to be promoted, please contact the site administrator.<br />");
91- $main_smarty->assign('tpl_center', The_Template . '/admin_templates/admin_banned_domain_add');
92- $main_smarty->display(The_Template . '/pligg.tpl');
91+ $main_smarty->assign('tpl_center', $template_dir . '/admin/admin_banned_domain_add');
92+ $main_smarty->display($the_template . '/pligg.tpl');
9393 }
9494 ?>
Show on old repository browser