2006-12-02 04:36:16 +00:00
< ? php
/*
2008-12-17 17:27:07 +00:00
* e107 website system
*
2013-03-24 19:44:14 +01:00
* Copyright ( C ) 2008 - 2013 e107 Inc ( e107 . org )
2008-12-17 17:27:07 +00:00
* Released under the terms and conditions of the
* GNU General Public License ( http :// www . gnu . org / licenses / gpl . txt )
*
* Administration - Site Preferences
*
2010-09-06 12:34:06 +00:00
*/
2008-12-17 17:27:07 +00:00
require_once ( " ../class2.php " );
2006-12-02 04:36:16 +00:00
2008-12-17 17:27:07 +00:00
if ( isset ( $_POST [ 'newver' ]))
2008-08-17 15:18:14 +00:00
{
2006-12-02 04:36:16 +00:00
header ( " location:http://e107.org/index.php " );
2008-12-17 17:27:07 +00:00
exit ();
2006-12-02 04:36:16 +00:00
}
2008-12-17 17:27:07 +00:00
if ( ! getperms ( " 1 " ))
2008-08-17 15:18:14 +00:00
{
2006-12-02 04:36:16 +00:00
header ( " location: " . e_BASE . " index.php " );
2008-12-17 17:27:07 +00:00
exit ();
2006-12-02 04:36:16 +00:00
}
2008-12-17 17:27:07 +00:00
2009-08-28 16:11:02 +00:00
include_lan ( e_LANGUAGEDIR . e_LANGUAGE . '/admin/lan_' . e_PAGE );
2006-12-02 04:36:16 +00:00
$e_sub_cat = 'prefs' ;
2012-12-10 16:01:44 -08:00
e107 :: lan ( 'core' , 'mailout' , 'admin' );
2012-06-17 10:27:09 +00:00
2012-12-10 16:01:44 -08:00
e107 :: js ( 'inline' , "
function disp ( type )
{
if ( type == 'smtp' )
{
$ ( '#smtp' ) . show ( 'slow' );
$ ( '#sendmail' ) . hide ( 'slow' );
return ;
}
if ( type == 'sendmail' )
{
$ ( '#smtp' ) . hide ( 'slow' );
$ ( '#sendmail' ) . show ( 'slow' );
return ;
}
$ ( '#smtp' ) . hide ( 'slow' );
$ ( '#sendmail' ) . hide ( 'slow' );
}
" ,'jquery');
2012-06-17 10:27:09 +00:00
2010-04-19 13:31:47 +00:00
require_once ( e_ADMIN . " auth.php " );
$e_userclass = e107 :: getUserClass ();
2009-08-28 16:11:02 +00:00
require_once ( e_HANDLER . " user_extended_class.php " );
$ue = new e107_user_extended ();
2010-04-19 13:31:47 +00:00
$core_pref = e107 :: getConfig ();
2009-08-28 16:11:02 +00:00
2010-04-19 13:31:47 +00:00
if ( ! $core_pref -> get ( 'timezone' ))
2008-08-17 15:18:14 +00:00
{
2010-04-19 13:31:47 +00:00
$core_pref -> set ( 'timezone' , 'GMT' );
2006-12-02 04:36:16 +00:00
}
2010-04-19 13:31:47 +00:00
$frm = e107 :: getForm ( false , true ); //enable inner tabindex counter
2013-02-26 16:36:25 +01:00
$mes = e107 :: getMessage ();
2010-04-19 13:31:47 +00:00
$tp = e107 :: getParser ();
2006-12-02 04:36:16 +00:00
2008-12-17 17:27:07 +00:00
/* RESET DISPLAY NAMES */
2009-12-19 17:54:00 +00:00
if ( isset ( $_POST [ 'submit_resetdisplaynames' ]))
2006-12-02 04:36:16 +00:00
{
2010-04-19 13:31:47 +00:00
e107 :: getDb () -> db_Update ( 'user' , 'user_name=user_loginname' );
2013-02-26 16:36:25 +01:00
$mes -> addInfo ( PRFLAN_157 );
2006-12-02 04:36:16 +00:00
}
2010-04-19 13:31:47 +00:00
//echo '<pre>';
//var_dump($core_pref->getPref());
//echo '</pre>';
2012-12-10 16:01:44 -08:00
if ( isset ( $_POST [ 'testemail' ]))
{
sendTest ();
}
2008-12-17 17:27:07 +00:00
/* UPDATE PREFERENCES */
if ( isset ( $_POST [ 'updateprefs' ]))
2006-12-02 04:36:16 +00:00
{
2012-06-13 12:34:09 +00:00
2008-12-17 17:27:07 +00:00
unset ( $_POST [ 'updateprefs' ], $_POST [ 'sitelanguage' ]);
2012-06-13 12:34:09 +00:00
2012-06-14 04:11:52 +00:00
2006-12-02 04:36:16 +00:00
2008-12-17 17:27:07 +00:00
$_POST [ 'cookie_name' ] = str_replace ( array ( " " , " . " ), " _ " , $_POST [ 'cookie_name' ]);
2006-12-02 04:36:16 +00:00
$_POST [ 'cookie_name' ] = preg_replace ( " #[^a-zA-Z0-9_]# " , " " , $_POST [ 'cookie_name' ]);
2008-12-17 17:27:07 +00:00
$_POST [ 'siteurl' ] = trim ( $_POST [ 'siteurl' ]) ? trim ( $_POST [ 'siteurl' ]) : SITEURL ;
$_POST [ 'siteurl' ] = substr ( $_POST [ 'siteurl' ], - 1 ) == " / " ? $_POST [ 'siteurl' ] : $_POST [ 'siteurl' ] . " / " ;
2006-12-02 04:36:16 +00:00
2009-07-18 10:17:56 +00:00
// If email verification or Email/Password Login Method - email address is required!
2009-10-06 18:58:08 +00:00
if (( $_POST [ 'user_reg_veri' ] == 1 || $_POST [ 'allowEmailLogin' ] == 1 ) && $_POST [ 'disable_emailcheck' ])
2009-03-06 20:09:08 +00:00
{
2008-12-17 17:27:07 +00:00
$_POST [ 'disable_emailcheck' ] = 0 ;
2013-02-26 16:36:25 +01:00
$mes -> addError ( PRFLAN_211 );
2009-03-06 20:09:08 +00:00
}
2007-02-16 01:13:19 +00:00
2008-12-17 17:27:07 +00:00
// Table of range checking values - min and max for numerics. Only do the important ones
2009-03-06 20:09:08 +00:00
$pref_limits = array ( 'loginname_maxlength' => array ( 'min' => 10 , 'max' => 100 , 'default' => 30 ),
2011-09-16 11:35:22 +00:00
'displayname_maxlength' => array ( 'min' => 5 , 'max' => 100 , 'default' => 15 ),
2009-03-02 21:55:39 +00:00
'antiflood_timeout' => array ( 'min' => 3 , 'max' => 300 , 'default' => 10 ),
'signup_pass_len' => array ( 'min' => 2 , 'max' => 100 , 'default' => 4 )
);
2007-09-18 21:10:16 +00:00
2008-12-31 17:08:14 +00:00
$pref [ 'post_html' ] = intval ( $_POST [ 'post_html' ]); // This ensures the setting is reflected in set text
2009-08-20 11:38:24 +00:00
$_POST [ 'membersonly_exceptions' ] = explode ( " \n " , $_POST [ 'membersonly_exceptions' ]);
2008-12-31 17:08:14 +00:00
2010-04-19 13:31:47 +00:00
// FIXME - automate - pref model & validation handler
2008-08-17 15:18:14 +00:00
$prefChanges = array ();
2010-10-27 11:31:18 +00:00
$sessionRegenerate = false ;
2006-12-02 04:36:16 +00:00
foreach ( $_POST as $key => $value )
{
2008-12-17 17:27:07 +00:00
if ( isset ( $pref_limits [ $key ]))
{ // Its a numeric value to check
if ( is_numeric ( $value ))
{
if ( $value < $pref_limits [ $key ][ 'min' ])
2009-10-06 18:58:08 +00:00
{
2008-12-17 17:27:07 +00:00
$value = $pref_limits [ $key ][ 'min' ];
2013-02-26 16:36:25 +01:00
$mes -> addWarning ( str_replace ( array ( '--FIELD--' , '--VALUE--' ), array ( $key , $value ), PRFLAN_213 ));
2009-10-06 18:58:08 +00:00
}
2008-12-17 17:27:07 +00:00
if ( $value > $pref_limits [ $key ][ 'max' ])
2009-10-06 18:58:08 +00:00
{
2008-12-17 17:27:07 +00:00
$value = $pref_limits [ $key ][ 'max' ];
2013-02-26 16:36:25 +01:00
$mes -> addWarning ( str_replace ( array ( '--FIELD--' , '--VALUE--' ), array ( $key , $value ), PRFLAN_212 ));
2009-10-06 18:58:08 +00:00
}
2008-12-17 17:27:07 +00:00
}
else
{
$value = $pref_limits [ $key ][ 'default' ];
}
$newValue = $value ;
2007-09-18 21:10:16 +00:00
}
2010-10-27 11:31:18 +00:00
elseif ( 'cookie_name' == $key && $core_pref -> get ( $key ) != $value )
{
// special case
if ( ! preg_match ( '/^[\w\-]+$/' , $value ))
{
$newValue = e_COOKIE ;
2013-02-26 16:36:25 +01:00
$mes -> addWarning ( PRFLAN_219 );
2010-10-27 11:31:18 +00:00
}
else
{
$newValue = $value ;
$sessionRegenerate = true ;
}
}
2007-09-18 21:10:16 +00:00
else
{
2008-12-17 17:27:07 +00:00
$newValue = $tp -> toDB ( $value );
}
2012-06-14 04:11:52 +00:00
2010-04-19 13:31:47 +00:00
$core_pref -> update ( $key , $newValue );
/* if ( $newValue != $core_pref -> get ( $key ))
2008-12-17 17:27:07 +00:00
{ // Changed value
2010-04-19 13:31:47 +00:00
$core_pref -> set ( $key , $newValue );
2008-12-17 17:27:07 +00:00
$prefChanges [ $key ] = $newValue ;
2010-04-19 13:31:47 +00:00
} */
2006-12-02 04:36:16 +00:00
}
2010-04-19 13:31:47 +00:00
$core_pref -> save ( false );
2010-10-27 11:31:18 +00:00
// special case, do session cleanup, logout, redirect to login screen
if ( $sessionRegenerate )
2008-12-17 17:27:07 +00:00
{
2010-10-27 11:31:18 +00:00
// reset cookie
cookie ( $core_pref -> get ( 'cookie_name' ), $_COOKIE [ e_COOKIE ], ( time () + 3600 * 24 * 30 ), e_HTTP , e107 :: getLanguage () -> getCookieDomain ());
cookie ( e_COOKIE , null , null );
// regenerate session
$s = $_SESSION ;
e107 :: getSession () -> destroy ();
$session = new e_core_session ( array ( 'name' => $core_pref -> get ( 'cookie_name' )));
$_SESSION = $s ;
2008-01-16 10:52:34 +00:00
}
2006-12-02 04:36:16 +00:00
}
2009-06-12 20:41:35 +00:00
if ( plugInstalled ( 'alt_auth' ))
2006-12-02 04:36:16 +00:00
{
$authlist [] = " e107 " ;
2008-12-17 17:27:07 +00:00
$handle = opendir ( e_PLUGIN . " alt_auth " );
while ( $file = readdir ( $handle ))
2006-12-02 04:36:16 +00:00
{
2008-12-17 17:27:07 +00:00
if ( preg_match ( " /^(.*)_auth \ .php/ " , $file , $match ))
2006-12-02 04:36:16 +00:00
{
$authlist [] = $match [ 1 ];
}
}
}
2012-12-10 16:01:44 -08:00
function sendTest ()
{
$log = e107 :: getAdminLog ();
$mes = e107 :: getMessage ();
if ( trim ( $_POST [ 'testaddress' ]) == '' )
{
$mes -> add ( LAN_MAILOUT_19 , E_MESSAGE_ERROR );
$subAction = 'error' ;
}
else
{
$mailheader_e107id = USERID ;
require_once ( e_HANDLER . 'mail.php' );
$add = ( $pref [ 'mailer' ]) ? " ( " . strtoupper ( $pref [ 'mailer' ]) . " ) " : ' (PHP)' ;
$sendto = trim ( $_POST [ 'testaddress' ]);
2013-03-24 19:44:14 +01:00
if ( ! sendemail ( $sendto , LAN_MAILOUT_113 . " " . SITENAME . $add , str_replace ( " [br] " , " \n " , LAN_MAILOUT_114 ), LAN_MAILOUT_189 ))
2012-12-10 16:01:44 -08:00
{
2013-02-26 16:36:25 +01:00
$mes -> addError (( $pref [ 'mailer' ] == 'smtp' ) ? LAN_MAILOUT_67 : LAN_MAILOUT_106 );
2012-12-10 16:01:44 -08:00
}
else
{
2013-02-26 16:36:25 +01:00
$mes -> addSuccess ( LAN_MAILOUT_81 . ' (' . $sendto . ')' );
2012-12-10 16:01:44 -08:00
$log -> log_event ( 'MAIL_01' , $sendto , E_LOG_INFORMATIVE , '' );
}
}
}
2008-12-17 17:27:07 +00:00
/*
if ( e_QUERY == " u " )
{
2006-12-02 04:36:16 +00:00
$ns -> tablerender ( " " , " <div style='text-align:center'><b> " . PRFLAN_106 . " </b></div> " );
}
2008-12-17 17:27:07 +00:00
*/
2006-12-02 04:36:16 +00:00
$handle = opendir ( e_ADMIN . 'includes/' );
2008-12-17 17:27:07 +00:00
while ( $file = readdir ( $handle ))
{
if ( $file != " . " && $file != " .. " )
{
2006-12-02 04:36:16 +00:00
$file = str_replace ( " .php " , " " , $file );
$adminlist [] = $file ;
}
}
closedir ( $handle );
2009-08-20 11:38:24 +00:00
$pref [ 'membersonly_exceptions' ] = implode ( " \n " , $pref [ 'membersonly_exceptions' ]);
2008-12-17 17:27:07 +00:00
$text = "
2008-12-19 14:01:07 +00:00
< div id = 'core-prefs' >
< form class = 'admin-menu' method = 'post' action = '".e_SELF."' >
2013-04-17 13:08:12 -07:00
< fieldset id = 'core-prefs-main' >
2008-12-19 14:01:07 +00:00
< legend > " .PRFLAN_1. " </ legend >
2012-11-26 14:41:32 -08:00
< table class = 'table adminform' >
2012-05-13 05:26:11 +00:00
< colgroup >
2008-12-17 17:27:07 +00:00
< col class = 'col-label' />
< col class = 'col-control' />
</ colgroup >
< tbody >
< tr >
2012-11-26 14:41:32 -08:00
< td > " .PRFLAN_2. " </ td >
< td >
2012-12-10 17:38:52 -08:00
" . $frm->text ('sitename', $pref['sitename'] , 100, 'required=1'). "
2008-12-17 17:27:07 +00:00
</ td >
</ tr >
< tr >
2012-11-26 14:41:32 -08:00
< td > " .PRFLAN_3. " </ td >
< td >
2008-12-17 17:27:07 +00:00
" . $frm->text ('siteurl', $pref['siteurl'] , 150). "
2013-03-23 22:04:50 -07:00
" .( $pref['siteurl'] == SITEURL ? " " : " < div class = 'field-help' > " .PRFLAN_159. " : < strong > " .SITEURL. " </ strong ></ div > " ). "
2008-12-17 17:27:07 +00:00
</ td >
</ tr >
< tr >
2012-11-26 14:41:32 -08:00
< td > " .PRFLAN_134. " </ td >
2013-03-27 20:28:55 +01:00
< td > " ;
/*
2013-03-24 18:04:37 -07:00
" . $frm->radio ('redirectsiteurl', 1, $pref['redirectsiteurl'] , array('label'=>LAN_ENABLED)). "
" . $frm->radio ('redirectsiteurl', 0, ! $pref['redirectsiteurl'] , array('label'=>LAN_DISABLED)). "
2013-03-27 20:28:55 +01:00
*/
$text .= $frm -> radio_switch ( 'redirectsiteurl' , $pref [ 'redirectsiteurl' ]) . " <div class='field-help'> " . PRFLAN_135 . " </div>
2008-12-17 17:27:07 +00:00
</ td >
</ tr >
< tr >
2012-11-26 14:41:32 -08:00
< td > " .PRFLAN_4. " </ td >
< td >
2008-12-17 17:27:07 +00:00
" ;
2012-12-10 16:01:44 -08:00
/*
2008-12-17 17:27:07 +00:00
$parms = " name=sitebutton " ;
$parms .= " &path= " . e_THEME . $pref [ 'sitetheme' ] . " /images/| " . e_IMAGE ;
$parms .= " &filter=0 " ;
$parms .= " &fullpath=1 " ;
$parms .= " &default= " . urlencode ( $pref [ 'sitebutton' ]);
//$parms .= "&width=128px";
//$parms .= "&height=128px";
$parms .= " &multiple=FALSE " ;
$parms .= " &label=-- No Image -- " ;
$parms .= " &subdirs=1 " ;
$parms .= " &tabindex= " . $frm -> getNext ();
2009-12-23 10:04:39 +00:00
2009-01-15 15:42:24 +00:00
$text .= " <div class='field-section'> " . $tp -> parseTemplate ( " { IMAGESELECTOR= { $parms } &scaction=select} " ) . " </div> " ;
2009-12-23 10:04:39 +00:00
// $text .= "<div class='field-section'>".$frm->imagepicker('sitebutton',$pref['sitebutton'],'-- No Image --')."</div>";
2010-03-06 23:49:08 +00:00
//TODO make the preview update when image-picker is used.
2009-01-15 15:42:24 +00:00
$text .= " <div class='field-spacer'> " . $tp -> parseTemplate ( " { IMAGESELECTOR= { $parms } &scaction=preview} " ) . " </div> " ;
2008-12-17 17:27:07 +00:00
2012-07-12 10:15:12 +00:00
$sLogo = siteinfo_shortcodes :: sc_logo ();
2012-12-10 16:01:44 -08:00
*/
2012-07-12 10:15:12 +00:00
2012-12-10 16:01:44 -08:00
$text .= $frm -> imagepicker ( 'sitebutton' , $pref [ 'sitebutton' ], '_common' , 'help=Used by Facebook and others. Should be a square image.' );
2012-07-12 10:15:12 +00:00
2008-12-17 17:27:07 +00:00
$text .= "
</ td >
2011-12-28 15:52:13 +00:00
</ tr >
< tr >
2012-11-26 14:41:32 -08:00
< td > " .PRFLAN_214. " </ td >
2012-12-10 16:01:44 -08:00
< td > " . $frm->imagepicker ('sitelogo', $pref['sitelogo'] ,'_common','help=Used by some themes as the header image on some pages.'). " </ td >
2008-12-17 17:27:07 +00:00
</ tr >
< tr >
2012-11-26 14:41:32 -08:00
< td > " .PRFLAN_5. " </ td >
< td >
2008-12-17 17:27:07 +00:00
" . $frm->textarea ('sitetag', $pref['sitetag'] , 3, 59). "
2013-03-08 21:48:49 -08:00
< div class = 'field-help' > Used by some themes . Place 'SITETAG' in your theme to use this value .</ div >
2008-12-17 17:27:07 +00:00
</ td >
</ tr >
< tr >
2012-11-26 14:41:32 -08:00
< td > " .PRFLAN_6. " </ td >
< td >
2012-12-10 17:38:52 -08:00
" . $frm->textarea ('sitedescription', $pref['sitedescription'] , 3, 80). "
2013-03-08 21:48:49 -08:00
< div class = 'field-help' > Used by some themes . Place 'SITEDESCRIPTION' in your theme to use this value .</ div >
2008-12-17 17:27:07 +00:00
</ td >
</ tr >
2012-12-10 16:01:44 -08:00
2008-12-17 17:27:07 +00:00
< tr >
2012-12-10 16:01:44 -08:00
< td > " .PRFLAN_9. " </ td >
2012-11-26 14:41:32 -08:00
< td >
2012-12-10 17:38:52 -08:00
" . $frm->textarea ('sitedisclaimer', str_replace(array('<', '>', ' " '), array(' & lt ; ', ' & gt ; ', ' & quot ; '), $pref[' sitedisclaimer ' ]), 3 , 80 ) . "
2013-03-08 21:48:49 -08:00
< div class = 'field-help' > Used by some themes . Place 'SITEDISCLAIMER' in your theme to use this value .</ div >
2008-12-17 17:27:07 +00:00
</ td >
</ tr >
2012-12-10 16:01:44 -08:00
</ tbody >
</ table >
" .pref_submit('main'). "
</ fieldset >
" ;
// Email and Contact Information --------------
$text .= " <fieldset class='e-hideme' id='core-prefs-email'>
< legend > " .PRFLAN_13. " </ legend >
< table class = 'table adminform' >
< colgroup >
< col class = 'col-label' />
< col class = 'col-control' />
</ colgroup >
< tbody >
< tr >
< td > " .PRFLAN_7. " </ td >
< td >
" . $frm->text ('siteadmin', SITEADMIN, 100). "
</ td >
</ tr >
2008-12-17 17:27:07 +00:00
< tr >
2012-11-26 14:41:32 -08:00
< td > " .PRFLAN_8. " </ td >
< td >
2008-12-17 17:27:07 +00:00
" . $frm->text ('siteadminemail', SITEADMINEMAIL, 100). "
</ td >
</ tr >
< tr >
2012-11-26 14:41:32 -08:00
< td > " .PRFLAN_174. " </ td >
< td >
2008-12-17 17:27:07 +00:00
" . $frm->text ('replyto_name', $pref['replyto_name'] , 100). "
< div class = 'smalltext field-help' > " .PRFLAN_175. " </ div >
</ td >
</ tr >
< tr >
2012-11-26 14:41:32 -08:00
< td > " .PRFLAN_176. " </ td >
< td >
2008-12-17 17:27:07 +00:00
" . $frm->text ('replyto_email', $pref['replyto_email'] , 100). "
< div class = 'smalltext field-help' > " .PRFLAN_177. " </ div >
</ td >
</ tr >
2012-12-10 16:01:44 -08:00
< tr >
< td > " .LAN_MAILOUT_110. " < br /></ td >
< td > " . $frm->admin_button ('testemail', LAN_MAILOUT_112,'other'). " & nbsp ;
< input name = 'testaddress' class = 'tbox' placeholder = 'user@yoursite.com' type = 'text' size = '40' maxlength = '80' value = \ " " . ( varset ( $_POST [ 'testaddress' ]) ? $_POST [ 'testaddress' ] : USEREMAIL ) . " \" />
</ td >
</ tr >
< tr >
< td style = 'vertical-align:top' > " .LAN_MAILOUT_115. " < br /></ td >
< td >
2013-02-23 03:15:13 -08:00
< select class = 'tbox' name = 'mailer' onchange = 'disp(this.value)' > \n " ;
2012-12-10 16:01:44 -08:00
$mailers = array ( 'php' , 'smtp' , 'sendmail' );
foreach ( $mailers as $opt )
{
$sel = ( $pref [ 'mailer' ] == $opt ) ? " selected='selected' " : '' ;
$text .= " <option value=' { $opt } ' { $sel } > { $opt } </option> \n " ;
}
$text .= " </select> <span class='field-help'> " . LAN_MAILOUT_116 . " </span><br /> " ;
// SMTP. -------------->
$smtp_opts = explode ( ',' , varset ( $pref [ 'smtp_options' ], '' ));
$smtpdisp = ( $pref [ 'mailer' ] != 'smtp' ) ? " style='display:none;' " : '' ;
$text .= " <div id='smtp' { $smtpdisp } >
< table class = 'table adminlist' style = 'margin-right:auto;margin-left:0px;border:0px' >
< colgroup >
< col class = 'col-label' />
< col class = 'col-control' />
</ colgroup >
" ;
$text .= "
< tr >
< td > " .LAN_MAILOUT_87. " :& nbsp ; & nbsp ; </ td >
< td >
2012-12-15 18:06:55 -08:00
< input class = 'tbox' type = 'text' name = 'smtp_server' size = '40' value = '".vartrue($pref[' smtp_server '])."' maxlength = '50' />
2012-12-10 16:01:44 -08:00
</ td >
</ tr >
< tr >
< td > " .LAN_MAILOUT_88. " :& nbsp ;( " .LAN_OPTIONAL. " ) & nbsp ; & nbsp ; </ td >
< td style = 'width:50%;' >
2012-12-15 18:06:55 -08:00
< input class = 'tbox' type = 'text' name = 'smtp_username' size = '40' value = \ " " . vartrue ( $pref [ 'smtp_username' ]) . " \" maxlength='50' />
2012-12-10 16:01:44 -08:00
</ td >
</ tr >
< tr >
< td > " .LAN_MAILOUT_89. " :& nbsp ;( " .LAN_OPTIONAL. " ) & nbsp ; & nbsp ; </ td >
< td >
2012-12-15 18:06:55 -08:00
< input class = 'tbox' type = 'password' name = 'smtp_password' size = '40' value = '".vartrue($pref[' smtp_password '])."' maxlength = '50' />
2012-12-10 16:01:44 -08:00
</ td >
</ tr >
< tr >
< td > " .LAN_MAILOUT_90. " </ td >< td >
2013-02-23 03:15:13 -08:00
< select class = 'tbox' name = 'smtp_options' > \n
2012-12-10 16:01:44 -08:00
< option value = '' > " .LAN_MAILOUT_96. " </ option > \n " ;
$selected = ( in_array ( 'secure=SSL' , $smtp_opts ) ? " selected='selected' " : '' );
$text .= " <option value='smtp_ssl' { $selected } > " . LAN_MAILOUT_92 . " </option> \n " ;
$selected = ( in_array ( 'secure=TLS' , $smtp_opts ) ? " selected='selected' " : '' );
$text .= " <option value='smtp_tls' { $selected } > " . LAN_MAILOUT_93 . " </option> \n " ;
$selected = ( in_array ( 'pop3auth' , $smtp_opts ) ? " selected='selected' " : '' );
$text .= " <option value='smtp_pop3auth' { $selected } > " . LAN_MAILOUT_91 . " </option> \n " ;
$text .= " </select><span class='field-help'> " . LAN_MAILOUT_94 . " </span></td></tr> " ;
$text .= " <tr>
< td > " .LAN_MAILOUT_57. " </ td >< td >
" ;
$checked = ( varsettrue ( $pref [ 'smtp_keepalive' ]) ) ? " checked='checked' " : '' ;
$text .= " <input type='checkbox' name='smtp_keepalive' value='1' { $checked } />
</ td >
</ tr > " ;
$checked = ( in_array ( 'useVERP' , $smtp_opts ) ? " checked='checked' " : " " );
$text .= " <tr>
< td > " .LAN_MAILOUT_95. " </ td >< td >
< input type = 'checkbox' name = 'smtp_useVERP' value = '1' { $checked } />
</ td >
</ tr >
</ table ></ div > " ;
/* FIXME - posting SENDMAIL path triggers Mod - Security rules .
// Sendmail. -------------->
2012-12-15 18:06:55 -08:00
2012-12-10 16:01:44 -08:00
$text .= " <div id='sendmail' { $senddisp } ><table style='margin-right:0px;margin-left:auto;border:0px'> " ;
$text .= "
< tr >
< td > " .LAN_MAILOUT_20. " :& nbsp ; & nbsp ; </ td >
< td >
< input class = 'tbox' type = 'text' name = 'sendmail' size = '60' value = \ " " . ( ! $pref [ 'sendmail' ] ? " /usr/sbin/sendmail -t -i -r " . $pref [ 'siteadminemail' ] : $pref [ 'sendmail' ]) . " \" maxlength='80' />
</ td >
</ tr >
</ table ></ div > " ;
*/
2012-12-15 18:06:55 -08:00
$senddisp = ( varset ( $pref [ 'mailer' ]) != 'sendmail' ) ? " e-hideme " : '' ;
$text .= " <div class='s-message info { $senddisp } ' id='sendmail' >
2012-12-10 16:01:44 -08:00
Not available in this release
</ div > " ;
$text .= " </td>
</ tr >
< tr >
< td > " .LAN_MAILOUT_222. " </ td >
< td > " ;
$emFormat = array (
'textonly' => LAN_MAILOUT_125 ,
'texthtml' => LAN_MAILOUT_126 ,
'texttheme' => LAN_MAILOUT_127
);
2012-12-15 18:06:55 -08:00
$text .= $frm -> selectbox ( 'mail_sendstyle' , $emFormat , vartrue ( $pref [ 'mail_sendstyle' ]));
2012-12-10 17:38:52 -08:00
$text .= "
2012-12-10 16:01:44 -08:00
</ td >
</ tr >
2008-12-17 17:27:07 +00:00
< tr >
2012-11-26 14:41:32 -08:00
< td > " .PRFLAN_162. " </ td >
< td >
2008-12-17 17:27:07 +00:00
" . $frm->textarea ('sitecontactinfo', $pref['sitecontactinfo'] , 6, 59). "
< div class = 'smalltext field-help' > " .PRFLAN_163. " </ div >
</ td >
</ tr >
< tr >
2012-11-26 14:41:32 -08:00
< td > " .PRFLAN_168. " </ td >
< td >
2010-11-30 11:45:45 +00:00
" . $e_userclass->uc_dropdown ('sitecontacts', $pref['sitecontacts'] , 'nobody,main,admin,classes', " tabindex = '".$frm->getNext()."' " ). "
2008-12-17 17:27:07 +00:00
< div class = 'smalltext field-help' > " .PRFLAN_169. " </ div >
</ td >
</ tr >
< tr >
2012-11-26 14:41:32 -08:00
< td > " .PRFLAN_164. " </ td >
2013-03-27 20:28:55 +01:00
< td > " ;
/*
2008-12-17 17:27:07 +00:00
" . $frm->radio ('contact_emailcopy', 1, $pref['contact_emailcopy'] ). "
" . $frm->label (LAN_ENABLED, 'contact_emailcopy', 1). " & nbsp ; & nbsp ;
" . $frm->radio ('contact_emailcopy', 0, ! $pref['contact_emailcopy'] ). "
" . $frm->label (LAN_DISABLED, 'contact_emailcopy', 0). "
< div class = 'smalltext field-help' > " .PRFLAN_165. " </ div >
2013-03-27 20:28:55 +01:00
*/
$text .= $frm -> radio_switch ( 'contact_emailcopy' , $pref [ 'contact_emailcopy' ]) . " <div class='smalltext field-help'> " . PRFLAN_165 . " </div>
2008-12-17 17:27:07 +00:00
</ td >
</ tr >
2012-12-10 16:01:44 -08:00
</ tbody >
2008-12-17 17:27:07 +00:00
</ table >
2012-12-10 16:01:44 -08:00
" .pref_submit('email'). "
</ fieldset > " ;
2006-12-02 04:36:16 +00:00
2008-12-17 17:27:07 +00:00
$text .= "
< fieldset class = 'e-hideme' id = 'core-prefs-display' >
2008-12-19 14:01:07 +00:00
< legend > " .PRFLAN_13. " </ legend >
2012-11-26 14:41:32 -08:00
< table class = 'table adminform' >
2012-05-13 05:26:11 +00:00
< colgroup >
2008-12-17 17:27:07 +00:00
< col class = 'col-label' />
< col class = 'col-control' />
</ colgroup >
< tbody >
< tr >
2012-11-26 14:41:32 -08:00
< td > " .PRFLAN_14. " </ td >
< td >
2008-12-19 14:01:07 +00:00
" . $frm->radio_switch ('displaythemeinfo', $pref['displaythemeinfo'] ). "
2008-12-17 17:27:07 +00:00
</ td >
</ tr >
< tr >
2012-11-26 14:41:32 -08:00
< td > " .PRFLAN_15. " </ td >
< td >
2008-12-19 14:01:07 +00:00
" . $frm->radio_switch ('displayrendertime', $pref['displayrendertime'] ). "
2008-12-17 17:27:07 +00:00
</ td >
</ tr >
< tr >
2012-11-26 14:41:32 -08:00
< td > " .PRFLAN_16. " </ td >
< td >
2008-12-19 14:01:07 +00:00
" . $frm->radio_switch ('displaysql', $pref['displaysql'] ). "
2008-12-17 17:27:07 +00:00
</ td >
</ tr >
2006-12-02 04:36:16 +00:00
" ;
2007-08-14 19:37:45 +00:00
if ( function_exists ( " memory_get_usage " ))
{
2006-12-02 04:36:16 +00:00
$text .= "
2008-12-17 17:27:07 +00:00
< tr >
2012-11-26 14:41:32 -08:00
< td > " .PRFLAN_137. " </ td >
< td >
2008-12-19 14:01:07 +00:00
" . $frm->radio_switch ('display_memory_usage', $pref['display_memory_usage'] ). "
2008-12-17 17:27:07 +00:00
</ td >
</ tr >
2006-12-02 04:36:16 +00:00
" ;
}
2008-12-17 17:27:07 +00:00
$text .= "
</ tbody >
</ table >
" .pref_submit('display'). "
</ fieldset >
" ;
2006-12-02 04:36:16 +00:00
2008-12-17 17:27:07 +00:00
// Admin Display Areas
$text .= "
< fieldset class = 'e-hideme' id = 'core-prefs-admindisp' >
2008-12-19 14:01:07 +00:00
< legend > " .PRFLAN_77. " </ legend >
2012-11-26 14:41:32 -08:00
< table class = 'table adminform' >
2012-05-13 05:26:11 +00:00
< colgroup >
2008-12-17 17:27:07 +00:00
< col class = 'col-label' />
< col class = 'col-control' />
</ colgroup >
< tbody >
< tr >
2012-11-26 14:41:32 -08:00
< td > " .PRFLAN_95. " </ td >
< td >
2008-12-19 14:01:07 +00:00
" . $frm->radio_switch ('admin_alerts_ok', $pref['admin_alerts_ok'] ). "
2008-12-17 17:27:07 +00:00
< div class = 'smalltext field-help' > " .PRFLAN_96. " </ div >
</ td >
</ tr >
< tr >
2012-11-26 14:41:32 -08:00
< td > " .PRFLAN_97. " </ td >
< td >
2008-12-19 14:01:07 +00:00
" . $frm->radio_switch ('admin_alerts_uniquemenu', $pref['admin_alerts_uniquemenu'] ). "
2008-12-17 17:27:07 +00:00
< div class = 'smalltext field-help' > " .PRFLAN_98. " </ div >
</ td >
</ tr >
2009-01-09 17:25:50 +00:00
< tr >
2012-11-26 14:41:32 -08:00
< td > " .PRFLAN_199. " </ td >
< td >
2009-01-09 17:25:50 +00:00
" . $frm->radio_switch ('admin_slidedown_subs', $pref['admin_slidedown_subs'] ). "
< div class = 'smalltext field-help' > " .PRFLAN_200. " </ div >
</ td >
2011-12-28 15:52:13 +00:00
</ tr >
< tr >
2012-11-26 14:41:32 -08:00
< td > " .PRFLAN_204. " </ td >
< td >
2009-07-09 02:47:17 +00:00
" . $frm->radio_switch ('admin_separate_plugins', $pref['admin_separate_plugins'] ). "
< div class = 'smalltext field-help' > " .PRFLAN_205. " </ div >
</ td >
2009-01-09 17:25:50 +00:00
</ tr >
2008-12-17 17:27:07 +00:00
</ tbody >
</ table >
" .pref_submit('admindisp'). "
</ fieldset >
2006-12-02 04:36:16 +00:00
2008-12-17 17:27:07 +00:00
" ;
2006-12-02 04:36:16 +00:00
// Date options.
2008-12-17 17:27:07 +00:00
$ga = new convert ();
2006-12-02 04:36:16 +00:00
$date1 = $ga -> convert_date ( time (), " short " );
$date2 = $ga -> convert_date ( time (), " long " );
$date3 = $ga -> convert_date ( time (), " forum " );
2012-05-26 12:21:39 +00:00
$date4 = e107 :: getDate () -> convert ( time (), " input " );
2006-12-02 04:36:16 +00:00
2008-12-17 17:27:07 +00:00
$text .= "
< fieldset class = 'e-hideme' id = 'core-prefs-date' >
2008-12-19 14:01:07 +00:00
< legend > " .PRFLAN_21. " </ legend >
2012-11-26 14:41:32 -08:00
< table class = 'table adminform' >
2012-05-13 05:26:11 +00:00
< colgroup >
2008-12-17 17:27:07 +00:00
< col class = 'col-label' />
< col class = 'col-control' />
</ colgroup >
< tbody >
< tr >
2012-11-26 14:41:32 -08:00
< td > " .PRFLAN_22. " : </ td >
< td >
2008-12-19 14:01:07 +00:00
" . $frm->text ('shortdate', $pref['shortdate'] , 50). "
< div class = 'field-help' > " .PRFLAN_83. " : { $date1 } </ div >
2008-12-17 17:27:07 +00:00
</ td >
</ tr >
< tr >
2012-11-26 14:41:32 -08:00
< td > " .PRFLAN_23. " : </ td >
< td >
2008-12-19 14:01:07 +00:00
" . $frm->text ('longdate', $pref['longdate'] , 50). "
< div class = 'field-help' > " .PRFLAN_83. " : { $date2 } </ div >
2008-12-17 17:27:07 +00:00
</ td >
</ tr >
< tr >
2012-11-26 14:41:32 -08:00
< td > " .PRFLAN_24. " </ td >
< td >
2008-12-19 14:01:07 +00:00
" . $frm->text ('forumdate', $pref['forumdate'] , 50). "
< div class = 'field-help' > " .PRFLAN_83. " : { $date3 } </ div >
< div class = 'field-help' > " .PRFLAN_25. " < a href = 'http://www.php.net/manual/en/function.strftime.php' rel = 'external' > " .PRFLAN_93. " </ a ></ div >
2008-12-17 17:27:07 +00:00
</ td >
2012-05-26 12:21:39 +00:00
</ tr > " ;
2012-05-26 13:32:09 +00:00
$def = strtotime ( 'December 21, 2012 3:45pm' );
2012-05-26 12:21:39 +00:00
$inputdate = array ( // TODO add more formats
2012-05-26 13:32:09 +00:00
" %A, %d %B, %Y " => strftime ( " %A, %d %B, %Y " , $def ),
" %A, %d %b, %Y " => strftime ( " %A, %d %b, %Y " , $def ),
" %a, %d %B, %Y " => strftime ( " %a, %d %B, %Y " , $def ),
" %a, %d %b, %Y " => strftime ( " %a, %d %b, %Y " , $def ),
" %A, %B %d, %Y " => strftime ( " %A, %B %d, %Y " , $def ),
" %A, %b %d, %Y " => strftime ( " %A, %b %d, %Y " , $def ),
" %A, %b %d, %y " => strftime ( " %A, %b %d, %y " , $def ),
" %B %d, %Y " => strftime ( " %B %d, %Y " , $def ),
" %b %d, %Y " => strftime ( " %b %d, %Y " , $def ),
" %b %d, %y " => strftime ( " %b %d, %y " , $def ),
" %d %B, %Y " => strftime ( " %d %B, %Y " , $def ),
" %d %b, %Y " => strftime ( " %d %b, %Y " , $def ),
" %d %b, %y " => strftime ( " %d %b, %y " , $def ),
" %Y-%m-%d " => strftime ( " %Y-%m-%d " , $def ),
" %d-%m-%Y " => strftime ( " %d-%m-%Y " , $def ),
" %m/%d/%Y " => strftime ( " %m/%d/%Y " , $def )
2012-05-26 12:21:39 +00:00
);
$inputtime = array ();
2012-05-26 13:32:09 +00:00
$inputtime [ " %I:%M %p " ] = strftime ( " %I:%M %p " , $def );
2012-05-26 12:21:39 +00:00
if ( e107 :: getDate () -> supported ( 'P' ))
{
2012-05-26 13:32:09 +00:00
$inputtime [ " %I:%M %P " ] = strftime ( " %I:%M %P " , $def );
2012-05-26 12:21:39 +00:00
}
if ( e107 :: getDate () -> supported ( 'l' ))
{
2012-05-26 13:32:09 +00:00
$inputtime [ " %l:%M %p " ] = strftime ( " %l:%M %p " , $def );
$inputtime [ " %l:%M %P " ] = strftime ( " %l:%M %P " , $def );
2012-05-26 12:21:39 +00:00
}
2012-05-26 13:32:09 +00:00
$inputtime [ " %H:%M " ] = strftime ( " %H:%M " , $def );
$inputtime [ " %H:%M:%S " ] = strftime ( " %H:%M:%S " , $def );
2012-05-26 12:21:39 +00:00
$text .= "
< tr >
2012-11-26 14:41:32 -08:00
< td > Date / Time Input - Field format : </ td >
< td >
2012-05-26 12:21:39 +00:00
" . $frm->selectbox ('inputdate', $inputdate , e107::getPref('inputdate'));
$text .= $frm -> selectbox ( 'inputtime' , $inputtime , e107 :: getPref ( 'inputtime' ));
$text .= "
</ td >
2008-12-17 17:27:07 +00:00
</ tr >
< tr >
2012-11-26 14:41:32 -08:00
< td > " .PRFLAN_26. " </ td >
< td >
2008-12-19 14:01:07 +00:00
" . $frm->select_open ('time_offset', 'class=tbox select time-offset');//use form handler because of the tabindex
2006-12-02 04:36:16 +00:00
$toffset = array ( " -12 " , " -11 " , " -10 " , " -9 " , " -8 " , " -7 " , " -6 " , " -5 " , " -4 " , " -3 " , " -2 " , " -1 " , " 0 " , " +1 " , " +2 " , " +3 " , " +4 " , " +5 " , " +6 " , " +7 " , " +8 " , " +9 " , " +10 " , " +11 " , " +12 " , " +13 " , " +14 " , " +15 " , " +16 " );
2008-12-17 17:27:07 +00:00
if ( ! isset ( $pref [ 'time_offset' ]))
2006-12-02 04:36:16 +00:00
{
$pref [ 'time_offset' ] = " 0 " ;
}
foreach ( $toffset as $o )
{
2008-12-17 17:27:07 +00:00
$text .= "
2008-12-19 14:01:07 +00:00
" . $frm->option ( $o , $o , ( $o == $pref['time_offset'] )). "
2008-12-17 17:27:07 +00:00
" ;
2006-12-02 04:36:16 +00:00
}
2008-12-17 17:27:07 +00:00
$text .= "
</ select >
< div class = 'smalltext field-help' > " .PRFLAN_27. " </ div >
</ td >
</ tr >
< tr >
2012-11-26 14:41:32 -08:00
< td > " .PRFLAN_56. " : </ td >
< td >
2008-12-19 14:01:07 +00:00
" . $frm->text ('timezone', $pref['timezone'] , 50). "
2008-12-17 17:27:07 +00:00
</ td >
</ tr >
</ tbody >
</ table >
" .pref_submit('date'). "
</ fieldset >
" ;
2006-12-02 04:36:16 +00:00
// =========== Registration Preferences. ==================
2008-12-17 17:27:07 +00:00
$text .= "
< fieldset class = 'e-hideme' id = 'core-prefs-registration' >
2008-12-19 14:01:07 +00:00
< legend > " .PRFLAN_28. " </ legend >
2012-11-26 14:41:32 -08:00
< table class = 'table adminform' >
2012-05-13 05:26:11 +00:00
< colgroup >
2008-12-17 17:27:07 +00:00
< col class = 'col-label' />
< col class = 'col-control' />
</ colgroup >
< tbody >
< tr >
2012-11-26 14:41:32 -08:00
< td > " .PRFLAN_29. " </ td >
< td >
2008-12-19 14:01:07 +00:00
" . $frm->radio_switch ('user_reg', $pref['user_reg'] ). "
2008-12-17 17:27:07 +00:00
< div class = 'smalltext field-help' > " .PRFLAN_30. " </ div >
</ td >
</ tr >
2009-03-06 20:09:08 +00:00
2008-12-17 17:27:07 +00:00
< tr >
2012-11-26 14:41:32 -08:00
< td > " .PRFLAN_154. " </ td >
< td >
2008-12-19 14:01:07 +00:00
" . $frm->select_open ('user_reg_veri');
2009-03-06 20:09:08 +00:00
$veri_list = array ( PRFLAN_152 , PRFLAN_31 , PRFLAN_153 );
2006-12-02 04:36:16 +00:00
2009-03-06 20:09:08 +00:00
foreach ( $veri_list as $v => $v_title )
{
$text .= $frm -> option ( $v_title , $v , ( $pref [ 'user_reg_veri' ] == $v ));
}
2006-12-02 04:36:16 +00:00
2009-03-06 20:09:08 +00:00
$text .= "
2008-12-17 17:27:07 +00:00
</ select >
2008-12-19 14:01:07 +00:00
< div class = 'field-help' > " .PRFLAN_154a. " </ div >
2008-12-17 17:27:07 +00:00
</ td >
</ tr >
2009-03-06 20:09:08 +00:00
< tr >
2012-11-26 14:41:32 -08:00
< td > " .PRFLAN_184. " </ td >
< td > " . $frm->select_open ('allowEmailLogin');
2012-06-02 08:12:16 +00:00
// $login_list = array(PRFLAN_201,PRFLAN_202,PRFLAN_203);
$login_list = array (
2 => PRFLAN_203 ,
1 => PRFLAN_202 ,
0 => PRFLAN_201
);
2009-03-06 20:09:08 +00:00
foreach ( $login_list as $l => $l_title )
{
$text .= $frm -> option ( $l_title , $l , ( $pref [ 'allowEmailLogin' ] == $l ));
}
$text .= "
</ select ></ td >
</ tr >
2008-12-17 17:27:07 +00:00
< tr >
2012-11-26 14:41:32 -08:00
< td > " .PRFLAN_160. " </ td >
< td >
2008-12-19 14:01:07 +00:00
" . $frm->radio_switch ('signup_remote_emailcheck', $pref['signup_remote_emailcheck'] ). "
2008-12-17 17:27:07 +00:00
</ td >
</ tr >
< tr >
2012-11-26 14:41:32 -08:00
< td > " .PRFLAN_167. " </ td >
< td >
2008-12-19 14:01:07 +00:00
" . $frm->radio_switch ('disable_emailcheck', $pref['disable_emailcheck'] ). "
2008-12-17 17:27:07 +00:00
</ td >
</ tr >
2009-03-06 20:09:08 +00:00
2008-12-17 17:27:07 +00:00
< tr >
2012-11-26 14:41:32 -08:00
< td > " .PRFLAN_45. " </ td >
< td >
2008-12-19 14:01:07 +00:00
" . $frm->radio_switch ('use_coppa', $pref['use_coppa'] ). "
2010-03-06 23:49:08 +00:00
< div class = 'field-help' > " .PRFLAN_46. " < a href = 'http://www.ftc.gov/privacy/coppafaqs.shtm' > " .PRFLAN_94. " </ a ></ div >
2008-12-17 17:27:07 +00:00
</ td >
</ tr >
< tr >
2012-11-26 14:41:32 -08:00
< td > " .PRFLAN_58. " </ td >
2012-12-10 17:38:52 -08:00
< td > " ;
$memDisp = ! vartrue ( $pref [ 'membersonly_enabled' ]) ? " e-hideme " : " " ;
$text .= $frm -> radio_switch ( 'membersonly_enabled' , $pref [ 'membersonly_enabled' ], '' , '' , 'class=e-expandit' ) . "
2008-12-19 14:01:07 +00:00
< div class = 'field-help' > " .PRFLAN_59. " </ div >
2012-12-10 17:38:52 -08:00
< div class = 'e-expandit-container {$memDisp}' style = 'padding-top:10px' > " .
$frm -> textarea ( 'membersonly_exceptions' , $pref [ 'membersonly_exceptions' ], 3 , 1 , 'placeholder=' . PRFLAN_206 ) . "
2009-08-20 11:38:24 +00:00
< div class = 'field-help' > " .PRFLAN_207. " </ div >
2012-12-10 17:38:52 -08:00
</ div >
2009-08-20 11:38:24 +00:00
</ td >
</ tr >
2012-12-10 17:38:52 -08:00
2009-03-06 20:09:08 +00:00
< tr >
2012-11-26 14:41:32 -08:00
< td > " .PRFLAN_197. " : </ td >
< td >
2009-03-06 20:09:08 +00:00
" . $frm->radio_switch ('autologinpostsignup', $pref['autologinpostsignup'] ). "
< div class = 'smalltext field-help' > " .PRFLAN_198. " </ div >
</ td >
</ tr >
2012-05-17 18:41:25 +00:00
2008-12-17 17:27:07 +00:00
< tr >
2012-11-26 14:41:32 -08:00
< td > " .PRFLAN_136. " </ td >
< td >
2012-11-01 00:34:38 +00:00
" . $frm->number ('signup_maxip', $pref['signup_maxip'] , 3). "
2012-05-17 18:41:25 +00:00
< div class = 'field-help' > " .PRFLAN_78. " </ div >
2008-12-17 17:27:07 +00:00
</ td >
</ tr >
2012-05-17 18:41:25 +00:00
</ tbody >
</ table >
" .pref_submit('registration'). "
</ fieldset >
" ;
2012-06-13 12:34:09 +00:00
2012-12-10 17:38:52 -08:00
// Single/ Social Login / / copied from hybridAuth config.php so it's easy to add more.
2012-06-13 12:34:09 +00:00
// Used Below.
2012-08-02 21:29:36 +00:00
$social_logins = array (
2012-06-13 12:34:09 +00:00
// openid providers
" OpenID " => array (
" enabled " => true
),
" Yahoo " => array (
" enabled " => true
),
" AOL " => array (
" enabled " => true
),
" Google " => array (
" enabled " => true ,
" keys " => array ( " id " => " " , " secret " => " " ),
" scope " => " "
),
" Facebook " => array (
" enabled " => true ,
" keys " => array ( " id " => " " , " secret " => " " ),
// A comma-separated list of permissions you want to request from the user. See the Facebook docs for a full list of available permissions: http://developers.facebook.com/docs/reference/api/permissions.
" scope " => " " ,
// The display context to show the authentication page. Options are: page, popup, iframe, touch and wap. Read the Facebook docs for more details: http://developers.facebook.com/docs/reference/dialogs#display. Default: page
" display " => " "
),
" Twitter " => array (
" enabled " => true ,
" keys " => array ( " key " => " " , " secret " => " " )
),
// windows live
" Live " => array (
" enabled " => true ,
" keys " => array ( " id " => " " , " secret " => " " )
),
" MySpace " => array (
" enabled " => true ,
" keys " => array ( " key " => " " , " secret " => " " )
),
" LinkedIn " => array (
" enabled " => true ,
" keys " => array ( " key " => " " , " secret " => " " )
),
" Foursquare " => array (
" enabled " => true ,
" keys " => array ( " id " => " " , " secret " => " " )
)
);
2012-08-02 21:29:36 +00:00
// Key registration
$social_external = array (
" Facebook " => " https://developers.facebook.com/apps " ,
" Twitter " => " https://dev.twitter.com/apps/new " ,
" Google " => " https://code.google.com/apis/console/ " ,
" Live " => " https://manage.dev.live.com/ApplicationOverview.aspx " ,
" LinkedIn " => " https://www.linkedin.com/secure/developer " ,
" Foursquare " => " https://www.foursquare.com/oauth/ "
);
2012-06-13 12:34:09 +00:00
$text .= "
2012-06-14 04:11:52 +00:00
< fieldset class = 'e-hideme' id = 'core-prefs-sociallogin' >
2013-03-10 04:42:18 -07:00
< legend > Social Options </ legend >
< div class = 'alert alert-warning' > Note : This section requires further testing </ div >
2012-11-26 14:41:32 -08:00
< table class = 'table adminform' >
2012-06-13 12:34:09 +00:00
< colgroup >
< col class = 'col-label' />
< col class = 'col-control' />
</ colgroup >
< tbody >
2013-03-10 04:42:18 -07:00
< tr >
< th colspan = '2' > External Social Pages </ th >
2013-03-11 02:32:19 -07:00
</ tr > " ;
//XXX XURL Definitions.
$xurls = array (
'facebook' => array ( 'label' => " Facebook " , " placeholder " => " eg. https://www.facebook.com/e107CMS " ),
'twitter' => array ( 'label' => " Twitter " , " placeholder " => " eg. https://twitter.com/e107 " ),
'youtube' => array ( 'label' => " Youtube " , " placeholder " => " eg.https://youtube.com/e107Inc " ),
'google' => array ( 'label' => " Google+ " , " placeholder " => " eg.. " ),
2013-03-22 22:06:12 -07:00
'linkedin' => array ( 'label' => " LinkedIn " , " placeholder " => " eg. http://www.linkedin.com/groups?home=&gid=1782682 " ),
'github' => array ( 'label' => " Github " , " placeholder " => " eg. https://github.com/e107inc " )
2013-03-11 02:32:19 -07:00
);
foreach ( $xurls as $k => $var )
{
$keypref = " xurl[ " . $k . " ] " ;
$def = " XURL_ " . strtoupper ( $k );
$opts = array ( 'size' => 'xxlarge' , 'placeholder' => $var [ 'placeholder' ]);
$text .= "
2013-03-10 04:42:18 -07:00
< tr >
2013-03-11 02:32:19 -07:00
< td > Your " . $var['label'] . " page </ td >
2013-03-10 04:42:18 -07:00
< td >
2013-03-11 02:32:19 -07:00
" . $frm->text ( $keypref , $pref['xurl'] [ $k ], false, $opts ). "
< div class = 'field-help' > Used by some themes to provide a link to your " . $var['label'] . " page . ( " . $def . " ) </ div >
2013-03-10 04:42:18 -07:00
</ td >
</ tr >
2013-03-11 02:32:19 -07:00
" ;
}
$text .= "
2013-03-10 04:42:18 -07:00
< tr >
< th colspan = '2' > Social Logins </ th >
</ tr >
2012-06-13 12:34:09 +00:00
< tr >
2012-11-26 14:41:32 -08:00
< td > Enable Social Logins </ td >
< td >
2012-06-14 04:11:52 +00:00
" . $frm->radio_switch ('social_login_active', $pref['social_login_active'] ). "
2012-06-13 12:34:09 +00:00
</ td >
</ tr > " ;
2012-06-14 04:11:52 +00:00
if ( ! is_array ( $pref [ 'social_login' ]))
{
$pref [ 'social_login' ] = array ();
}
2012-08-02 21:29:36 +00:00
foreach ( $social_logins as $prov => $val )
2012-06-14 04:11:52 +00:00
{
2012-08-02 21:29:36 +00:00
$label = varset ( $social_external [ $prov ]) ? " <a class='e-tip' rel='external' title='Get a key from the provider' href=' " . $social_external [ $prov ] . " '> " . $prov . " </a> " : $prov ;
2012-06-14 04:11:52 +00:00
2012-06-13 12:34:09 +00:00
$text .= "
< tr >
2012-11-26 14:41:32 -08:00
< td > " . $label . " </ td >
< td >
2012-06-13 12:34:09 +00:00
" ;
foreach ( $val as $k => $v )
{
switch ( $k ) {
case 'enabled' :
$eopt = array ( 'class' => 'e-expandit' );
2012-12-08 13:52:05 +01:00
$text .= $frm -> radio_switch ( 'social_login[' . $prov . '][enabled]' , vartrue ( $pref [ 'social_login' ][ $prov ][ 'enabled' ]), '' , '' , $eopt );
2012-06-13 12:34:09 +00:00
break ;
case 'keys' :
// $cls = vartrue($pref['single_login'][$prov]['keys'][$tk]) ? "class='e-hideme'" : '';
2012-12-10 17:38:52 -08:00
$sty = vartrue ( $pref [ 'social_login' ][ $prov ][ 'keys' ][ vartrue ( $tk )]) ? " " : " e-hideme " ;
$text .= " <div class='e-expandit-container { $sty } ' id='option- { $prov } ' > " ;
2012-06-13 12:34:09 +00:00
foreach ( $v as $tk => $idk )
{
2012-12-18 13:08:46 +02:00
$eopt = array ( 'placeholder' => $tk );
$text .= " <br /> " . $frm -> text ( 'social_login[' . $prov . '][keys][' . $tk . ']' , vartrue ( $pref [ 'social_login' ][ $prov ][ 'keys' ][ $tk ]), 100 , $eopt );
2012-06-13 12:34:09 +00:00
}
$text .= " </div> " ;
break ;
2012-06-14 04:11:52 +00:00
case 'scope' :
$text .= $frm -> hidden ( 'social_login[' . $prov . '][scope]' , 'email' );
break ;
2012-06-13 12:34:09 +00:00
default :
break ;
}
}
$text .= " </td>
</ tr >
" ;
}
$text .= "
</ tbody >
</ table >
2012-06-14 04:11:52 +00:00
" .pref_submit('sociallogin'). "
2012-06-13 12:34:09 +00:00
</ fieldset >
" ;
2012-05-17 18:41:25 +00:00
// Signup options ===========================.
$text .= "
< fieldset class = 'e-hideme' id = 'core-prefs-signup' >
< legend > " .PRFLAN_19. " </ legend >
2012-11-26 14:41:32 -08:00
< table class = 'table adminform' >
2012-05-17 18:41:25 +00:00
< colgroup >
< col class = 'col-label' />
< col class = 'col-control' />
</ colgroup >
2012-12-10 17:38:52 -08:00
< tbody > " ;
$signup_option_names = array (
// "signup_option_loginname" => "Login Name",
" signup_option_email_confirm " => " Email Confirmation " ,
" signup_option_realname " => CUSTSIG_2 ,
" signup_option_signature " => CUSTSIG_6 ,
" signup_option_image " => CUSTSIG_7 ,
" signup_option_class " => CUSTSIG_17 ,
'signup_option_customtitle' => CUSTSIG_20 ,
'signup_option_hideemail' => 'Option to hide email'
);
foreach ( $signup_option_names as $value => $key )
{
$text .= "
< tr >
< td > " . $key . " </ td >
< td >
2013-03-27 20:28:55 +01:00
" . $frm->radio ( $value , 0, ! $pref[$value] , array('label' => CUSTSIG_12)). " & nbsp ; & nbsp ;
" . $frm->radio ( $value , 1, ( $pref[$value] == 1), array('label' => CUSTSIG_14)). " & nbsp ; & nbsp ;
" . $frm->radio ( $value , 2, ( $pref[$value] == 2), array('label' => CUSTSIG_15)). "
2012-12-10 17:38:52 -08:00
</ td >
</ tr >
" ;
}
$text .= "
2008-12-17 17:27:07 +00:00
< tr >
2012-11-26 14:41:32 -08:00
< td > " .PRFLAN_126. " </ td >
< td >
2012-12-10 17:38:52 -08:00
" . $frm->textarea ('signup_text', $pref['signup_text'] , 2, 1). "
2012-05-17 18:41:25 +00:00
</ td >
</ tr >
< tr >
2012-11-26 14:41:32 -08:00
< td > " .PRFLAN_140. " </ td >
< td >
2012-12-10 17:38:52 -08:00
" . $frm->textarea ('signup_text_after', $pref['signup_text_after'] , 2, 1). "
2012-05-17 18:41:25 +00:00
</ td >
</ tr >
2012-12-10 17:38:52 -08:00
2008-12-17 17:27:07 +00:00
< tr >
2012-11-26 14:41:32 -08:00
< td > " .PRFLAN_192. " :</ td >
< td >
2008-12-19 14:01:07 +00:00
" . $frm->text ('predefinedLoginName', $pref['predefinedLoginName'] , 50). "
2013-02-19 14:45:22 -08:00
< div class = 'field-help' >< div style = 'text-align:left' > " .PRFLAN_193. " < br /> " .str_replace( " [ br ] " , " < br /> " ,PRFLAN_194). " </ div ></ div >
2008-12-17 17:27:07 +00:00
</ td >
</ tr >
< tr >
2012-11-26 14:41:32 -08:00
< td > " .PRFLAN_158. " :</ td >
< td >
2012-11-01 00:34:38 +00:00
" . $frm->number ('displayname_maxlength', $pref['displayname_maxlength'] , 3). "
2008-12-17 17:27:07 +00:00
</ td >
</ tr >
< tr >
2012-11-26 14:41:32 -08:00
< td > " .PRFLAN_172. " :</ td >
< td >
2012-11-01 00:34:38 +00:00
" . $frm->number ('loginname_maxlength', $pref['loginname_maxlength'] , 3). "
2008-12-17 17:27:07 +00:00
</ td >
</ tr >
2008-12-19 14:01:07 +00:00
" ;
/*
2008-12-17 17:27:07 +00:00
<!--
< tr >
2012-11-26 14:41:32 -08:00
< td > " .CUSTSIG_13. " </ td >
< td > " .CUSTSIG_14. " </ td >
2008-12-17 17:27:07 +00:00
</ tr >
-->
2008-12-19 14:01:07 +00:00
*/
2006-12-02 04:36:16 +00:00
2012-05-31 06:07:33 +00:00
2006-12-02 04:36:16 +00:00
2008-12-17 17:27:07 +00:00
$text .= "
</ tbody >
</ table >
" .pref_submit('signup'). "
</ fieldset >
" ;
2006-12-02 04:36:16 +00:00
// Custom Fields.
/* text render options */
2008-12-19 14:01:07 +00:00
if ( ! isset ( $pref [ 'post_html' ]))
2006-12-02 04:36:16 +00:00
{
$pref [ 'post_html' ] = '250' ;
save_prefs ();
}
2008-12-17 17:27:07 +00:00
$text .= "
< fieldset class = 'e-hideme' id = 'core-prefs-textpost' >
2008-12-19 14:01:07 +00:00
< legend > " .PRFLAN_101. " </ legend >
2012-11-26 14:41:32 -08:00
< table class = 'table adminform' >
2012-05-13 05:26:11 +00:00
< colgroup >
2008-12-17 17:27:07 +00:00
< col class = 'col-label' />
< col class = 'col-control' />
</ colgroup >
< tbody >
< tr >
2012-11-26 14:41:32 -08:00
< td > " .PRFLAN_127. " :</ td >
< td >
2008-12-19 14:01:07 +00:00
" . $frm->radio_switch ('make_clickable', $pref['make_clickable'] ). "
2008-12-17 17:27:07 +00:00
< div class = 'smalltext field-help' > " .PRFLAN_128. " </ div >
</ td >
2012-12-10 17:38:52 -08:00
</ tr > " ;
$replaceDisp = vartrue ( $pref [ 'link_replace' ]) ? " " : " e-hideme " ;
$text .= "
2008-12-17 17:27:07 +00:00
< tr >
2012-11-26 14:41:32 -08:00
< td > " .PRFLAN_102. " ? :</ td >
< td >
2012-12-10 17:38:52 -08:00
" . $frm->radio_switch ('link_replace', $pref['link_replace'] ,'', '', 'expandit=1'). "
2008-12-17 17:27:07 +00:00
< div class = 'smalltext field-help' > " .PRFLAN_103. " </ div >
2012-12-10 17:38:52 -08:00
< div class = 'e-expandit-container {$replaceDisp}' >
" . $frm->text ('link_text', $pref['link_text'] , 200, 'placeholder='.PRFLAN_104). "
2012-12-10 20:59:16 -08:00
< div class = 'smalltext field-help' > " .PRFLAN_105. " </ div > " .
$frm -> text ( 'email_text' , $tp -> post_toForm ( $pref [ 'email_text' ]), 200 , 'placeholder=' . PRFLAN_107 ) . "
< div class = 'smalltext field-help' > " .PRFLAN_108. " </ div >
2012-12-10 17:38:52 -08:00
</ div >
2008-12-17 17:27:07 +00:00
</ td >
</ tr >
2012-12-10 17:38:52 -08:00
< tr >
2012-11-26 14:41:32 -08:00
< td > " .PRFLAN_145. " ? :</ td >
< td >
2008-12-19 14:01:07 +00:00
" . $frm->radio_switch ('links_new_window', $pref['links_new_window'] ). "
2008-12-17 17:27:07 +00:00
< div class = 'smalltext field-help' > " .PRFLAN_146. " </ div >
</ td >
</ tr >
2012-12-10 17:38:52 -08:00
2008-12-17 17:27:07 +00:00
< tr >
2012-12-10 17:38:52 -08:00
< td > " .PRFLAN_40. " </ td >
2012-11-26 14:41:32 -08:00
< td >
2012-12-10 17:38:52 -08:00
" . $frm->radio_switch ('profanity_filter', $pref['profanity_filter'] ). "
< div class = 'smalltext field-help' > " .PRFLAN_41. " </ div >
</ td >
</ tr >
< tr >
< td > " .PRFLAN_42. " :</ td >
< td >
" . $frm->text ('profanity_replace', $pref['profanity_replace'] , 20). "
</ td >
</ tr >
< tr >
< td > " .PRFLAN_43. " :</ td >
< td >
" . $frm->tags ('profanity_words', $pref['profanity_words'] ). "
< div class = 'field-help' > " .PRFLAN_44. " </ div >
2008-12-17 17:27:07 +00:00
</ td >
</ tr >
2012-12-10 17:38:52 -08:00
2012-12-10 20:59:16 -08:00
2008-12-17 17:27:07 +00:00
< tr >
2012-11-26 14:41:32 -08:00
< td > " .PRFLAN_109. " :</ td >
< td >
2012-12-10 20:59:16 -08:00
" . $frm->number ('main_wordwrap', $pref['main_wordwrap'] , 3). "
2008-12-17 17:27:07 +00:00
< div class = 'smalltext field-help' > " .PRFLAN_110. " </ div >
</ td >
</ tr >
< tr >
2012-11-26 14:41:32 -08:00
< td > " .PRFLAN_111. " :</ td >
< td >
2012-12-10 20:59:16 -08:00
" . $frm->number ('menu_wordwrap', $pref['menu_wordwrap'] , 3). "
2008-12-17 17:27:07 +00:00
< div class = 'smalltext field-help' > " .PRFLAN_110. " </ div >
</ td >
</ tr >
2009-03-06 20:09:08 +00:00
2008-12-17 17:27:07 +00:00
< tr >
2012-11-26 14:41:32 -08:00
< td > " .PRFLAN_116. " :</ td >
< td >
2008-12-19 14:01:07 +00:00
" . $e_userclass->uc_dropdown ('post_html', $pref['post_html'] , 'nobody,public,member,admin,main,classes', " tabindex = '".$frm->getNext()."' " ). "
2008-12-17 17:27:07 +00:00
< div class = 'smalltext field-help' > " .PRFLAN_117. " </ div >
</ td >
</ tr >
2010-09-06 12:34:06 +00:00
< tr >
2012-11-26 14:41:32 -08:00
< td > " .PRFLAN_215. " :</ td >
< td >
2010-09-06 12:34:06 +00:00
" .r_userclass('post_script', $pref['post_script'] ,'off','nobody,member,admin,main,classes'). "
< div class = 'smalltext field-help' > " .PRFLAN_216. " </ div >
</ td >
</ tr >
< tr >
2012-11-26 14:41:32 -08:00
< td > " .PRFLAN_217. " :</ td >
< td >
2010-09-06 12:34:06 +00:00
" . $frm->radio_switch ('filter_script', varset( $pref['filter_script'] , 1)). "
< div class = 'smalltext field-help' > " .PRFLAN_218. " </ div >
</ td >
</ tr >
2010-12-18 22:55:27 +00:00
< tr >
2012-11-26 14:41:32 -08:00
< td > " .PRFLAN_220. " :</ td >
< td >
2010-12-18 22:55:27 +00:00
" . $frm->radio_switch ('html_abuse', varset( $pref['html_abuse'] , 1)). "
< div class = 'smalltext field-help' > " .PRFLAN_221. " </ div >
</ td >
</ tr >
2008-12-17 17:27:07 +00:00
< tr >
2012-11-26 14:41:32 -08:00
< td > " .PRFLAN_122. " :</ td >
< td >
2008-12-19 14:01:07 +00:00
" . $frm->radio_switch ('wysiwyg', $pref['wysiwyg'] ). "
2008-12-17 17:27:07 +00:00
< div class = 'smalltext field-help' > " .PRFLAN_123. " </ div >
</ td >
</ tr >
< tr >
2012-11-26 14:41:32 -08:00
< td > " .PRFLAN_124. " :</ td >
< td >
2008-12-19 14:01:07 +00:00
" . $frm->radio_switch ('old_np', $pref['old_np'] ). "
2008-12-17 17:27:07 +00:00
< div class = 'smalltext field-help' > " .PRFLAN_125. " </ div >
</ td >
</ tr >
2011-07-10 23:21:09 +00:00
2006-12-02 04:36:16 +00:00
" ;
2008-12-17 17:27:07 +00:00
if ( file_exists ( e_PLUGIN . " geshi/geshi.php " ))
{
$text .= "
< tr >
2012-11-26 14:41:32 -08:00
< td > " .PRFLAN_118. " ? :</ div ></ td >
< td >
2008-12-19 14:01:07 +00:00
" . $frm->radio_switch ('useGeshi', $pref['useGeshi'] ). "
2013-03-24 19:44:14 +01:00
< div class = 'smalltext field-help' > " .str_replace( " [ link ] " , " http :// qbnz . com / highlighter / " , PRFLAN_119). " </ div >
2008-12-17 17:27:07 +00:00
</ td >
</ tr >
< tr >
2012-11-26 14:41:32 -08:00
< td > " .PRFLAN_120. " ? :</ td >
< td >
2008-12-19 14:01:07 +00:00
" . $frm->text ('defaultLanGeshi', ( $pref['defaultLanGeshi'] ? $pref['defaultLanGeshi'] : " php " ), 20). "
2008-12-17 17:27:07 +00:00
< div class = 'smalltext field-help' > " .PRFLAN_121. " </ div >
</ td >
</ tr >
2006-12-02 04:36:16 +00:00
" ;
2008-12-17 17:27:07 +00:00
}
$text .= "
</ tbody >
</ table >
" .pref_submit('textpost'). "
</ fieldset >
" ;
2008-06-13 20:20:23 +00:00
2008-12-17 17:27:07 +00:00
function multi_radio ( $name , $textsVals , $currentval = '' )
{
$ret = '' ;
$gap = '' ;
foreach ( $textsVals as $v => $t )
2008-06-13 20:20:23 +00:00
{
2008-12-17 17:27:07 +00:00
$sel = ( $v == $currentval ) ? " checked='checked' " : " " ;
$ret .= $gap . " <input type='radio' name=' { $name } ' value=' { $v } ' { $sel } /> " . $t . " " ;
2008-06-13 20:20:23 +00:00
$gap = " " ;
}
2008-12-17 17:27:07 +00:00
return $ret ;
}
2008-06-13 20:20:23 +00:00
2006-12-02 04:36:16 +00:00
// Security Options. .
$hasGD = extension_loaded ( " gd " );
2008-12-17 17:27:07 +00:00
$text .= "
< fieldset class = 'e-hideme' id = 'core-prefs-security' >
2008-12-19 14:01:07 +00:00
< legend > " .PRFLAN_47. " </ legend >
2012-11-26 14:41:32 -08:00
< table class = 'table adminform' >
2012-05-13 05:26:11 +00:00
< colgroup >
2008-12-17 17:27:07 +00:00
< col class = 'col-label' />
< col class = 'col-control' />
</ colgroup >
< tbody >
< tr >
2012-11-26 14:41:32 -08:00
< td > " .PRFLAN_60. " </ td >
2008-12-19 14:01:07 +00:00
2012-11-26 14:41:32 -08:00
< td >
2008-12-19 14:01:07 +00:00
" . $frm->radio_switch ('ssl_enabled', $pref['ssl_enabled'] ). "
< div class = 'field-help' > " .PRFLAN_61. " </ div >
2008-12-17 17:27:07 +00:00
</ td >
</ tr >
2013-03-21 23:06:46 -07:00
<!-- Secure Image -->
2008-12-17 17:27:07 +00:00
" ;
2008-06-13 20:20:23 +00:00
2013-03-21 23:06:46 -07:00
$secureImage = array ( 'signcode' => PRFLAN_76 , 'logcode' => PRFLAN_81 , " fpwcode " => PRFLAN_138 , 'admincode' => PRFLAN_222 );
foreach ( $secureImage as $key => $label )
{
$label = str_replace ( $srch , $repl , $label );
$text .= " <tr><td> " . $label . " </td><td> " ;
if ( $hasGD )
{
$text .= $frm -> radio_switch ( $key , $pref [ $key ]);
}
else
{
$text .= PRFLAN_133 ;
}
$text .= "
< div class = 'field-help' > " .PRFLAN_223. " </ div >
</ td ></ tr > \n " ;
}
/*
$text .= "
2008-12-17 17:27:07 +00:00
< tr >
2012-11-26 14:41:32 -08:00
< td > " .PRFLAN_81. " : </ td >
< td >
2008-12-17 17:27:07 +00:00
" ;
2006-12-02 04:36:16 +00:00
2008-12-17 17:27:07 +00:00
if ( $hasGD )
{
2008-12-19 14:01:07 +00:00
$text .= $frm -> radio_switch ( 'logcode' , $pref [ 'logcode' ]);
2008-12-17 17:27:07 +00:00
}
else
{
$text .= PRFLAN_133 ;
}
$text .= "
</ td >
</ tr >
< tr >
2012-11-26 14:41:32 -08:00
< td > " .PRFLAN_138. " : </ td >
< td >
2008-12-17 17:27:07 +00:00
" ;
if ( $hasGD )
{
2008-12-19 14:01:07 +00:00
$text .= $frm -> radio_switch ( 'fpwcode' , $pref [ 'fpwcode' ]);
2008-12-17 17:27:07 +00:00
}
else
{
$text .= PRFLAN_133 ;
}
2006-12-02 04:36:16 +00:00
2008-12-17 17:27:07 +00:00
$text .= "
</ td >
2013-03-21 23:06:46 -07:00
</ tr > " ;
*
*/
$text .= " <tr>
2012-11-26 14:41:32 -08:00
< td > " .PRFLAN_92. " : </ td >
< td >
2008-12-19 14:01:07 +00:00
" . $frm->radio_switch ('user_reg_secureveri', $pref['user_reg_secureveri'] ). "
2008-12-17 17:27:07 +00:00
</ td >
</ tr >
2009-03-06 20:09:08 +00:00
2008-12-17 17:27:07 +00:00
< tr >
2012-11-26 14:41:32 -08:00
< td > " .PRFLAN_129. " :</ td >
< td >
2008-12-19 14:01:07 +00:00
" . $frm->radio_switch ('disallowMultiLogin', $pref['disallowMultiLogin'] , LAN_YES, LAN_NO). "
2008-12-17 17:27:07 +00:00
< div class = 'smalltext field-help' > " .PRFLAN_130. " </ div >
</ td >
</ tr >
2009-03-06 20:09:08 +00:00
2008-12-17 17:27:07 +00:00
< tr >
2012-11-26 14:41:32 -08:00
< td > " .PRFLAN_48. " :</ td >
2013-03-15 05:28:27 -07:00
< td class = 'form-inline' >
2013-03-24 18:04:37 -07:00
" . $frm->radio ('user_tracking', array('cookie' => PRFLAN_49, 'session' => PRFLAN_50), $pref['user_tracking'] ). " " .PRFLAN_55. " : " . $frm->text ('cookie_name', $pref['cookie_name'] , 20). "
2008-12-17 17:27:07 +00:00
</ td >
</ tr >
2012-12-10 17:38:52 -08:00
2008-12-17 17:27:07 +00:00
< tr >
2012-12-10 17:38:52 -08:00
< td > " .CUSTSIG_18. " </ td >
2012-11-26 14:41:32 -08:00
< td >
2012-12-10 17:38:52 -08:00
" . $frm->textarea ('signup_disallow_text', $pref['signup_disallow_text'] , 2, 1). "
< div class = 'field-help' > " .CUSTSIG_19. " </ div >
2008-12-17 17:27:07 +00:00
</ td >
</ tr >
2012-12-10 17:38:52 -08:00
< tr >
< td > " .PRFLAN_155. " :</ td >
2012-11-26 14:41:32 -08:00
< td >
2012-12-10 17:38:52 -08:00
< div class = 'field-spacer' > " . $e_userclass->uc_dropdown ('displayname_class', $pref['displayname_class'] , 'nobody,member,admin,classes', " tabindex = '".$frm->getNext()."' " ). " </ div >
" . $frm->admin_button ('submit_resetdisplaynames', PRFLAN_156). "
2008-12-17 17:27:07 +00:00
</ td >
</ tr >
2012-12-10 17:38:52 -08:00
2008-12-17 17:27:07 +00:00
< tr >
2012-12-10 17:38:52 -08:00
< td > " .CUSTSIG_16. " </ td >
2012-11-26 14:41:32 -08:00
< td >
2012-12-10 17:38:52 -08:00
" . $frm->number ('signup_pass_len', $pref['signup_pass_len'] , 2). "
2008-12-17 17:27:07 +00:00
</ td >
</ tr >
2012-12-10 17:38:52 -08:00
2008-12-17 17:27:07 +00:00
< tr >
2012-12-10 17:38:52 -08:00
< td > " .PRFLAN_188. " :</ td >
2012-11-26 14:41:32 -08:00
< td >
2012-12-10 17:38:52 -08:00
" . $frm->radio_switch ('passwordEncoding', varset( $pref['passwordEncoding'] , 0), PRFLAN_190, PRFLAN_189). "
< div class = 'smalltext field-help' > " .PRFLAN_191. " </ div >
2008-12-17 17:27:07 +00:00
</ td >
</ tr >
2012-12-10 17:38:52 -08:00
< tr > " ;
$CHAP_list = array ( PRFLAN_180 , PRFLAN_181 , PRFLAN_182 );
$text .= "
< td > " .PRFLAN_178. " </ td >
2012-12-20 22:51:38 +00:00
< td > " . $frm->selectbox ('password_CHAP', $CHAP_list , $pref['password_CHAP'] );
//." ".$frm->select_open('password_CHAP');
2012-12-10 17:38:52 -08:00
//TODO - user tracking session name - visible only if Cookie is enabled (JS)
$text .= "
< div class = 'smalltext field-help' > " .PRFLAN_183. " < br /> " .PRFLAN_179. " </ div >
2008-12-17 17:27:07 +00:00
</ td >
</ tr >
2012-12-10 17:38:52 -08:00
2008-12-17 17:27:07 +00:00
< tr >
2012-11-26 14:41:32 -08:00
< td > " .PRFLAN_35. " :</ td >
< td >
2008-12-19 14:01:07 +00:00
" . $frm->radio_switch ('antiflood1', $pref['antiflood1'] ). "
2008-12-17 17:27:07 +00:00
</ td >
</ tr >
< tr >
2012-11-26 14:41:32 -08:00
< td > " .PRFLAN_36. " :</ td >
< td >
2012-11-01 00:34:38 +00:00
" . $frm->number ('antiflood_timeout', $pref['antiflood_timeout'] , 3). "
2008-12-17 17:27:07 +00:00
< div class = 'smalltext field-help' > " .PRFLAN_38. " </ div >
</ td >
</ tr >
< tr >
2012-11-26 14:41:32 -08:00
< td > " .PRFLAN_37. " </ td >
< td >
2008-12-19 14:01:07 +00:00
" . $frm->select_open ('autoban');
2006-12-02 04:36:16 +00:00
2008-12-19 14:01:07 +00:00
$autoban_list = array (
PRFLAN_113 ,
PRFLAN_144 ,
PRFLAN_142 ,
PRFLAN_143
);
2006-12-02 04:36:16 +00:00
2008-12-17 17:27:07 +00:00
foreach ( $autoban_list as $ab => $ab_title )
{
$sel = ( $pref [ 'autoban' ] == $ab ) ? " selected='selected' " : " " ;
$text .= "
2008-12-19 14:01:07 +00:00
" . $frm->option ( $ab_title , $ab , ( $pref['autoban'] == $ab )). "
2008-12-17 17:27:07 +00:00
" ;
}
2006-12-02 04:36:16 +00:00
2008-12-17 17:27:07 +00:00
$text .= "
</ select >
2008-12-19 14:01:07 +00:00
< div class = 'field-help' > " .PRFLAN_91. " </ div >
2008-12-17 17:27:07 +00:00
</ td >
</ tr >
< tr >
2012-11-26 14:41:32 -08:00
< td > " .PRFLAN_139. " :</ td >
< td >
2008-12-19 14:01:07 +00:00
" . $frm->radio_switch ('adminpwordchange', $pref['adminpwordchange'] ). "
2008-12-17 17:27:07 +00:00
</ td >
</ tr >
</ tbody >
</ table >
" .pref_submit('security'). "
</ fieldset >
" ;
2007-07-18 20:20:27 +00:00
2008-12-17 17:27:07 +00:00
$text .= "
< fieldset class = 'e-hideme' id = 'core-prefs-comments' >
2008-12-19 14:01:07 +00:00
< legend > " .PRFLAN_87. " </ legend >
2012-11-26 14:41:32 -08:00
< table class = 'table adminform' >
2012-05-13 05:26:11 +00:00
< colgroup >
2008-12-17 17:27:07 +00:00
< col class = 'col-label' />
< col class = 'col-control' />
</ colgroup >
< tbody >
2012-06-17 03:56:42 +00:00
< tr >
2013-03-18 14:18:47 +01:00
< td > " .PRFLAN_161. " :</ td >
2012-11-26 14:41:32 -08:00
< td >
2012-06-17 03:56:42 +00:00
" . $frm->radio_switch ('comments_disabled', $pref['comments_disabled'] , LAN_NO, LAN_YES,array('reverse'=>1)). "
</ td >
</ tr >
2009-03-06 20:09:08 +00:00
< tr >
2012-11-26 14:41:32 -08:00
< td > " .PRFLAN_32. " </ td >
< td >
2009-03-06 20:09:08 +00:00
" . $frm->radio_switch ('anon_post', $pref['anon_post'] , LAN_YES, LAN_NO). "
< div class = 'field-help' > " .PRFLAN_33. " </ div >
</ td >
</ tr >
2008-12-17 17:27:07 +00:00
< tr >
2012-11-26 14:41:32 -08:00
< td > " .PRFLAN_89. " : </ td >
< td >
2008-12-19 14:01:07 +00:00
" . $frm->radio_switch ('comments_icon', $pref['comments_icon'] , LAN_YES, LAN_NO). "
2008-12-17 17:27:07 +00:00
</ td >
</ tr >
< tr >
2012-11-26 14:41:32 -08:00
< td > " .PRFLAN_88. " : </ td >
< td >
2008-12-19 14:01:07 +00:00
" . $frm->radio_switch ('nested_comments', $pref['nested_comments'] , LAN_YES, LAN_NO). "
2008-12-17 17:27:07 +00:00
</ td >
</ tr >
2012-06-16 12:41:30 +00:00
2008-12-17 17:27:07 +00:00
< tr >
2012-11-26 14:41:32 -08:00
< td > " .PRFLAN_90. " : </ td >
< td >
2008-12-19 14:01:07 +00:00
" . $frm->radio_switch ('allowCommentEdit', $pref['allowCommentEdit'] , LAN_YES, LAN_NO). "
2008-12-17 17:27:07 +00:00
</ td >
</ tr >
2012-06-17 03:56:42 +00:00
2008-12-17 17:27:07 +00:00
< tr >
2012-11-26 14:41:32 -08:00
< td > " .PRFLAN_166. " : </ td >
< td >
2008-12-19 14:01:07 +00:00
" . $frm->radio_switch ('comments_emoticons', $pref['comments_emoticons'] , LAN_YES, LAN_NO). "
2008-12-17 17:27:07 +00:00
</ td >
</ tr >
2009-03-06 20:09:08 +00:00
2012-06-15 12:50:18 +00:00
< tr >
2012-11-26 14:41:32 -08:00
< td > Moderate Comments made by : </ td >
< td >
2012-06-17 10:27:09 +00:00
" .
$frm -> uc_select ( 'comments_moderate' , $pref [ 'comments_moderate' ], " nobody,guest,new,bots,public,admin,main,classes " ) .
"
< div class = 'field-help' > Comments will require manual approval by an admin prior to being visible to other users </ div >
2012-06-15 12:50:18 +00:00
</ td >
</ tr >
2012-06-16 12:41:30 +00:00
< tr >
2012-11-26 14:41:32 -08:00
< td > Comment Sorting : </ td >
< td > " ;
2012-06-16 12:41:30 +00:00
$comment_sort = array (
" desc " => " Most recent comments first " , //default //TODO LAN
'asc' => " Most recent comments last "
);
$text .= $frm -> selectbox ( 'comments_sort' , $comment_sort , $pref [ 'comments_moderate' ]) . "
</ td >
</ tr >
2012-06-15 12:50:18 +00:00
2008-12-17 17:27:07 +00:00
</ tbody >
</ table >
2009-09-28 21:00:18 +00:00
< legend > " .PRFLAN_209. " </ legend >
2012-11-26 14:41:32 -08:00
< table class = 'table adminform' >
2012-05-13 05:26:11 +00:00
< colgroup >
2009-09-28 21:00:18 +00:00
< col class = 'col-label' />
< col class = 'col-control' />
</ colgroup >
< tbody >
< tr >
2012-11-26 14:41:32 -08:00
< td > " .PRFLAN_208. " :</ td >
< td >
2009-09-28 21:00:18 +00:00
" . $e_userclass->uc_dropdown ('email_item_class',varset( $pref['email_item_class'] ,e_UC_MEMBER),'nobody,admin,main,public,member,classes', " tabindex = '".$frm->getNext()."' " ). "
</ td >
</ tr >
</ tbody >
</ table >
2008-12-17 17:27:07 +00:00
" .pref_submit('comments'). "
</ fieldset >
2006-12-02 04:36:16 +00:00
" ;
2012-05-02 21:09:17 +00:00
2012-05-17 09:19:44 +00:00
// File Uploads
include_lan ( e_LANGUAGEDIR . e_LANGUAGE . " /admin/lan_upload.php " );
$text .= "
< fieldset class = 'e-hideme' id = 'core-prefs-uploads' >
< legend > File Uploading </ legend >
2012-11-26 14:41:32 -08:00
< table class = 'table adminform' >
2012-05-17 09:19:44 +00:00
< colgroup >
< col class = 'col-label' />
< col class = 'col-control' />
</ colgroup >
< tbody >
< tr >
2012-11-26 14:41:32 -08:00
< td > " .UPLLAN_25. " </ td >
< td > " .
2012-05-17 09:19:44 +00:00
$frm -> radio_switch ( 'upload_enabled' , $pref [ 'upload_enabled' ], LAN_YES , LAN_NO )
. "
< div class = 'field-help' > " .UPLLAN_26. " </ div >
</ td >
</ tr >
< tr >
2012-11-26 14:41:32 -08:00
< td > " .UPLLAN_33. " < br />
2012-05-17 09:19:44 +00:00
</ td >
2012-11-26 14:41:32 -08:00
< td > " .
2012-05-17 09:19:44 +00:00
$frm -> text ( 'upload_maxfilesize' , $pref [ 'upload_maxfilesize' ], 10 )
. "
< div class = 'field-help' > " .UPLLAN_34. " ( upload_max_filesize = " .ini_get('upload_max_filesize'). " , post_max_size = " .ini_get('post_max_size'). " ) </ div >
</ td >
</ tr >
< tr >
2012-11-26 14:41:32 -08:00
< td > " .UPLLAN_37. " </ td >
< td > " .r_userclass( " upload_class " , $pref['upload_class'] , " off " , " nobody , public , guest , member , admin , classes " ). "
2012-05-17 09:19:44 +00:00
< div class = 'field-help' > " .UPLLAN_38. " </ div >
</ td >
</ tr >
</ tbody >
</ table >
" .pref_submit('uploads'). "
</ fieldset > " ;
2012-05-05 02:18:11 +00:00
// Javascript Control
2012-05-02 21:09:17 +00:00
//TODO LANS
$text .= "
< fieldset class = 'e-hideme' id = 'core-prefs-javascript' >
< legend > Javascript Frameworks ( for testing purposes only ) </ legend >
2012-11-26 14:41:32 -08:00
< table class = 'table adminform' >
2012-05-13 05:26:11 +00:00
< colgroup >
2012-05-02 21:09:17 +00:00
< col class = 'col-label' />
< col class = 'col-control' />
</ colgroup >
< tbody > " ;
2012-05-16 03:10:56 +00:00
$js_options = array (
'auto' => 'Auto (on-demand)' , // load based on dependency
'admin' => 'Admin Area' , // Always load in admin
'front' => 'Front-End' , // Always load in front-end
'all' => " Both " , // Always load in admin and front-end
'none' => 'Disabled' // disabled
);
2012-05-02 21:09:17 +00:00
2012-05-05 02:18:11 +00:00
2012-06-13 12:34:09 +00:00
//TODO FIXME
2012-05-05 02:18:11 +00:00
// ie. e107 Core Minimum: JS similar to e107 v1.0 should be loaded "e_js.php" (no framwork dependency)
// with basic functions like SyncWithServerTime() and expandit(), externalLinks() etc.
2012-06-13 12:34:09 +00:00
2012-05-16 03:10:56 +00:00
$js_types = array (
2012-06-13 12:34:09 +00:00
array ( 'id' => 'jquery' , 'name' => 'jQuery (local)' ),
2013-03-15 05:28:27 -07:00
array ( 'id' => 'prototype' , 'name' => 'Prototype (local)' ),
2012-05-16 03:10:56 +00:00
);
2012-06-13 12:34:09 +00:00
//TODO // separate switch for CDN.. or automatic fall-back.
2012-05-16 03:10:56 +00:00
2012-05-05 02:18:11 +00:00
2012-05-02 21:09:17 +00:00
2012-05-05 02:18:11 +00:00
foreach ( $js_types as $arr )
2012-05-02 21:09:17 +00:00
{
2012-05-16 03:10:56 +00:00
// $k = $arr['path'];
$k = $arr [ 'id' ];
2012-05-05 02:18:11 +00:00
$name = $arr [ 'name' ];
2012-05-02 21:09:17 +00:00
$text .= " <tr>
2012-05-05 02:18:11 +00:00
< td > " . $name . " </ td >
2013-03-24 18:04:37 -07:00
< td > " . $frm->radio ( " e_jslib_core [{ $k }] " , $js_options , $pref['e_jslib_core'] [ $k ]). " </ td >
2012-05-02 21:09:17 +00:00
</ tr > " ;
}
2012-05-14 11:07:04 +00:00
$text .= "
</ tbody >
</ table >
2012-11-26 14:41:32 -08:00
< table class = 'table adminform' style = 'margin-top: 20px' >
2012-05-16 03:10:56 +00:00
< colgroup >
2012-05-14 11:07:04 +00:00
< col class = 'col-label' />
< col class = 'col-control' />
</ colgroup >
< tbody >
< tr >
2012-11-26 14:41:32 -08:00
< td > Disable scripts consolidation </ td >
< td >
2012-05-14 11:07:04 +00:00
" . $frm->radio_switch ('e_jslib_nocombine', $pref['e_jslib_nocombine'] , LAN_YES, LAN_NO). "
< div class = 'smalltext field-help' > If disabled , scripts will be loaded in one consolidated file </ div >
</ td >
</ tr >
< tr >
2012-11-26 14:41:32 -08:00
< td > Enable consolidated scripts zlib compression :</ td >
< td >
2012-05-14 11:07:04 +00:00
" . $frm->radio_switch ('e_jslib_gzip', $pref['e_jslib_gzip'] , LAN_YES, LAN_NO). "
< div class = 'smalltext field-help' > Used only when script consolidation is enabled </ div >
</ td >
</ tr >
< tr >
2012-11-26 14:41:32 -08:00
< td > Disable consolidated scripts server cache :</ td >
< td >
2012-05-14 11:07:04 +00:00
" . $frm->radio_switch ('e_jslib_nocache', $pref['e_jslib_nocache'] , LAN_YES, LAN_NO). "
< div class = 'smalltext field-help' > Used only when script consolidation is enabled </ div >
</ td >
</ tr >
< tr >
2012-11-26 14:41:32 -08:00
< td > Disable consolidated scripts browser cache :</ td >
< td >
2012-05-14 11:07:04 +00:00
" . $frm->radio_switch ('e_jslib_nobcache', $pref['e_jslib_nobcache'] , LAN_YES, LAN_NO). "
< div class = 'smalltext field-help' > Used only when script consolidation is enabled </ div >
</ td >
</ tr >
" ;
2012-05-02 21:09:17 +00:00
$text .= "
</ tbody ></ table >
" .pref_submit('javascript'). "
2012-05-14 11:07:04 +00:00
</ fieldset >
2012-05-16 20:19:16 +00:00
" ;
2013-02-25 02:47:23 -08:00
/*
2012-05-16 20:19:16 +00:00
e107 :: js ( 'inline' , "
2012-05-14 11:07:04 +00:00
\ $\ $ ( '#e-jslib-nocombine' , '#e-jslib-nocombine-1' ) . invoke ( 'observe' , 'change' , function ( event ) {
var element = event . findElement ( 'input' ), check = ! parseInt ( element . value );
eHandleJsForm ( check );
});
var eHandleJsForm = function ( enable ) {
var collection = \ $w ( 'e-jslib-gzip e-jslib-nocache e-jslib-nobcache' );
collection . each ( function ( id ) {
var method = enable ? 'enable' : 'disable' ;
\ $\ $ ( '#' + id , '#' + id + '-1' ) . invoke ( method );
});
};
eHandleJsForm ( " .( $pref['e_jslib_nocombine'] ? 'false' : 'true'). " );
2012-05-16 20:19:16 +00:00
" , " prototype " );
2013-02-25 02:47:23 -08:00
*/
2012-05-02 21:09:17 +00:00
2006-12-02 04:36:16 +00:00
2008-12-17 17:27:07 +00:00
//Advanced Features
$text .= "
< fieldset class = 'e-hideme' id = 'core-prefs-advanced' >
2008-12-19 14:01:07 +00:00
< legend > " .PRFLAN_149. " </ legend >
2012-11-26 14:41:32 -08:00
< table class = 'table adminform' >
2012-05-13 05:26:11 +00:00
< colgroup >
2008-12-17 17:27:07 +00:00
< col class = 'col-label' />
< col class = 'col-control' />
</ colgroup >
< tbody >
< tr >
2012-11-26 14:41:32 -08:00
< td > " .PRFLAN_147. " :</ td >
< td >
2008-12-19 14:01:07 +00:00
" . $frm->radio_switch ('developer', $pref['developer'] ). "
2008-12-17 17:27:07 +00:00
< div class = 'smalltext field-help' > " .PRFLAN_148. " </ div >
</ td >
</ tr >
< tr >
2012-11-26 14:41:32 -08:00
< td > " .PRFLAN_196. " </ td >
< td >
2008-12-19 14:01:07 +00:00
" . $frm->radio_switch ('log_page_accesses', $pref['log_page_accesses'] ). "
2012-12-15 18:06:55 -08:00
< div class = 'field-help' > " .PRFLAN_196a. " < strong > " .e_LOG. " </ strong ></ div >
2008-12-17 17:27:07 +00:00
</ td >
</ tr >
< tr >
2012-11-26 14:41:32 -08:00
< td > " .PRFLAN_17. " </ td >
< td >
2008-12-19 14:01:07 +00:00
" . $frm->radio_switch ('compress_output', $pref['compress_output'] ). "
2008-12-17 17:27:07 +00:00
</ td >
</ tr >
2008-12-19 14:01:07 +00:00
" ;
$auth_dropdown = '' ;
if ( $authlist )
{
2009-06-12 20:41:35 +00:00
$auth_dropdown = " \n " . $frm -> select_open ( 'auth_method' ) . " \n " ;
2008-12-19 14:01:07 +00:00
foreach ( $authlist as $a )
{
2009-06-12 20:41:35 +00:00
$auth_dropdown .= $frm -> option ( $a , $a , ( $pref [ 'auth_method' ] == $a )) . " \n " ;
2008-12-19 14:01:07 +00:00
}
2009-06-12 20:41:35 +00:00
$auth_dropdown .= " </select> \n " ;
2008-12-19 14:01:07 +00:00
}
else
{
$auth_dropdown = " <input type='hidden' name='auth_method' value='' /> " . PRFLAN_151 ;
$pref [ 'auth_method' ] = " " ;
}
$text .= "
2008-12-17 17:27:07 +00:00
< tr >
2012-11-26 14:41:32 -08:00
< td > " .PRFLAN_150. " </ td >
< td >
2008-12-17 17:27:07 +00:00
{ $auth_dropdown }
</ td >
</ tr >
< tr >
2012-11-26 14:41:32 -08:00
< td > " .PRFLAN_173. " </ td >
< td >
2008-12-19 14:01:07 +00:00
" . $frm->radio_switch ('check_updates', $pref['check_updates'] ). "
2008-12-17 17:27:07 +00:00
</ td >
</ tr >
</ tbody >
</ table >
" .pref_submit('advanced'). "
</ fieldset >
" ;
2006-12-02 04:36:16 +00:00
// END Advanced Features
2008-12-17 17:27:07 +00:00
$text .= "
</ form >
</ div >
" ;
2006-12-02 04:36:16 +00:00
2013-02-26 16:36:25 +01:00
$ns -> tablerender ( PRFLAN_53 , $mes -> render () . $text );
2006-12-02 04:36:16 +00:00
2008-12-17 17:27:07 +00:00
require_once ( e_ADMIN . " footer.php " );
2006-12-02 04:36:16 +00:00
2008-12-17 17:27:07 +00:00
function pref_submit ( $post_id = '' )
{
global $frm ;
if ( $post_id ) $post_id = '-' . $post_id ;
$text = "
< div class = 'buttons-bar center' > " ;
2006-12-02 04:36:16 +00:00
// ML
/* if ( e_MLANG == 1 ){
//$text .="<input class='fcaption' type='submit' name='updateprefs' value='".PRFLAN_52."' />
$but_typ = array ( " " ); // empty = submit
$but_nam = array ( " updateprefs " ); // empty = autobutX with X autoincrement
$but_val = array ( " updateprefs " ); // empty = Submit
$but_class = array ( " caption " ); // empty = button
$butjs = array ( " " ); // empty = ""
$buttitle = array ( " " ); // empty = ""
$text .= e107ml_adpanel ( 1 , $but_typ , $but_nam , $but_val , $but_class , $butjs , $buttitle );
} else { */
2008-12-17 17:27:07 +00:00
$text .= $frm -> admin_button ( 'updateprefs' , PRFLAN_52 , 'update' , '' , " id=updateprefs { $post_id } " );
2006-12-02 04:36:16 +00:00
// }
2008-12-17 17:27:07 +00:00
$text .= " \n </div> " ;
2006-12-02 04:36:16 +00:00
// END ML
return $text ;
}
2008-12-17 17:27:07 +00:00
function prefs_adminmenu ()
{
$var [ 'core-prefs-main' ][ 'text' ] = PRFLAN_1 ;
2012-12-10 16:01:44 -08:00
$var [ 'core-prefs-email' ][ 'text' ] = " Email & Contact Info. " ;
2008-12-17 17:27:07 +00:00
$var [ 'core-prefs-registration' ][ 'text' ] = PRFLAN_28 ;
$var [ 'core-prefs-signup' ][ 'text' ] = PRFLAN_19 ;
2013-03-10 04:42:18 -07:00
$var [ 'core-prefs-sociallogin' ][ 'text' ] = " Social Options " ;
2012-12-10 16:01:44 -08:00
2009-09-28 21:00:18 +00:00
$var [ 'core-prefs-comments' ][ 'text' ] = PRFLAN_210 ;
2012-05-17 09:19:44 +00:00
$var [ 'core-prefs-uploads' ][ 'text' ] = " File Uploading " ; // TODO LAN
2012-12-10 16:01:44 -08:00
$var [ 'core-prefs-header1' ][ 'header' ] = " Advanced Options " ;
$var [ 'core-prefs-display' ][ 'text' ] = PRFLAN_13 ;
$var [ 'core-prefs-admindisp' ][ 'text' ] = PRFLAN_77 ;
$var [ 'core-prefs-textpost' ][ 'text' ] = PRFLAN_101 ;
$var [ 'core-prefs-security' ][ 'text' ] = PRFLAN_47 ;
$var [ 'core-prefs-date' ][ 'text' ] = PRFLAN_21 ;
2012-05-02 21:09:17 +00:00
$var [ 'core-prefs-javascript' ][ 'text' ] = " Javascript Framework " ; // TODO LAN
2008-12-17 17:27:07 +00:00
$var [ 'core-prefs-advanced' ][ 'text' ] = PRFLAN_149 ;
2012-11-26 18:42:11 -08:00
2012-12-10 16:01:44 -08:00
e107 :: getNav () -> admin ( " Basic " . LAN_OPTIONS . '--id--prev_nav' , 'core-prefs-main' , $var );
2008-12-18 16:55:46 +00:00
}