mirror of
https://github.com/e107inc/e107.git
synced 2025-08-19 04:41:53 +02:00
First part of membersonly exception pages
This commit is contained in:
@@ -9,9 +9,9 @@
|
||||
* Administration - Site Preferences
|
||||
*
|
||||
* $Source: /cvs_backup/e107_0.8/e107_admin/prefs.php,v $
|
||||
* $Revision: 1.32 $
|
||||
* $Date: 2009-07-18 10:17:56 $
|
||||
* $Author: marj_nl_fr $
|
||||
* $Revision: 1.33 $
|
||||
* $Date: 2009-08-20 11:38:24 $
|
||||
* $Author: e107coders $
|
||||
*
|
||||
*/
|
||||
require_once ("../class2.php");
|
||||
@@ -77,6 +77,8 @@ if(isset($_POST['updateprefs']))
|
||||
);
|
||||
|
||||
$pref['post_html'] = intval($_POST['post_html']); // This ensures the setting is reflected in set text
|
||||
|
||||
$_POST['membersonly_exceptions'] = explode("\n",$_POST['membersonly_exceptions']);
|
||||
|
||||
$prefChanges = array();
|
||||
foreach($_POST as $key => $value)
|
||||
@@ -172,6 +174,8 @@ while($file = readdir($handle))
|
||||
}
|
||||
closedir($handle);
|
||||
|
||||
$pref['membersonly_exceptions'] = implode("\n",$pref['membersonly_exceptions']);
|
||||
|
||||
$text = "
|
||||
<div id='core-prefs'>
|
||||
<form class='admin-menu' method='post' action='".e_SELF."'>
|
||||
@@ -540,6 +544,13 @@ $text .= "
|
||||
<div class='field-help'>".PRFLAN_59."</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='label'>".PRFLAN_206."</td>
|
||||
<td class='control'>
|
||||
".$frm->textarea('membersonly_exceptions', $pref['membersonly_exceptions'], 3, 1)."
|
||||
<div class='field-help'>".PRFLAN_207."</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='label'>".PRFLAN_197.": </td>
|
||||
<td class='control'>
|
||||
|
Reference in New Issue
Block a user