function uddeIMdoShowConnections($myself, $my_gid, $config) { $sep=","; if ($config->separator==1) $sep=";"; $somanyfriends = 0; if ($config->showconnex) { if (uddeIMcheckCB()) { $rows = uddeIMselectCBbuddies($myself, $config); $somanyfriends = count($rows); } if (!$somanyfriends) { // no friends found, maybe there are some in CBE? if (uddeIMcheckCBE()) { $rows = uddeIMselectCBEbuddies($myself, $config); $somanyfriends = count($rows); } if (uddeIMcheckCBE2()) { $rows = uddeIMselectCBE2buddies($myself, $config); $somanyfriends = count($rows); } } if (!$somanyfriends) { // no friends found, maybe there are some in JS? if (uddeIMcheckJS()) { $rows = uddeIMselectJSbuddies($myself, $config); $somanyfriends = count($rows); } } } // collect lists $somanylists=0; if( ($config->enablelists==1) || ($config->enablelists==2 && (uddeIMisSpecial($my_gid) || uddeIMisSpecial2($my_gid, $config))) || ($config->enablelists==3 && (uddeIMisAdmin($my_gid) || uddeIMisAdmin2($my_gid, $config))) ) { $my_lists = uddeIMselectAllUserlists($myself, $my_gid, $config, true); $somanylists = count($my_lists); } if ($somanyfriends>0 || $somanylists>0) { if ($somanyfriends>0 && $somanylists>0) $mycons = _UDDEIM_CONNECTIONS."/"._UDDEIM_LISTS."<br />"; elseif ($somanyfriends>0) $mycons = _UDDEIM_CONNECTIONS."<br />"; elseif ($somanylists>0) $mycons = _UDDEIM_LISTS."<br />"; else $mycons = ""; if ($config->connex_listbox) { if ($config->connexallowmultipleuser) $mycons.="<select size=\"1\" class=\"inputbox\" onchange=\"document.sendeform.to_name.value=(document.sendeform.to_name.value.length>0 && this.options[this.selectedIndex].value.length>0) ? document.sendeform.to_name.value+'".$sep."'+this.options[this.selectedIndex].value : this.options[this.selectedIndex].value; return false;\" name=\"connexlistbox\">"; else $mycons.="<select size=\"1\" class=\"inputbox\" onchange=\"document.sendeform.to_name.value=this.options[this.selectedIndex].value; return false;\" name=\"connexlistbox\">"; $mycons.="<option value=''> </option>"; if ($somanyfriends>0) foreach ($rows as $row) $mycons.="<option value=\"".$row->displayname."\">".$row->displayname."</option>"; if ($somanylists>0) foreach ($my_lists as $row) $mycons.="<option value=\"#".$row->name."\">#".$row->name."</option>"; $mycons.="</select>"; } else { if ($config->connexallowmultipleuser) { $mycons.="<ul>"; $mycons.="<li><a href=\"#\" onclick=\"document.sendeform.to_name.value=''; return false;\">"._UDDEIM_CLEAR."</a></li> "; if ($somanyfriends>0) foreach ($rows as $row) $mycons.="<li><a href=\"#\" onclick=\"document.sendeform.to_name.value=(document.sendeform.to_name.value.length>0) ? document.sendeform.to_name.value+'".$sep."'+'".$row->displayname."' : '".$row->displayname."'; return false;\">".$row->displayname."</a></li> "; if ($somanylists>0) foreach ($my_lists as $row) $mycons.="<li><a href=\"#\" onclick=\"document.sendeform.to_name.value=(document.sendeform.to_name.value.length>0) ? document.sendeform.to_name.value+'".$sep."'+'#".$row->name."' : '#".$row->name."'; return false;\">#".$row->name."</a></li> "; $mycons.="</ul>"; } else { if ($somanyfriends>0) foreach ($rows as $row) $mycons.="<a href=\"#\" onclick=\"document.sendeform.to_name.value='".$row->displayname."'; return false;\">".$row->displayname."</a> "; if ($somanylists>0) foreach ($my_lists as $row) $mycons.="<a href=\"#\" onclick=\"document.sendeform.to_name.value='#".$row->name."'; return false;\">#".$row->name."</a> "; } } // START THIRD LINE IN TABLE (when connections exist) if ($config->connex_listbox) { echo "<tr><td valign='top'> </td><td valign='top' align='right'>".$mycons."</td></tr>"; } else { echo "<tr><td colspan='2'>".$mycons."</td></tr>"; } } }
function uddeIMselectComboUserlist( $myself, $my_gid, $lids, $config ) { $database = uddeIMgetDatabase(); $users = Array(); getAdditonalGroups($add_special, $add_admin, $config); $ret = '<select multiple="multiple" name="userlist" class="inputbox" ondblclick="userlistdblclick(this.selectedIndex, \'listsform\', \'userlist\', \'selectionlist\', '.$config->maxonlists.')" size="10">'; if (($config->restrictcon==1 && uddeIMisReggedOnly($my_gid)) || ($config->restrictcon==2 && uddeIMisAllNotAdmin($my_gid) && !uddeIMisAdmin2($my_gid, $config)) || ($config->restrictcon==3) ) { if ($lids) $temp = "u.id NOT IN (".uddeIMquoteSmart($lids).") AND "; $somanyfriends = 0; if (uddeIMcheckCB()) { $users = uddeIMselectCBbuddies($myself, $config, $temp); $somanyfriends = count($users); } if (!$somanyfriends) { // no friends found, maybe there are some in CBE? if (uddeIMcheckCBE()) { $users = uddeIMselectCBEbuddies($myself, $config, $temp); $somanyfriends = count($users); } if (uddeIMcheckCBE2()) { $users = uddeIMselectCBE2buddies($myself, $config, $temp); $somanyfriends = count($users); } } if (!$somanyfriends) { // no friends found, maybe there are some in JS? if (uddeIMcheckJS()) { $users = uddeIMselectJSbuddies($myself, $config, $temp); $somanyfriends = count($users); } } } else { if (uddeIMcheckJversion()>=2) { // J1.6 $temp = ""; if ($lids) $temp = "AND u.id NOT IN (".uddeIMquoteSmart($lids).") "; switch ($config->hideallusers) { case 3: // special users $sql="SELECT DISTINCT u.id,u.".($config->realnames ? "name" : "username")." AS displayname FROM (#__users AS u INNER JOIN #__user_usergroup_map AS um ON u.id=um.user_id) INNER JOIN #__usergroups AS g ON um.group_id=g.id WHERE u.block=0 ".$temp."AND g.id NOT IN (3,4,5,6,7,8".$add_admin.$add_special.") ORDER BY u.".($config->realnames ? "name" : "username"); break; case 2: // admins $sql="SELECT DISTINCT u.id,u.".($config->realnames ? "name" : "username")." AS displayname FROM (#__users AS u INNER JOIN #__user_usergroup_map AS um ON u.id=um.user_id) INNER JOIN #__usergroups AS g ON um.group_id=g.id WHERE u.block=0 ".$temp."AND g.id NOT IN (7,8".$add_admin.") ORDER BY u.".($config->realnames ? "name" : "username"); break; case 1: // superadmins $sql="SELECT DISTINCT u.id,u.".($config->realnames ? "name" : "username")." AS displayname FROM (#__users AS u INNER JOIN #__user_usergroup_map AS um ON u.id=um.user_id) INNER JOIN #__usergroups AS g ON um.group_id=g.id WHERE u.block=0 ".$temp."AND g.id NOT IN (8) ORDER BY u.".($config->realnames ? "name" : "username"); break; default: // none $sql="SELECT u.id,u.".($config->realnames ? "name" : "username")." AS displayname FROM #__users AS u WHERE u.block=0 ".$temp."ORDER BY u.".($config->realnames ? "name" : "username"); break; } if (uddeIMisAdmin($my_gid) || uddeIMisAdmin2($my_gid, $config)) // do not hide users when it is an admin $sql="SELECT u.id,u.".($config->realnames ? "name" : "username")." AS displayname FROM #__users AS u WHERE u.block=0 ".$temp."ORDER BY u.".($config->realnames ? "name" : "username"); } else { $temp = ""; if ($lids) $temp = "AND id NOT IN (".uddeIMquoteSmart($lids).") "; switch ($config->hideallusers) { case 3: // special users $sql="SELECT id,".($config->realnames ? "name" : "username")." AS displayname FROM #__users WHERE block=0 ".$temp."AND gid NOT IN (19,20,21,23,24,25".$add_admin.$add_special.") ORDER BY ".($config->realnames ? "name" : "username"); break; case 2: // admins $sql="SELECT id,".($config->realnames ? "name" : "username")." AS displayname FROM #__users WHERE block=0 ".$temp."AND gid NOT IN (24,25".$add_admin.") ORDER BY ".($config->realnames ? "name" : "username"); break; case 1: // superadmins $sql="SELECT id,".($config->realnames ? "name" : "username")." AS displayname FROM #__users WHERE block=0 ".$temp."AND gid NOT IN (25) ORDER BY ".($config->realnames ? "name" : "username"); break; default: // none $sql="SELECT id,".($config->realnames ? "name" : "username")." AS displayname FROM #__users WHERE block=0 ".$temp."ORDER BY ".($config->realnames ? "name" : "username"); break; } if (uddeIMisAdmin($my_gid) || uddeIMisAdmin2($my_gid, $config)) // do not hide users when it is an admin $sql="SELECT id,".($config->realnames ? "name" : "username")." AS displayname FROM #__users WHERE block=0 ".$temp."ORDER BY ".($config->realnames ? "name" : "username"); } $database->setQuery( $sql ); $users = $database->loadObjectList(); if (!$users) $users = Array(); } if ( count( $users ) ) { foreach ( $users as $user ) $ret .= '<option value="'.$user->id.'">'.$user->displayname.'</option>'; } $ret .= '</select>'; return $ret; }
function uddeIMshowSettings($option, $task, $usedlanguage, $pathtoadmin, $pathtouser, $uddeimversion, $config) { global $oldsetting_longwaitingemail; $database = uddeIMgetDatabase(); // ------------------------------------------------------------------------------------------------------- // Check for Attachment plugin $plugin_attachment = 0; if (uddeIMcheckVersionPlugin('attachment')) $plugin_attachment = 1; // Check for RSS plugin $plugin_rss = 0; if (uddeIMcheckVersionPlugin('rss')) $plugin_rss = 1; // Check for Public Frontend plugin $plugin_public = 0; if (uddeIMcheckVersionPlugin('pfrontend')) $plugin_public = 1; // Check for Spamcontrol plugin $plugin_spamcontrol = 0; if (uddeIMcheckVersionPlugin('spamcontrol')) $plugin_spamcontrol = 1; // Check for Message Center plugin $plugin_mcp = 0; if (uddeIMcheckVersionPlugin('mcp')) $plugin_mcp = 1; // Check for Postbox plugin $plugin_postbox = 0; if (uddeIMcheckVersionPlugin('postbox')) $plugin_postbox = 1; $is_cbe2 = uddeIMcheckCBE2(); $is_cbe = uddeIMcheckCBE(); $is_aup = uddeIMcheckAUP(); $is_cb = uddeIMcheckCB(); $is_fb = uddeIMcheckFB(); $is_ag = uddeIMcheckAG(); $is_ku = uddeIMcheckKU(); $is_nb = uddeIMcheckNB(); $is_js = uddeIMcheckJS(); $is_cm = uddeIMcheckCM(); // ------------------------------------------------------------------------------------------------------- if(!$config->emn_body_nomessage) $config->emn_body_nomessage=_UDDEIM_EMN_BODY_NOMESSAGE; if(!$config->emn_body_withmessage) $config->emn_body_withmessage=_UDDEIM_EMN_BODY_WITHMESSAGE; if(!$config->emn_forgetmenot) $config->emn_forgetmenot=_UDDEIM_EMN_FORGETMENOT; if(!$config->export_format) $config->export_format=_UDDEIM_EXPORT_FORMAT; $oldsetting_allowarchive = $config->allowarchive; $oldsetting_longwaitingemail = $config->longwaitingemail; // $sql = "SHOW FIELDS FROM #__uddeim_emn;"; // $database->setQuery($sql); // $rows = $database->loadObjectList(); // foreach ($rows as $row) { // if($row->Field=='status') { // $config->notifydefault = $row->Default; // break; // } // } ?> <form action="<?php echo uddeIMredirectIndex(); ?>" method="POST" name="adminForm" id="adminForm"> <input type="hidden" name="oldsetting_allowarchive" value="<?php echo $oldsetting_allowarchive; ?>" /> <input type="hidden" name="oldsetting_longwaitingemail" value="<?php echo $oldsetting_longwaitingemail; ?>" /> <input type="hidden" name="config_quotedivider" value="<?php echo $config->quotedivider; ?>" /> <input type="hidden" name="config_forgetmenotstart" value="<?php echo $config->forgetmenotstart; ?>" /> <div align="center"> <table cellpadding="4" cellspacing="0" border="0" width="98%"> <tr> <td class="sectionname" align="left"> <h4><?php echo _UDDEADM_SETTINGS; ?></h4> </td> <td align="left" width="25%"> <?php $plugin_error = 0; if (uddeIMcheckPlugin('poxtbox')) if (!uddeIMcheckVersionPlugin('postbox')) $plugin_error = 1; if (uddeIMcheckPlugin('mcp')) if (!uddeIMcheckVersionPlugin('mcp')) $plugin_error = 1; if (uddeIMcheckPlugin('spamcontrol')) if (!uddeIMcheckVersionPlugin('spamcontrol')) $plugin_error = 1; if (uddeIMcheckPlugin('rss')) if (!uddeIMcheckVersionPlugin('rss')) $plugin_error = 1; if (uddeIMcheckPlugin('pfrontend')) if (!uddeIMcheckVersionPlugin('pfrontend')) $plugin_error = 1; if (uddeIMcheckPlugin('attachment')) if (!uddeIMcheckVersionPlugin('attachment')) $plugin_error = 1; if ($plugin_error || $plugin_spamcontrol || $plugin_mcp || !$config->emailtrafficenabled) echo "<span style='padding: 3px'>"._UDDEADM_INFORMATION."</span><br />"; if ($plugin_mcp) { $sql = "SELECT count(id) FROM #__uddeim WHERE `delayed`!=0"; $database->setQuery($sql); $temp = (int)$database->loadResult(); echo "<span style='padding: 3px'><a href='".uddeIMredirectIndex()."?option=com_uddeim&task=mcp'>"._UDDEADM_MCP_STAT." ".$temp."</a></span><br />"; } if ($plugin_spamcontrol) { $sql = "SELECT count(a.id) FROM #__uddeim_spam AS a LEFT JOIN #__uddeim AS b ON a.mid = b.id"; $database->setQuery($sql); $temp = (int)$database->loadResult(); echo "<span style='padding: 3px'><a href='".uddeIMredirectIndex()."?option=com_uddeim&task=spamcontrol'>"._UDDEADM_SPAMCONTROL_STAT." ".$temp."</a></span><br />"; } if (!$config->emailtrafficenabled) { echo "<br /><span style='color: red; padding: 3px'>"._UDDEADM_EMAILSTOPPED."</span><br />"; } if ($plugin_error) { if (!uddeIMcheckVersionPlugin('postbox')) echo "<span style='color: red; padding: 3px'>"._UDDEADM_OOD_PB."</span><br />"; if (!uddeIMcheckVersionPlugin('mcp')) echo "<span style='color: red; padding: 3px'>"._UDDEADM_OOD_MCP."</span><br />"; if (!uddeIMcheckVersionPlugin('spamcontrol')) echo "<span style='color: red; padding: 3px'>"._UDDEADM_OOD_ASC."</span><br />"; if (!uddeIMcheckVersionPlugin('rss')) echo "<span style='color: red; padding: 3px'>"._UDDEADM_OOD_RSS."</span><br />"; if (!uddeIMcheckVersionPlugin('pfrontend')) echo "<span style='color: red; padding: 3px'>"._UDDEADM_OOD_PF."</span><br />"; if (!uddeIMcheckVersionPlugin('attachment')) echo "<span style='color: red; padding: 3px'>"._UDDEADM_OOD_A."</span><br />"; } ?> </td> <td align="right" width="10%"> <img align="middle" style="display: inline; border:1px solid lightgray;" src="<?php echo uddeIMgetPath('live_site')."/components/com_uddeim/templates/images/uddeim_logo.png"; ?>" width="150" height="75" /> </td> </tr> <tr> <td width="100%" colspan="3"> <?php // when the ftp layer is enabled it does not make any sense to ask if the file is writeable since this cannot be checked $configdatei = "/administrator/components/com_uddeim/config.class.php"; if (!uddeIMisFtpLayer()) { if (!uddeIMisWritable($configdatei)) { echo "<p><b><span style='color: red;'>"._UDDEADM_CONFIGNOTWRITEABLE." $configdatei</span></b></p>"; } else { echo "<p><b><span style='color: green;'>"._UDDEADM_CONFIGWRITEABLE." $configdatei</span></b></p>"; } } else { echo "<p><b><span style='color: blue;'>"._UDDEADM_CONFIG_FTPLAYER." $configdatei</span></b></p>"; } $ret = uddeIMcheckForValidDB($option, $task, $uddeimversion, $config); if (!$ret) echo "<p><b><span style='color: red;'>"._UDDEADM_UPDATEYOURDB."</span></b></p>"; ?> </td> </tr> </table> </div> <?php $adminstyle = ' style="border-top:1px solid lightgray"'; // ================================================================================================================== if (uddeIMcheckJversion()>=5) { // only Joomla 3.0, bug (not) fixed in Joomla 3.1 echo '<ul class="nav nav-tabs" id="submenu">'; echo ' <li class="active"><a data-toggle="tab" href="#home">'._UDDEADM_MESSAGES.'</a></li>'; echo ' <li><a data-toggle="tab" href="#display-tab">'._UDDEADM_DISPLAY.'</a></li>'; echo ' <li><a data-toggle="tab" href="#delete-tab">'._UDDEADM_DELETIONS.'</a></li>'; echo ' <li><a data-toggle="tab" href="#integration-tab">'._UDDEADM_INTEGRATION.'</a></li>'; echo ' <li><a data-toggle="tab" href="#email-tab">'._UDDEADM_EMAIL.'</a></li>'; echo ' <li><a data-toggle="tab" href="#block-tab">'._UDDEADM_BLOCK.'</a></li>'; echo ' <li><a data-toggle="tab" href="#archive-tab">'._UDDEADM_ARCHIVE.'</a></li>'; echo ' <li><a data-toggle="tab" href="#date-tab">'._UDDEADM_DATESETTINGS.'</a></li>'; if ($plugin_public) echo ' <li><a data-toggle="tab" href="#public-tab">'._UDDEADM_PUBLIC.'</a></li>'; echo ' <li><a data-toggle="tab" href="#system-tab">'._UDDEADM_SYSTEM.'</a></li>'; if ($config->pmsimportdone<=1) echo ' <li><a data-toggle="tab" href="#import-tab">'._UDDEADM_IMPORT.'</a></li>'; echo ' <li><a data-toggle="tab" href="#maintenance-tab">'._UDDEADM_MAINTENANCE.'</a></li>'; echo ' <li><a data-toggle="tab" href="#about-tab">'._UDDEADM_ABOUT.'</a></li>'; echo '</ul>'; } $tabs = new mosTabs( 1 ); $tabs->startPane( "uddeim" ); $tabs->startTab(_UDDEADM_MESSAGES,"home"); // $list = mosHTML::RadioList( $val, "config_xxx", " class='inputbox' size='2'", $config->xxx); // $list = mosHTML::yesnoRadioList("config_xxx", " class='inputbox' size='2'", $config->xxx); ?> <table width="100%" border="0" cellpadding="4" cellspacing="2" class="adminForm" id="adminForm"> <?php uddeIMadmText($config->maxlength, 4, 'config_maxlength', false, _UDDEADM_MAXLENGTH_HEAD, _UDDEADM_MAXLENGTH_EXP); ?> <?php uddeIMadmYesNo($config->replytext, 'config_replytext', false, _UDDEADM_REPLYTEXT_HEAD, _UDDEADM_REPLYTEXT_EXP); ?> <?php uddeIMadmYesNo($config->replytruncate, 'config_replytruncate', !$config->maxlength, _UDDEADM_TRUNCATE_HEAD, _UDDEADM_TRUNCATE_EXP); ?> <?php uddeIMadmYesNo($config->showtextcounter, 'config_showtextcounter', !$config->maxlength, _UDDEADM_SHOWTEXTCOUNTER_HEAD, _UDDEADM_SHOWTEXTCOUNTER_EXP); ?> <?php uddeIMadmSelect($config->allowbb, 'config_allowbb', Array('2'=>_UDDEADM_YES, '1'=>_UDDEADM_FONTFORMATONLY, '0'=>_UDDEADM_NO), false, _UDDEADM_ALLOWBB_HEAD, _UDDEADM_ALLOWBB_EXP); ?> <?php uddeIMadmSelect($config->realnames, 'config_realnames', Array('1'=>_UDDEADM_REALNAMES, '0'=>_UDDEADM_USERNAMES), false, _UDDEADM_NAMESTEXT, _UDDEADM_NAMESDESC); ?> <?php uddeIMadmYesNo($config->allowsmile, 'config_allowsmile', false, _UDDEADM_ALLOWSMILE_HEAD, _UDDEADM_ALLOWSMILE_EXP, $adminstyle); ?> <?php uddeIMadmYesNo($config->animated, 'config_animated', !$config->allowsmile, _UDDEADM_ANIMATED_HEAD, _UDDEADM_ANIMATED_EXP); ?> <?php uddeIMadmYesNo($config->animatedex, 'config_animatedex', !$config->allowsmile || !$config->animated, _UDDEADM_ANIMATEDEX_HEAD, _UDDEADM_ANIMATEDEX_EXP); ?> <?php uddeIMadmYesNo($config->trashoriginal, 'config_trashoriginal', false, _UDDEADM_TRASHORIGINAL_HEAD, _UDDEADM_TRASHORIGINAL_EXP, $adminstyle); ?> <?php uddeIMadmYesNo($config->trashoriginalsent, 'config_trashoriginalsent', false, _UDDEADM_TRASHORIGINALSENT_HEAD, _UDDEADM_TRASHORIGINALSENT_EXP); ?> <?php uddeIMadmYesNo($config->allowcopytome, 'config_allowcopytome', false, _UDDEADM_COPYTOME_HEAD, _UDDEADM_COPYTOME_EXP); ?> <?php uddeIMadmYesNo($config->allowforwards, 'config_allowforwards', false, _UDDEADM_ALLOWFORWARDS_HEAD, _UDDEADM_ALLOWFORWARDS_EXP); ?> <?php uddeIMadmYesNo($config->reportspam, 'config_reportspam', !$plugin_spamcontrol, _UDDEADM_REPORTSPAM_HEAD, _UDDEADM_REPORTSPAM_EXP.uddeIMnoPremium(!$plugin_spamcontrol)); ?> <?php uddeIMadmText($config->badwords, 40, 'config_badwords', false, _UDDEADM_BADWORDS_HEAD, _UDDEADM_BADWORDS_EXP); ?> <?php uddeIMadmYesNo($config->allowmultiplerecipients, 'config_allowmultiplerecipients', false, _UDDEADM_ALLOWMULTIPLERECIPIENTS_HEAD, _UDDEADM_ALLOWMULTIPLERECIPIENTS_EXP, $adminstyle); ?> <?php uddeIMadmText($config->maxrecipients, 4, 'config_maxrecipients', !$config->allowmultiplerecipients, _UDDEADM_MAXRECIPIENTS_HEAD, _UDDEADM_MAXRECIPIENTS_EXP); ?> <?php uddeIMadmYesNo($config->addccline, 'config_addccline', false, _UDDEADM_CC_HEAD, _UDDEADM_CC_EXP); ?> <?php uddeIMadmYesNo($config->allowmultipleuser, 'config_allowmultipleuser', !$config->allowmultiplerecipients, _UDDEADM_ALLOWMULTIPLEUSER_HEAD, _UDDEADM_ALLOWMULTIPLEUSER_EXP); ?> <?php uddeIMadmYesNo($config->connexallowmultipleuser, 'config_connexallowmultipleuser', (!$is_cb && !$is_cbe2) || !$config->allowmultiplerecipients, _UDDEADM_CBALLOWMULTIPLEUSER_HEAD, _UDDEADM_CBALLOWMULTIPLEUSER_EXP); ?> <?php uddeIMadmSelect($config->separator, 'config_separator', Array('1'=>_UDDEADM_SEPARATOR_P1, '0'=>_UDDEADM_SEPARATOR_P0), false, _UDDEADM_SEPARATOR_HEAD, _UDDEADM_SEPARATOR_EXP); ?> <?php uddeIMadmSelect($config->enablelists, 'config_enablelists', Array('3'=>_UDDEADM_ENABLELISTS_3, '2'=>_UDDEADM_ENABLELISTS_2, '1'=>_UDDEADM_ENABLELISTS_1, '0'=>_UDDEADM_ENABLELISTS_0), !$config->allowmultiplerecipients, _UDDEADM_ENABLELISTS_HEAD, _UDDEADM_ENABLELISTS_EXP, $adminstyle); ?> <?php uddeIMadmText($config->maxonlists, 4, 'config_maxonlists', !$config->enablelists || !$config->allowmultiplerecipients, _UDDEADM_MAXONLISTS_HEAD, _UDDEADM_MAXONLISTS_EXP); ?> <?php uddeIMadmSelect($config->restrictcon, 'config_restrictcon', Array('3'=>_UDDEADM_RESTRICTCON3, '2'=>_UDDEADM_RESTRICTCON2, '1'=>_UDDEADM_RESTRICTCON1, '0'=>_UDDEADM_RESTRICTCON0), (!$is_js && !$is_cb && !$is_cbe), _UDDEADM_RESTRICTCON_HEAD, _UDDEADM_RESTRICTCON_EXP); ?> <?php uddeIMadmYesNo($config->restrictrem, 'config_restrictrem', !$config->restrictcon, _UDDEADM_RESTRICTREM_HEAD, _UDDEADM_RESTRICTREM_EXP); ?> <?php uddeIMadmSelect($config->cryptmode, 'config_cryptmode', Array('4'=>_UDDEADM_CRYPT4, '3'=>_UDDEADM_CRYPT3, '2'=>_UDDEADM_CRYPT2, '1'=>_UDDEADM_CRYPT1, '0'=>_UDDEADM_CRYPT0), false, _UDDEADM_USEENCRYPTION, _UDDEADM_USEENCRYPTIONDESC, $adminstyle); ?> <?php uddeIMadmText($config->cryptkey, 30, 'config_cryptkey', $config->cryptmode==0, _UDDEADM_OBFUSCATING_HEAD, _UDDEADM_OBFUSCATING_EXP); // BUGBUG: also cryptmode==3 ?> </table> <?php $tabs->endTab(_UDDEADM_MESSAGES,"home"); // ================================================================================================================== $tabs->startTab(_UDDEADM_DISPLAY,"display-tab"); ?> <table width="100%" border="0" cellpadding="4" cellspacing="2" class="adminForm" id="adminForm"> <?php uddeIMadmText($config->showtitle, 30, 'config_showtitle', false, _UDDEADM_SHOWTITLE_HEAD, _UDDEADM_SHOWTITLE_EXP); ?> <?php $tdirs = Array(); $dir = $pathtouser."/templates"; if ($hd = opendir($dir)) { while ($sz = readdir($hd)) { if (!preg_match("/\./",$sz) && !preg_match("/images/",$sz)) $tdirs[] = $sz; } closedir($hd); } asort($tdirs); $remodir = Array(); foreach($tdirs as $tdir) { $lastdiradded=$tdir; $remodir[ $tdir ] = $tdir; } uddeIMadmSelect($config->templatedir, 'config_templatedir', $remodir, false, _UDDEADM_TEMPLATEDIR_HEAD, _UDDEADM_TEMPLATEDIR_EXP); ?> <?php uddeIMadmSelect($config->showmenuicons, 'config_showmenuicons', Array('1'=>_UDDEIM_MENUICONS_P1, '2'=>_UDDEIM_MENUICONS_P2, '3'=>_UDDEIM_MENUICONS_P3, '0'=>_UDDEIM_MENUICONS_P0), false, _UDDEADM_SHOWMENUICONS1_HEAD, _UDDEADM_SHOWMENUICONS1_EXP, $adminstyle); ?> <?php uddeIMadmYesNo($config->showmenucount, 'config_showmenucount', false, _UDDEADM_SHOWMENUCOUNT_HEAD, _UDDEADM_SHOWMENUCOUNT_EXP); ?> <?php uddeIMadmSelect($config->showsettingslink, 'config_showsettingslink', Array('2'=>_UDDEADM_SHOWSETTINGS_ATBOTTOM, '1'=>_UDDEADM_YES, '0'=>_UDDEADM_NO), false, _UDDEADM_SHOWSETTINGSLINK_HEAD, _UDDEADM_SHOWSETTINGSLINK_EXP); ?> <?php uddeIMadmYesNo($config->actionicons, 'config_actionicons', false, _UDDEADM_SHOWACTIONICONS_HEAD, _UDDEADM_SHOWACTIONICONS_EXP, $adminstyle); ?> <?php uddeIMadmYesNo($config->bottomlineicons, 'config_bottomlineicons', false, _UDDEADM_SHOWBOTTOMICONS_HEAD, _UDDEADM_SHOWBOTTOMICONS_EXP); ?> <?php uddeIMadmYesNo($config->showabout, 'config_showabout', false, _UDDEADM_SHOWABOUT_HEAD, _UDDEADM_SHOWABOUT_EXP); ?> <?php uddeIMadmYesNo($config->showhelp, 'config_showhelp', false, _UDDEADM_SHOWHELP_HEAD, _UDDEADM_SHOWHELP_EXP); ?> <?php uddeIMadmYesNo($config->allowflagged, 'config_allowflagged', false, _UDDEADM_ALLOWFLAGGED_HEAD, _UDDEADM_ALLOWFLAGGED_EXP, $adminstyle); ?> <?php uddeIMadmYesNo($config->enablereply, 'config_enablereply', false, _UDDEADM_PMNAV_HEAD, _UDDEADM_PMNAV_EXP); ?> <?php uddeIMadmSelect($config->enablefilter, 'config_enablefilter', Array('0'=>_UDDEADM_FILTER_P0, '1'=>_UDDEADM_FILTER_P1, '2'=>_UDDEADM_FILTER_P2, '3'=>_UDDEADM_FILTER_P3), false, _UDDEADM_FILTER_HEAD, _UDDEADM_FILTER_EXP, $adminstyle); ?> <?php uddeIMadmYesNo($config->enablesort, 'config_enablesort', false, _UDDEADM_ENABLESORT_HEAD, _UDDEADM_ENABLESORT_EXP); ?> <?php uddeIMadmText($config->perpage, 4, 'config_perpage', false, _UDDEADM_PERPAGE_HEAD, _UDDEADM_PERPAGE_EXP, "", $adminstyle); ?> <?php uddeIMadmText($config->firstwordsinbox, 4, 'config_firstwordsinbox', false, _UDDEADM_FIRSTWORDSINBOX_HEAD, _UDDEADM_FIRSTWORDSINBOX_EXP); ?> <tr align="center" valign="middle"> <td align="left" valign="top"> <strong><?php echo _UDDEADM_COLSROWS_HEAD; ?></strong> </td> <td align="left" valign="top"> <input type="text" name="config_cols" size="4" value="<?php echo uddeIMquotecode($config->cols); ?>" /> / <input type="text" name="config_rows" size="4" value="<?php echo uddeIMquotecode($config->rows); ?>" /> </td> <td align="left" valign="top" width="50%"> <?php echo _UDDEADM_COLSROWS_EXP; ?> </td> </tr> <?php uddeIMadmText($config->width, 4, 'config_width', false, _UDDEADM_WIDTH_HEAD, _UDDEADM_WIDTH_EXP); ?> <?php uddeIMadmSelect($config->modeshowallusers, 'config_modeshowallusers', Array('2'=>_UDDEADM_MODESHOWALLUSERS_2, '1'=>_UDDEADM_MODESHOWALLUSERS_1, '0'=>_UDDEADM_MODESHOWALLUSERS_0), false, _UDDEADM_MODESHOWALLUSERS_HEAD, _UDDEADM_MODESHOWALLUSERS_EXP, $adminstyle); ?> <?php uddeIMadmSelect($config->restrictallusers, 'config_restrictallusers', Array('0'=>_UDDEADM_RESTRALLUSERS_0, '1'=>_UDDEADM_RESTRALLUSERS_1, '2'=>_UDDEADM_RESTRALLUSERS_2), false, _UDDEADM_RESTRALLUSERS_HEAD, _UDDEADM_RESTRALLUSERS_EXP); ?> <?php uddeIMadmSelect($config->hideallusers, 'config_hideallusers', Array('3'=>_UDDEADM_HIDEALLUSERS_3, '2'=>_UDDEADM_HIDEALLUSERS_2, '1'=>_UDDEADM_HIDEALLUSERS_1, '0'=>_UDDEADM_HIDEALLUSERS_0), false, _UDDEADM_HIDEALLUSERS_HEAD, _UDDEADM_HIDEALLUSERS_EXP); ?> <?php uddeIMadmText($config->hideusers, 20, 'config_hideusers', false, _UDDEADM_HIDEUSERS_HEAD, _UDDEADM_HIDEUSERS_EXP); ?> <?php uddeIMadmYesNo($config->useautocomplete, 'config_useautocomplete', false, _UDDEADM_USEAUTOCOMPLETE_HEAD, _UDDEADM_USEAUTOCOMPLETE_EXP, $adminstyle); ?> <?php uddeIMadmYesNo($config->searchinstring, 'config_searchinstring', !$config->useautocomplete, _UDDEADM_SEARCHINSTRING_HEAD, _UDDEADM_SEARCHINSTRING_EXP); ?> </table> <?php $tabs->endTab(_UDDEADM_DISPLAY,"display-tab"); // ================================================================================================================== $tabs->startTab(_UDDEADM_DELETIONS,"delete-tab"); ?> <table width="100%" border="0" cellpadding="4" cellspacing="2" class="adminForm" id="adminForm"> <?php uddeIMadmYesNo($config->ReadMessagesLifespanNote, 'config_ReadMessagesLifespanNote', false, _UDDEADM_DELETEREADAFTERNOTE_HEAD, _UDDEADM_DELETEREADAFTERNOTE_EXP); ?> <?php uddeIMadmText($config->ReadMessagesLifespan, 4, 'config_ReadMessagesLifespan', false, _UDDEADM_DELETEREADAFTER_HEAD, _UDDEADM_DELETEREADAFTER_EXP, _UDDEADM_DAYS); ?> <?php uddeIMadmYesNo($config->UnreadMessagesLifespanNote, 'config_UnreadMessagesLifespanNote', false, _UDDEADM_DELETEUNREADAFTERNOTE_HEAD, _UDDEADM_DELETEUNREADAFTERNOTE_EXP, $adminstyle); ?> <?php uddeIMadmText($config->UnreadMessagesLifespan, 4, 'config_UnreadMessagesLifespan', false, _UDDEADM_DELETEUNREADAFTER_HEAD, _UDDEADM_DELETEUNREADAFTER_EXP, _UDDEADM_DAYS); ?> <?php uddeIMadmYesNo($config->SentMessagesLifespanNote, 'config_SentMessagesLifespanNote', false, _UDDEADM_DELETESENTAFTERNOTE_HEAD, _UDDEADM_DELETESENTAFTERNOTE_EXP, $adminstyle); ?> <?php uddeIMadmText($config->SentMessagesLifespan, 4, 'config_SentMessagesLifespan', false, _UDDEADM_DELETESENTAFTER_HEAD, _UDDEADM_DELETESENTAFTER_EXP, _UDDEADM_DAYS); ?> <?php uddeIMadmYesNo($config->TrashLifespanNote, 'config_TrashLifespanNote', false, _UDDEADM_DELETETRASHAFTERNOTE_HEAD, _UDDEADM_DELETETRASHAFTERNOTE_EXP, $adminstyle); ?> <?php uddeIMadmText($config->TrashLifespan, 4, 'config_TrashLifespan', false, _UDDEADM_DELETETRASHAFTER_HEAD, _UDDEADM_DELETETRASHAFTER_EXP, _UDDEADM_DAYS); ?> <?php uddeIMadmSelect($config->trashrestriction, 'config_trashrestriction', Array('0'=>_UDDEADM_NOTRASHACCESS_0, '1'=>_UDDEADM_NOTRASHACCESS_1, '2'=>_UDDEADM_NOTRASHACCESS_2), false, _UDDEADM_NOTRASHACCESS_HEAD, _UDDEADM_NOTRASHACCESS_EXP); ?> </table> <?php $tabs->endTab(_UDDEADM_DELETIONS,"delete-tab"); // ================================================================================================================== $tabs->startTab(_UDDEADM_INTEGRATION,"integration-tab"); ?> <table width="100%" border="0" cellpadding="4" cellspacing="2" class="adminForm" id="adminForm"> <?php uddeIMadmYesNo($config->showonline, 'config_showonline', false, _UDDEADM_SHOWONLINE_HEAD, _UDDEADM_SHOWONLINE_EXP); ?> <?php uddeIMadmYesNo($config->allowpopup, 'config_allowpopup', false, _UDDEADM_POPUP_HEAD, _UDDEADM_POPUP_EXP); ?> <?php uddeIMadmYesNo($config->popupdefault, 'config_popupdefault', false, _UDDEADM_POPUPDEFAULT_HEAD, _UDDEADM_POPUPDEFAULT_EXP); ?> <tr align="center" valign="middle"> <td align="left" valign="top"<?php echo $adminstyle; ?>> <strong><?php echo _UDDEADM_SHOWLINK_HEAD; ?></strong> </td> <td align="left" valign="top"<?php echo $adminstyle; ?>> <?php if ($is_ku) $cbl[] = mosHTML::makeOption( '12', _UDDEADM_KUNENA30 ); if ($is_ku) $cbl[] = mosHTML::makeOption( '11', _UDDEADM_KUNENA20 ); if ($is_nb) $cbl[] = mosHTML::makeOption( '10', _UDDEADM_NINJABOARD ); if ($is_ku) $cbl[] = mosHTML::makeOption( '9', _UDDEADM_KUNENA16 ); if ($is_cm) $cbl[] = mosHTML::makeOption( '8', _UDDEADM_JOOCM ); if ($is_aup) $cbl[] = mosHTML::makeOption( '7', _UDDEADM_AUP ); if ($is_js) $cbl[] = mosHTML::makeOption( '6', _UDDEADM_JOMSOCIAL ); if ($is_ku) $cbl[] = mosHTML::makeOption( '5', _UDDEADM_KUNENA ); if ($is_cbe2) $cbl[] = mosHTML::makeOption( '4', _UDDEADM_CBE ); if ($is_ag) $cbl[] = mosHTML::makeOption( '3', _UDDEADM_AGORA ); if ($is_fb) $cbl[] = mosHTML::makeOption( '2', _UDDEADM_FIREBOARD ); if ($is_cb) $cbl[] = mosHTML::makeOption( '1', _UDDEADM_CB ); // and CBE (old) $cbl[] = mosHTML::makeOption( '0', _UDDEADM_DISABLED ); $list_cbl = mosHTML::selectList( $cbl, 'config_showcblink', 'class="inputbox" size="1"', 'value', 'text', $config->showcblink ); echo $list_cbl; ?> </td> <td align="left" valign="top" width="50%"<?php echo $adminstyle; ?>> <?php echo _UDDEADM_SHOWLINK_EXP; ?> </td> </tr> <tr align="center" valign="middle"> <td align="left" valign="top"> <strong><?php echo _UDDEADM_SHOWMENULINK_HEAD; ?></strong> </td> <td align="left" valign="top"> <?php if ($is_ku) $sml[] = mosHTML::makeOption( '12', _UDDEADM_KUNENA30 ); if ($is_ku) $sml[] = mosHTML::makeOption( '11', _UDDEADM_KUNENA20 ); if ($is_ku) $sml[] = mosHTML::makeOption( '9', _UDDEADM_KUNENA16 ); if ($is_ku) $sml[] = mosHTML::makeOption( '5', _UDDEADM_KUNENA ); $sml[] = mosHTML::makeOption( '0', _UDDEADM_DISABLED ); $list_sml = mosHTML::selectList( $sml, 'config_showmenulink', 'class="inputbox" size="1"', 'value', 'text', $config->showmenulink ); echo $list_sml; ?> </td> <td align="left" valign="top" width="50%"> <?php echo _UDDEADM_SHOWMENULINK_EXP; ?> </td> </tr> <tr align="center" valign="middle"> <td align="left" valign="top"> <strong><?php echo _UDDEADM_SHOWPIC_HEAD; ?></strong> </td> <td align="left" valign="top"> <?php if ($is_ku) $cbp[] = mosHTML::makeOption( '12', _UDDEADM_KUNENA30 ); if ($is_ku) $cbp[] = mosHTML::makeOption( '11', _UDDEADM_KUNENA20 ); if ($is_nb) $cbp[] = mosHTML::makeOption( '10', _UDDEADM_NINJABOARD ); if ($is_ku) $cbp[] = mosHTML::makeOption( '9', _UDDEADM_KUNENA16 ); if ($is_cm) $cbp[] = mosHTML::makeOption( '8', _UDDEADM_JOOCM ); if ($is_aup) $cbp[] = mosHTML::makeOption( '7', _UDDEADM_AUP ); if ($is_js) $cbp[] = mosHTML::makeOption( '6', _UDDEADM_JOMSOCIAL ); if ($is_ku) $cbp[] = mosHTML::makeOption( '5', _UDDEADM_KUNENA ); if ($is_cbe2) $cbp[] = mosHTML::makeOption( '4', _UDDEADM_CBE ); if ($is_ag) $cbp[] = mosHTML::makeOption( '3', _UDDEADM_AGORA ); if ($is_fb) $cbp[] = mosHTML::makeOption( '2', _UDDEADM_FIREBOARD ); if ($is_cb) $cbp[] = mosHTML::makeOption( '1', _UDDEADM_CB ); $cbp[] = mosHTML::makeOption( '0', _UDDEADM_DISABLED ); $list_cbp = mosHTML::selectList( $cbp, 'config_showcbpic', 'class="inputbox" size="1"', 'value', 'text', $config->showcbpic ); echo $list_cbp; ?> </td> <td align="left" valign="top" width="50%"> <?php echo _UDDEADM_SHOWPIC_EXP; ?> </td> </tr> <?php uddeIMadmYesNo($config->getpiclink, 'config_getpiclink', (!$is_cb && !$is_cbe2 && !$is_fb && !$is_ag && !$is_ku && !$is_cm && !$is_nb && !$is_js && !$is_aup), _UDDEADM_THUMBLISTS_HEAD, _UDDEADM_THUMBLISTS_EXP); ?> <tr align="center" valign="middle"> <td align="left" valign="top"> <strong><?php echo _UDDEADM_AVATARWH_HEAD; ?></strong> </td> <td align="left" valign="top"> <input type="text" name="config_avatarw" size="4" value="<?php echo uddeIMquotecode($config->avatarw); ?>" /> / <input type="text" name="config_avatarh" size="4" value="<?php echo uddeIMquotecode($config->avatarh); ?>" /> </td> <td align="left" valign="top" width="50%"> <?php echo _UDDEADM_AVATARWH_EXP; ?> </td> </tr> <?php uddeIMadmYesNo($config->showconnex, 'config_showconnex', (!$is_js && !$is_cb && !$is_cbe2), _UDDEADM_SHOWCONNEX_HEAD, _UDDEADM_SHOWCONNEX_EXP); ?> <?php uddeIMadmSelect($config->connex_listbox, 'config_connex_listbox', Array('1'=>_UDDEADM_LISTBOX, '0'=>_UDDEADM_TABLE), false, _UDDEADM_CONLISTBOX, _UDDEADM_CONLISTBOXDESC); ?> <?php uddeIMadmYesNo($config->CBgallery, 'config_CBgallery', (!$is_cb && !$is_cbe2), _UDDEADM_CBGALLERY_HEAD, _UDDEADM_CBGALLERY_EXP, $adminstyle); ?> <?php uddeIMadmYesNo($config->checkbanned, 'config_checkbanned', (!$is_cb && !$is_cbe2), _UDDEADM_CBBANNED_HEAD, _UDDEADM_CBBANNED_EXP); ?> <?php uddeIMadmYesNo($config->gravatar, 'config_gravatar', (!$is_cb && !$is_cbe && !$is_cbe2 && !$is_fb && !$is_ag && !$is_ku && !$is_nb && !$is_cm), _UDDEADM_GRAVATAR_HEAD, _UDDEADM_GRAVATAR_EXP, $adminstyle); ?> <tr align="center" valign="middle"> <td align="left" valign="top"> <?php echo uddeIMprintCond((!$config->gravatar || $is_nb), _UDDEADM_GRAVATARD_HEAD, "gray", true); ?> </td> <td align="left" valign="top"> <?php $grd[] = mosHTML::makeOption( '404', _UDDEADM_GR404 ); $grd[] = mosHTML::makeOption( 'mm', _UDDEADM_GRMM ); $grd[] = mosHTML::makeOption( 'identicon', _UDDEADM_GRIDENTICON ); $grd[] = mosHTML::makeOption( 'monsterid', _UDDEADM_GRMONSTERID ); $grd[] = mosHTML::makeOption( 'wavatar', _UDDEADM_GRWAVATAR ); $grd[] = mosHTML::makeOption( 'retro', _UDDEADM_GRRETRO ); $grd[] = mosHTML::makeOption( '', _UDDEADM_GRDEFAULT ); $list_grd = mosHTML::selectList( $grd, 'config_gravatard', 'class="inputbox" size="1"', 'value', 'text', $config->gravatard ); echo $list_grd; ?> </td> <td align="left" valign="top" width="50%"> <?php echo uddeIMprintCond((!$config->gravatar || $is_nb), _UDDEADM_GRAVATARD_EXP, "gray", false); ?> </td> </tr> <tr align="center" valign="middle"> <td align="left" valign="top"> <?php echo uddeIMprintCond((!$config->gravatar || $is_nb), _UDDEADM_GRAVATARR_HEAD, "gray", true); ?> </td> <td align="left" valign="top"> <?php $grr[] = mosHTML::makeOption( 'g', _UDDEADM_GRG ); $grr[] = mosHTML::makeOption( 'pg', _UDDEADM_GRPG ); $grr[] = mosHTML::makeOption( 'r', _UDDEADM_GRR ); $grr[] = mosHTML::makeOption( 'x', _UDDEADM_GRX ); $list_grr = mosHTML::selectList( $grr, 'config_gravatarr', 'class="inputbox" size="1"', 'value', 'text', $config->gravatarr ); echo $list_grr; ?> </td> <td align="left" valign="top" width="50%"> <?php echo uddeIMprintCond((!$config->gravatar || $is_nb), _UDDEADM_GRAVATARR_EXP, "gray", false); ?> </td> </tr> </table> <?php $tabs->endTab(_UDDEADM_INTEGRATION,"integration-tab"); // ================================================================================================================== $tabs->startTab(_UDDEADM_EMAIL,"email-tab"); ?> <table width="100%" border="0" cellpadding="4" cellspacing="2" class="adminForm" id="adminForm"> <?php uddeIMadmSelect($config->allowemailnotify, 'config_allowemailnotify', Array('2'=>_UDDEADM_ADMINSONLY, '1'=>_UDDEADM_YES, '0'=>_UDDEADM_NO), false, _UDDEADM_ALLOWEMAILNOTIFY_HEAD, _UDDEADM_ALLOWEMAILNOTIFY_EXP); ?> <?php uddeIMadmSelect($config->notifydefault, 'config_notifydefault', Array('2'=>_UDDEADM_NOTIFYDEF_2, '1'=>_UDDEADM_NOTIFYDEF_1, '0'=>_UDDEADM_NOTIFYDEF_0), false, _UDDEADM_NOTIFYDEFAULT_HEAD, _UDDEADM_NOTIFYDEFAULT_EXP); ?> <?php uddeIMadmSelect($config->emailwithmessage, 'config_emailwithmessage', Array('2'=>_UDDEADM_ADDEMAIL_ADMIN, '1'=>_UDDEADM_YES, '0'=>_UDDEADM_NO), false, _UDDEADM_EMAILWITHMESSAGE_HEAD, _UDDEADM_EMAILWITHMESSAGE_EXP); ?> <?php uddeIMadmYesNo($config->longwaitingemail, 'config_longwaitingemail', false, _UDDEADM_LONGWAITINGEMAIL_HEAD, _UDDEADM_LONGWAITINGEMAIL_EXP, $adminstyle); ?> <?php uddeIMadmText($config->longwaitingdays, 4, 'config_longwaitingdays', !$config->longwaitingemail, _UDDEADM_LONGWAITINGDAYS_HEAD, _UDDEADM_LONGWAITINGDAYS_EXP, _UDDEADM_DAYS); ?> <?php uddeIMadmText($config->emn_sendername, 20, 'config_emn_sendername', false, _UDDEADM_EMN_SENDERNAME_HEAD, _UDDEADM_EMN_SENDERNAME_EXP, '', $adminstyle); ?> <?php $temp = _UDDEADM_EMN_SENDERMAIL_EXP; if ($config->mailsystem==1) { // mosMail if (preg_match("/[\w\.\-]+@\w+[\w\.\-]*?\.\w+/", $config->emn_sendermail )==false) { $temp .= _UDDEADM_EMN_SENDERMAIL_WARNING; } } uddeIMadmText($config->emn_sendermail, 20, 'config_emn_sendermail', false, _UDDEADM_EMN_SENDERMAIL_HEAD, $temp); ?> <?php uddeIMadmSelect($config->autoresponder, 'config_autoresponder', Array('2'=>_UDDEADM_ADMINSONLY, '1'=>_UDDEADM_YES, '0'=>_UDDEADM_NO), false, _UDDEADM_AUTORESPONDER_HEAD, _UDDEADM_AUTORESPONDER_EXP, $adminstyle); ?> <?php uddeIMadmSelect($config->autoforward, 'config_autoforward', Array('2'=>_UDDEADM_ADMINSONLY, '3'=>_UDDEADM_AUTOFORWARD_SPECIAL, '1'=>_UDDEADM_YES, '0'=>_UDDEADM_NO), false, _UDDEADM_AUTOFORWARD_HEAD, _UDDEADM_AUTOFORWARD_EXP); ?> <?php uddeIMadmYesNo($config->dontsefmsglink, 'config_dontsefmsglink', false, _UDDEADM_DONTSEFMSGLINK_HEAD, _UDDEADM_DONTSEFMSGLINK_EXP, $adminstyle); ?> <?php uddeIMadmSelect($config->emailtrafficenabled, 'config_emailtrafficenabled', Array('0'=>_UDDEADM_YES, '1'=>_UDDEADM_NO), false, _UDDEADM_STOPALLEMAIL_HEAD, _UDDEADM_STOPALLEMAIL_EXP, $adminstyle); ?> </table> <?php $tabs->endTab(_UDDEADM_EMAIL,"email-tab"); // ================================================================================================================== $tabs->startTab(_UDDEADM_BLOCK,"block-tab"); ?> <table width="100%" border="0" cellpadding="4" cellspacing="2" class="adminForm" id="adminForm"> <?php uddeIMadmYesNo($config->blocksystem, 'config_blocksystem', false, _UDDEADM_BLOCKSYSTEM_HEAD, _UDDEADM_BLOCKSYSTEM_EXP); ?> <?php uddeIMadmYesNo($config->blockalert, 'config_blockalert', !$config->blocksystem, _UDDEADM_BLOCKALERT_HEAD, _UDDEADM_BLOCKALERT_EXP); ?> <?php $xxx = explode(",", $config->blockgroups); if ($xxx==FALSE) $xxx = Array(); ?> <tr align="center" valign="middle"> <td align="left" valign="top"<?php echo $adminstyle; ?>> <strong><?php echo _UDDEADM_BLOCKGROUPS_HEAD; ?></strong> </td> <td align="left" valign="top"<?php echo $adminstyle; ?>> <?php echo '<table border="0" cellpadding="0" cellspacing="0"><tr>'; if (uddeIMcheckJversion()>=2) { $query = "SELECT id, title AS name FROM #__usergroups ORDER BY id"; } elseif (uddeIMcheckJversion()>=1) { $query = "SELECT id, name FROM #__core_acl_aro_groups WHERE id NOT IN ( 17, 28, 29, 30 ) ORDER BY id"; } else { $query = "SELECT group_id AS id, name FROM #__core_acl_aro_groups WHERE group_id NOT IN ( 17, 28, 29, 30 ) ORDER BY group_id"; } $database->setQuery( $query ); $usergroups = $database->loadObjectList(); $numofcol = 1; $count = 0; foreach($usergroups as $usergroup) { $checked = ''; if (in_array($usergroup->id,$xxx)) $checked = 'checked="checked"'; $count++; echo '<td><input style="float:none;" type="checkbox" name="config_blockgroups['.$count.']" '.$checked.' value="'.$usergroup->id.'" id="cb'.$count.'" class="inputbox" /><label style="margin-left:4px;display:inline;float:none;" for="cb'.$count.'">'.$usergroup->name.'</label></td>'; if (!($count % $numofcol)) echo '</tr><tr>'; } $addcol = $numofcol - ($count % $numofcol); if ($addcol < $numofcol) for ($i=0; $i<$addcol; $i++) echo '<td> </td>'; echo '</tr></table>'; ?> </td> <td align="left" valign="top" width="50%"<?php echo $adminstyle; ?>> <?php echo _UDDEADM_BLOCKGROUPS_EXP; ?> </td> </tr> <?php uddeIMadmYesNo($config->unblockCBconnections, 'config_unblockCBconnections', false, _UDDEADM_UNBLOCKCB_HEAD, _UDDEADM_UNBLOCKCB_EXP); ?> <?php $xxx = explode(",", $config->pubblockgroups); if ($xxx==FALSE) $xxx = Array(); ?> <tr align="center" valign="middle"> <td align="left" valign="top"> <?php echo uddeIMprintCond(!$config->pubfrontend || !$plugin_public, _UDDEADM_PUBBLOCKGROUPS_HEAD, "gray", true); ?> </td> <td align="left" valign="top"> <?php echo '<table border="0" cellpadding="0" cellspacing="0"><tr>'; if (uddeIMcheckJversion()>=2) $query = "SELECT id, title AS name FROM #__usergroups ORDER BY id"; else if (uddeIMcheckJversion()>=1) $query = "SELECT id, name FROM #__core_acl_aro_groups WHERE id NOT IN ( 17, 28, 29, 30 ) ORDER BY id"; else $query = "SELECT group_id AS id, name FROM #__core_acl_aro_groups WHERE group_id NOT IN ( 17, 28, 29, 30 ) ORDER BY group_id"; $database->setQuery( $query ); $usergroups = $database->loadObjectList(); $numofcol = 1; $count = 0; foreach($usergroups as $usergroup) { $checked = ''; if (in_array($usergroup->id,$xxx)) $checked = 'checked="checked"'; $count++; echo '<td><input style="float:none;" type="checkbox" name="config_pubblockgroups['.$count.']" '.$checked.' value="'.$usergroup->id.'" id="pcb'.$count.'" class="inputbox" /><label style="margin-left:4px;display:inline;float:none;" for="pcb'.$count.'">'.$usergroup->name.'</label></td>'; if (!($count % $numofcol)) echo '</tr><tr>'; } $addcol = $numofcol - ($count % $numofcol); if ($addcol < $numofcol) for ($i=0; $i<$addcol; $i++) echo '<td> </td>'; echo '</tr></table>'; ?> </td> <td align="left" valign="top" width="50%"> <?php echo uddeIMprintCond(!$config->pubfrontend || !$plugin_public, _UDDEADM_PUBBLOCKGROUPS_EXP.uddeIMnoPremium(!$plugin_public), "gray"); ?> </td> </tr> </table> <?php $tabs->endTab(_UDDEADM_BLOCK,"block-tab"); // ================================================================================================================== $tabs->startTab(_UDDEADM_ARCHIVE,"archive-tab"); ?> <table width="100%" border="0" cellpadding="4" cellspacing="2" class="adminForm" id="adminForm"> <?php uddeIMadmYesNo($config->allowarchive, 'config_allowarchive', false, _UDDEADM_ALLOWARCHIVE_HEAD, _UDDEADM_ALLOWARCHIVE_EXP); ?> <?php uddeIMadmText($config->maxarchive, 4, 'config_maxarchive', false, _UDDEADM_MAXARCHIVE_HEAD, _UDDEADM_MAXARCHIVE_EXP); ?> <?php uddeIMadmYesNo($config->inboxlimit, 'config_inboxlimit', false, _UDDEADM_INBOXLIMIT_HEAD, _UDDEADM_INBOXLIMIT_EXP); ?> <?php uddeIMadmYesNo($config->showinboxlimit, 'config_showinboxlimit', false, _UDDEADM_SHOWINBOXLIMIT_HEAD, _UDDEADM_SHOWINBOXLIMIT_EXP); ?> <?php uddeIMadmYesNo($config->enabledownload, 'config_enabledownload', !$config->allowarchive, _UDDEADM_ENABLEDOWNLOAD_HEAD, _UDDEADM_ENABLEDOWNLOAD_EXP); ?> </table> <?php $tabs->endTab(_UDDEADM_ARCHIVE, "archive-tab"); // ================================================================================================================== $tabs->startTab(_UDDEADM_DATESETTINGS,"date-tab"); ?> <table width="100%" border="0" cellpadding="4" cellspacing="2" class="adminForm id="adminForm"> <?php $df = Array(); $df[ 'j M, H:i' ] = '5 Aug, 22:40'; $df[ 'j. M H:i' ] = '5. Aug 22:40'; $df[ 'j. M, H:i' ] = '5. Aug, 22:40'; $df[ 'j M y, H:i' ] = '5 Aug 07, 22:40'; $df[ 'j. M y H:i' ] = '5. Aug 07 22:40'; $df[ 'j. M y, H:i' ] = '5. Aug 07, 22:40'; $df[ 'M j, H:i' ] = 'Aug 5, 22:40'; $df[ 'M j, h:i a' ] = 'Aug 5, 10:40 pm'; $df[ 'Y-m-d H:i' ] = '2007-08-05 22:40'; $df[ 'm/d/y h:i a' ] = '08/05/07 10:40 pm'; uddeIMadmSelect($config->datumsformat, 'config_datumsformat', $df, false, _UDDEADM_DATEFORMAT_HEAD, _UDDEADM_DATEFORMAT_EXP); ?> <?php $ldf = Array(); $ldf[ 'j M, H:i' ] = '5 Aug, 22:40'; $ldf[ 'j. M H:i' ] = '5. Aug 22:40'; $ldf[ 'j. M, H:i' ] = '5. Aug, 22:40'; $ldf[ 'j F, H:i' ] = '5 August, 22:40'; $ldf[ 'j. F H:i' ] = '5. August 22:40'; $ldf[ 'j. F, H:i' ] = '5. August, 22:40'; $ldf[ 'j F Y, H:i' ] = '5 August 2007, 22:40'; $ldf[ 'j. F Y H:i' ] = '5. August 2007 22:40'; $ldf[ 'j. F Y, H:i' ] = '5. August 2007, 22:40'; $ldf[ 'M j, H:i' ] = 'Aug 5, 22:40'; $ldf[ 'M j, h:i a' ] = 'Aug 5, 10:40 pm'; $ldf[ 'F j, Y - H:i' ] = 'August 5, 2007 - 22:40'; $ldf[ 'F j, Y - h:i a' ] = 'August 5, 2007 - 10:40 pm'; $ldf[ 'Y-m-d H:i' ] = '2007-08-05 22:40'; $ldf[ 'm/d/y h:i a' ] = '08/05/07 10:40 pm'; $ldf[ 'D, j M - H:i' ] = 'Tue, 5 Aug - 22:40'; $ldf[ 'D, j. M - H:i' ] = 'Tue, 5. Aug - 22:40'; $ldf[ 'D, M j - H:i' ] = 'Tue, Aug 5 - 22:40'; $ldf[ 'D, M j - h:i a' ] = 'Tue, Aug 5 - 10:40 pm'; $ldf[ 'l, j. F - H:i' ] = 'Tuesday, 5. August - 22:40'; $ldf[ 'l, j. F - h:i a' ] = 'Tuesday, 5. August - 10:40 pm'; $ldf[ 'l, j. F Y - H:i' ] = 'Tuesday, 5. August 2007 - 22:40'; $ldf[ 'l, F j - H:i' ] = 'Tuesday, August 5 - 22:40'; $ldf[ 'l, F j - h:i a' ] = 'Tuesday, August 5 - 10:40 pm'; $ldf[ 'l, F j, Y - H:i' ] = 'Tuesday, August 5, 2005 - 22:40'; $ldf[ 'l, \d\e\n j F Y, H:i' ] = 'Tuesday, den 5 August 2007, 22:40'; $ldf[ 'l, \d\e\n j. F Y, H:i' ] = 'Tuesday, den 5. August 2007, 22:40'; uddeIMadmSelect($config->ldatumsformat, 'config_ldatumsformat', $ldf, false, _UDDEADM_LDATEFORMAT_HEAD, _UDDEADM_LDATEFORMAT_EXP); ?> <?php uddeIMadmText($config->timezone, 4, 'config_timezone', false, _UDDEADM_TIMEZONE_HEAD, _UDDEADM_TIMEZONE_EXP, '', $adminstyle); uddeIMadmYesNo($config->stime, 'config_stime', false, _UDDEADM_STIME_HEAD, _UDDEADM_STIME_EXP); ?> </table> <?php $tabs->endTab(_UDDEADM_DATESETTINGS, "date-tab"); // ================================================================================================================== if ($plugin_public) { $tabs->startTab(_UDDEADM_PUBLIC,"public-tab"); ?> <table width="100%" border="0" cellpadding="4" cellspacing="2" class="adminForm" id="adminForm"> <?php uddeIMadmYesNo($config->pubfrontend, 'config_pubfrontend', false, _UDDEADM_PUBFRONTEND_HEAD, _UDDEADM_PUBFRONTEND_EXP); ?> <?php uddeIMadmSelect($config->pubfrontenddefault, 'config_pubfrontenddefault', Array('1'=>_UDDEADM_PUBDEF1, '0'=>_UDDEADM_PUBDEF0), !$config->pubfrontend, _UDDEADM_PUBFRONTENDDEF_HEAD, _UDDEADM_PUBFRONTENDDEF_EXP); ?> <?php uddeIMadmSelect($config->pubmodeshowallusers, 'config_pubmodeshowallusers', Array('2'=>_UDDEADM_MODESHOWALLUSERS_2, '1'=>_UDDEADM_MODESHOWALLUSERS_1, '0'=>_UDDEADM_MODESHOWALLUSERS_0), !$config->pubfrontend, _UDDEADM_PUBMODESHOWALLUSERS_HEAD, _UDDEADM_PUBMODESHOWALLUSERS_EXP); ?> <?php uddeIMadmSelect($config->pubrealnames, 'config_pubrealnames', Array('1'=>_UDDEADM_REALNAMES, '0'=>_UDDEADM_USERNAMES), !$config->pubfrontend, _UDDEADM_PUBNAMESTEXT, _UDDEADM_PUBNAMESDESC); ?> <?php uddeIMadmSelect($config->pubhideallusers, 'config_pubhideallusers', Array('3'=>_UDDEADM_HIDEALLUSERS_3, '2'=>_UDDEADM_HIDEALLUSERS_2, '1'=>_UDDEADM_HIDEALLUSERS_1, '0'=>_UDDEADM_HIDEALLUSERS_0), !$config->pubfrontend, _UDDEADM_PUBHIDEALLUSERS_HEAD, _UDDEADM_PUBHIDEALLUSERS_EXP); ?> <?php uddeIMadmText($config->pubhideusers, 20, 'config_pubhideusers', !$config->pubfrontend, _UDDEADM_PUBHIDEUSERS_HEAD, _UDDEADM_PUBHIDEUSERS_EXP); ?> <?php uddeIMadmYesNo($config->pubemail, 'config_pubemail', !$config->pubemail, _UDDEADM_PUBEMAIL_HEAD, _UDDEADM_PUBEMAIL_EXP); ?> <?php uddeIMadmYesNo($config->pubreplies, 'config_pubreplies', !$config->pubfrontend, _UDDEADM_PUBREPLYS_HEAD, _UDDEADM_PUBREPLYS_EXP); ?> <?php uddeIMadmYesNo($config->modpubusers, 'config_modpubusers', !$config->pubfrontend, _UDDEADM_MODPUBUSERS_HEAD, _UDDEADM_MODNEWUSERS_EXP); ?> <?php uddeIMadmYesNo($config->pubuseautocomplete, 'config_pubuseautocomplete', !$config->pubfrontend, _UDDEADM_USEAUTOCOMPLETE_HEAD, _UDDEADM_USEAUTOCOMPLETE_EXP, $adminstyle); ?> <?php uddeIMadmYesNo($config->pubsearchinstring, 'config_pubsearchinstring', !$config->pubuseautocomplete, _UDDEADM_SEARCHINSTRING_HEAD, _UDDEADM_SEARCHINSTRING_EXP); ?> </table> <?php $tabs->endTab(_UDDEADM_PUBLIC, "public-tab"); } // ================================================================================================================== $tabs->startTab(_UDDEADM_SYSTEM,"system-tab"); ?> <table width="100%" border="0" cellpadding="4" cellspacing="2" class="adminForm" id="adminForm"> <?php $temp = _UDDEADM_ADMINIGNITIONONLY_EXP."<br />"; $temp .= "<a href=".uddeIMredirectIndex()."?option=com_uddeim&task=maintenanceprune>"._UDDEADM_MAINTENANCE_PRUNE."</a>"; uddeIMadmSelect($config->adminignitiononly, 'config_adminignitiononly', Array('1'=>_UDDEADM_ADMINIGNITIONONLY_YES, '0'=>_UDDEADM_ADMINIGNITIONONLY_NO, '2'=>_UDDEADM_ADMINIGNITIONONLY_MANUALLY), false, _UDDEADM_ADMINIGNITIONONLY_HEAD, $temp); ?> <?php uddeIMadmSelect($config->allowsysgm, 'config_allowsysgm', Array('2'=>_UDDEADM_ALLOWTOALL2_2, '1'=>_UDDEADM_ALLOWTOALL2_1, '0'=>_UDDEADM_ALLOWTOALL2_0), false, _UDDEADM_ALLOWTOALL2_HEAD, _UDDEADM_ALLOWTOALL2_EXP); ?> <?php uddeIMadmYesNo($config->showgroups, 'config_showgroups', !$config->allowsysgm, _UDDEADM_SHOWGROUPS_HEAD, _UDDEADM_SHOWGROUPS_EXP); ?> <?php uddeIMadmText($config->groupsadmin, 20, 'config_groupsadmin', false, _UDDEADM_GROUPSADMIN_HEAD, _UDDEADM_GROUPSADMIN_EXP); ?> <?php uddeIMadmText($config->groupsspecial, 20, 'config_groupsspecial', false, _UDDEADM_GROUPSSPECIAL_HEAD, _UDDEADM_GROUPSSPECIAL_EXP); ?> <?php uddeIMadmSelect($config->mailsystem, 'config_mailsystem', Array('1'=>_UDDEADM_MAILSYSTEM_MOSMAIL, '0'=>_UDDEADM_MAILSYSTEM_PHPMAIL), false, _UDDEADM_MAILSYSTEM_HEAD, _UDDEADM_MAILSYSTEM_EXP); ?> <?php uddeIMadmText($config->sysm_username, 20, 'config_sysm_username', false, _UDDEADM_SYSM_USERNAME_HEAD, _UDDEADM_SYSM_USERNAME_EXP); ?> <?php uddeIMadmSelect($config->usecaptcha, 'config_usecaptcha', Array('4'=>_UDDEADM_CAPTCHAF4, '3'=>_UDDEADM_CAPTCHAF3, '2'=>_UDDEADM_CAPTCHAF2, '1'=>_UDDEADM_CAPTCHAF1, '0'=>_UDDEADM_CAPTCHAF0), false, _UDDEADM_USECAPTCHA_HEAD, _UDDEADM_USECAPTCHA_EXP, $adminstyle); ?> <?php uddeIMadmText($config->captchalen, 4, 'config_captchalen', !$config->usecaptcha, _UDDEADM_CAPTCHALEN_HEAD, _UDDEADM_CAPTCHALEN_EXP); ?> <?php uddeIMadmSelect($config->captchatype, 'config_captchatype', Array('1'=>_UDDEADM_CAPTCHA_RECAPTCHA, '0'=>_UDDEADM_CAPTCHA_INTERNAL), !$config->usecaptcha, _UDDEADM_CAPTCHATYPE_HEAD, _UDDEADM_CAPTCHATYPE_EXP); ?> <?php uddeIMadmText($config->recaptchapub, 40, 'config_recaptchapub', !$config->usecaptcha, _UDDEADM_RECAPTCHAPUB_HEAD, _UDDEADM_RECAPTCHAPUB_EXP); ?> <?php uddeIMadmText($config->recaptchaprv, 40, 'config_recaptchaprv', !$config->usecaptcha, _UDDEADM_RECAPTCHAPRV_HEAD, _UDDEADM_RECAPTCHAPRV_EXP); ?> <?php uddeIMadmYesNo($config->csrfprotection, 'config_csrfprotection', false, _UDDEADM_CSRFPROTECTION_HEAD, _UDDEADM_CSRFPROTECTION_EXP); ?> <?php uddeIMadmText($config->timedelay, 4, 'config_timedelay', false, _UDDEADM_TIMEDELAY_HEAD, _UDDEADM_TIMEDELAY_EXP, _UDDEADM_SECONDS, $adminstyle); ?> <?php uddeIMadmText($config->waitdays, 4, 'config_waitdays', false, _UDDEADM_WAITDAYS_HEAD, _UDDEADM_WAITDAYS_EXP, _UDDEADM_DAYS); ?> <?php uddeIMadmText($config->charset, 10, 'config_charset', false, _UDDEADM_CHARSET_HEAD, _UDDEADM_CHARSET_EXP, '', $adminstyle); ?> <?php uddeIMadmText($config->mailcharset, 10, 'config_mailcharset', false, _UDDEADM_MAILCHARSET_HEAD, _UDDEADM_MAILCHARSET_EXP); ?> <?php uddeIMadmYesNo($config->encodeheader, 'config_encodeheader', false, _UDDEADM_ENCODEHEADER_HEAD, _UDDEADM_ENCODEHEADER_EXP); ?> <?php uddeIMadmSelect($config->languagecharset, 'config_languagecharset', Array('1'=>_UDDEADM_LANGUAGECHARSET_UTF8, '0'=>_UDDEADM_LANGUAGECHARSET_DEFAULT), false, _UDDEADM_LANGUAGECHARSET_HEAD, _UDDEADM_LANGUAGECHARSET_EXP); ?> <?php uddeIMadmSelect($config->mootools, 'config_mootools', Array('7'=>_UDDEADM_MOOTOOLS_13MEIO, '6'=>_UDDEADM_MOOTOOLS_NONEMEIO, '5'=>_UDDEADM_MOOTOOLS_NONE12, '4'=>_UDDEADM_MOOTOOLS_NONE11, '3'=>_UDDEADM_MOOTOOLS_2, '2'=>_UDDEADM_MOOTOOLS_1, '1'=>_UDDEADM_MOOTOOLS_AUTO, '0'=>_UDDEADM_MOOTOOLS_NONE), false, _UDDEADM_MOOTOOLS_HEAD, _UDDEADM_MOOTOOLS_EXP, $adminstyle); ?> <?php $temp = _UDDEADM_OVERWRITEITEMID_EXP." "; $found = uddeIMgetItemidComponent("com_uddeim", $config); // $gid = uddeIMgetGroupID2($config); // $sql="SELECT id FROM #__menu WHERE link LIKE '%com_uddeim%' AND published=1 AND access".($gid==0 ? "=" : "<=").$gid; // if (uddeIMcheckJversion()>=2) { // J1.6 // $lang = JFactory::getLanguage(); // $sql.=" AND language IN (" . $database->Quote($lang->get('tag')) . ",'*')"; // } // $sql.=" LIMIT 1"; // $database->setQuery($sql); // $found = (int)$database->loadResult(); // if (!$found) { // $sql="SELECT id FROM #__menu WHERE link LIKE '%com_uddeim%' AND published=0 AND access".($gid==0 ? "=" : "<=").$gid; // if (uddeIMcheckJversion()>=2) { // J1.6 // $lang = JFactory::getLanguage(); // $sql.=" AND language IN (" . $database->Quote($lang->get('tag')) . ",'*')"; // } // $sql.=" LIMIT 1"; // $database->setQuery($sql); // $found = (int)$database->loadResult(); // } $temp .= _UDDEADM_OVERWRITEITEMID_CURRENT.$found; uddeIMadmYesNo($config->overwriteitemid, 'config_overwriteitemid', false, _UDDEADM_OVERWRITEITEMID_HEAD, $temp, $adminstyle); ?> <?php uddeIMadmText($config->useitemid, 4, 'config_useitemid', !$config->overwriteitemid, _UDDEADM_USEITEMID_HEAD, _UDDEADM_USEITEMID_EXP); ?> <?php $arss = Array(); if ($plugin_rss) { $arss['2'] = _UDDEADM_ADMINSONLY; $arss['1'] = _UDDEADM_YES; } $arss['0'] = _UDDEADM_NO; uddeIMadmSelect($config->enablerss, 'config_enablerss', $arss, false, _UDDEADM_ENABLERSS_HEAD, _UDDEADM_ENABLERSS_EXP.uddeIMnoPremium(!$plugin_rss), $adminstyle); ?> <?php uddeIMadmYesNo($config->showigoogle, 'config_showigoogle', !$config->enablerss, _UDDEADM_SHOWIGOOGLE_HEAD, _UDDEADM_SHOWIGOOGLE_EXP); ?> <?php uddeIMadmText($config->rsslimit, 4, 'config_rsslimit', !$config->enablerss, _UDDEADM_RSSLIMIT_HEAD, _UDDEADM_RSSLIMIT_EXP); ?> <?php uddeIMadmYesNo($config->enableattachment, 'config_enableattachment', false, _UDDEADM_ENABLEATTACHMENT_HEAD, _UDDEADM_ENABLEATTACHMENT_EXP.uddeIMnoPremium(!$plugin_attachment), $adminstyle); ?> <?php uddeIMadmYesNo($config->unprotectdownloads, 'config_unprotectdownloads', false, _UDDEADM_UNPROTECTATTACHMENT_HEAD, _UDDEADM_UNPROTECTATTACHMENT_EXP); ?> <?php uddeIMadmYesNo($config->showlistattachment, 'config_showlistattachment', !$config->enableattachment, _UDDEADM_SHOWLISTATTACHMENT_HEAD, _UDDEADM_SHOWLISTATTACHMENT_EXP); ?> <?php $xxx = explode(",", $config->attachmentgroups); if ($xxx==FALSE) $xxx = Array(); ?> <tr align="center" valign="middle"> <td align="left" valign="top"> <?php echo uddeIMprintCond(!$config->enableattachment, _UDDEADM_ATTACHMENTGROUPS_HEAD, "gray", true); ?> </td> <td align="left" valign="top"> <?php echo '<table border="0" cellpadding="0" cellspacing="0"><tr>'; if (uddeIMcheckJversion()>=2) $query = "SELECT id, title AS name FROM #__usergroups ORDER BY id"; else if (uddeIMcheckJversion()>=1) $query = "SELECT id, name FROM #__core_acl_aro_groups WHERE id NOT IN ( 17, 28, 29, 30 ) ORDER BY id"; else $query = "SELECT group_id AS id, name FROM #__core_acl_aro_groups WHERE group_id NOT IN ( 17, 28, 29, 30 ) ORDER BY group_id"; $database->setQuery( $query ); $usergroups = $database->loadObjectList(); $numofcol = 1; $count = 0; foreach($usergroups as $usergroup) { $checked = ''; if (in_array($usergroup->id,$xxx)) $checked = 'checked="checked"'; $count++; echo '<td>'; // if (!$config->enableattachment) echo "<span style='color: gray;'>"; echo '<input style="float:none;" type="checkbox" name="config_attachmentgroups['.$count.']" '.$checked.' value="'.$usergroup->id.'" id="cb'.$count.'" class="inputbox" /><label style="margin-left:4px;display:inline;float:none;" for="cb'.$count.'">'.$usergroup->name.'</label>'; // if (!$config->enableattachment) echo "</span>"; echo '</td>'; if (!($count % $numofcol)) echo '</tr><tr>'; } $addcol = $numofcol - ($count % $numofcol); if ($addcol < $numofcol) for ($i=0; $i<$addcol; $i++) echo '<td> </td>'; echo '</tr></table>'; ?> </td> <td align="left" valign="top" width="50%"> <?php echo uddeIMprintCond(!$config->enableattachment, _UDDEADM_ATTACHMENTGROUPS_EXP, "gray", false); ?> </td> </tr> <?php uddeIMadmText($config->maxsizeattachment, 10, 'config_maxsizeattachment', !$config->enableattachment, _UDDEADM_MAXSIZEATTACHMENT_HEAD, _UDDEADM_MAXSIZEATTACHMENT_EXP); ?> <?php uddeIMadmText($config->allowedextensions, 40, 'config_allowedextensions', !$config->enableattachment, _UDDEADM_ALLOWEDEXTENSIONS_HEAD, _UDDEADM_ALLOWEDEXTENSIONS_EXP); ?> <?php $amatt = Array(); $amatt['3'] = "3"; $amatt['2'] = "2"; $amatt['1'] = "1"; uddeIMadmSelect($config->maxattachments, 'config_maxattachments', $amatt, !$config->enableattachment, _UDDEADM_MAXATTACHMENTS_HEAD, _UDDEADM_MAXATTACHMENTS_EXP.uddeIMnoPremium(!$plugin_attachment)); ?> <?php $temp = _UDDEADM_FILEADMINIGNITIONONLY_EXP."<br />"; $temp .= "<a href=".uddeIMredirectIndex()."?option=com_uddeim&task=filemaintenanceprune>"._UDDEADM_FILEMAINTENANCE_PRUNE."</a>"; uddeIMadmSelect($config->fileadminignitiononly, 'config_fileadminignitiononly', Array('1'=>_UDDEADM_FILEADMINIGNITIONONLY_YES, '0'=>_UDDEADM_FILEADMINIGNITIONONLY_NO, '2'=>_UDDEADM_FILEADMINIGNITIONONLY_MANUALLY), !$config->enableattachment, _UDDEADM_FILEADMINIGNITIONONLY_HEAD, $temp); ?> <?php uddeIMadmYesNo($config->modnewusers, 'config_modnewusers', !$plugin_mcp, _UDDEADM_MODNEWUSERS_HEAD, _UDDEADM_MODNEWUSERS_EXP.uddeIMnoPremium(!$plugin_mcp), $adminstyle); ?> <?php uddeIMadmYesNo($config->enablepostbox, 'config_enablepostbox', !$plugin_postbox, _UDDEADM_POSTBOX_HEAD, _UDDEADM_POSTBOX_EXP.uddeIMnoPremium(!$plugin_postbox), $adminstyle); ?> <?php uddeIMadmSelect($config->postboxfull, 'config_postboxfull', Array('2'=>_UDDEADM_POSTBOXFULL_2, '1'=>_UDDEADM_POSTBOXFULL_1, '0'=>_UDDEADM_POSTBOXFULL_0), !$config->enablepostbox, _UDDEADM_POSTBOXFULL_HEAD, _UDDEADM_POSTBOXFULL_EXP); ?> <?php uddeIMadmYesNo($config->postboxavatars, 'config_postboxavatars', !$config->enablepostbox, _UDDEADM_POSTBOXAVATARS_HEAD, _UDDEADM_POSTBOXAVATARS_EXP); ?> </table> <?php $tabs->endTab(_UDDEADM_SYSTEM, "system-tab"); // ================================================================================================================== if ($config->pmsimportdone<=1) { // PMS found or already imported (=2 means suppress this tab, set when no PMS is found) $tabs->startTab(_UDDEADM_IMPORT,"import-tab"); ?> <table width="100%" border="0" cellpadding="4" cellspacing="2" class="adminForm" id="adminForm"> <tr align="center" valign="middle"> <td align="left" valign="top"> <h2><?php echo _UDDEADM_IMPORT_HEADER; ?></h2> <?php echo _UDDEADM_IMPORT_HELP; ?> </td> </tr> <tr align="center" valign="middle"> <td align="left" valign="top"> <?php $pmsfounds = uddeIMcheckPMStype(); echo "<p>"._UDDEADM_PMSFOUND."</p>"; echo "<p>"; foreach ($pmsfounds as $pmsfound) { $importlink = "<a href=".uddeIMredirectIndex()."?option=com_uddeim&task=importpms&act=".(int)$pmsfound.">"._UDDEADM_IMPORT_CAPS."</a>"; echo $importlink.": ".uddeIMnamePMS($pmsfound)." ("; switch($pmsfound) { case 1: $sql = "SELECT count(id) FROM #__pms"; break; case 2: $sql = "SELECT count(id) FROM #__pms"; break; case 3: $sql = "SELECT count(id) FROM #__jim"; break; case 4: $sql = "SELECT count(id) FROM #__abim_data"; break; case 5: $sql = "SELECT count(*) FROM #__jam AS m LEFT JOIN #__jam_receivers AS r ON r.mid=m.id WHERE draft=0"; break; case 6: $sql = "SELECT count(id) FROM #__mypms"; break; case 7: $sql = "SELECT count(m.id) FROM #__missus AS m JOIN #__missus_receipt AS r WHERE m.id = r.id AND m.is_draft=0"; break; case 8: $sql = "SELECT count(id) FROM #__primezilla_inbox;"; break; case 9: $sql = "SELECT count(id) FROM #__pms"; break; case 10: $sql = "SELECT count(id) FROM #__mypms"; break; case 11: $sql = "SELECT count(id) FROM #__jim"; break; case 12: $sql = "SELECT count(id) FROM #__pms"; break; case 13: $sql = "SELECT count(*) FROM #__community_msg_recepient"; break; case 14: $sql = "SELECT count(n) FROM #__messaging"; break; case 15: $sql = "SELECT count(id) FROM #__cdpuremessenger"; break; } $database->setQuery($sql); $allpms=(int)$database->loadResult(); echo $allpms." "._UDDEADM_MESSAGES.") "; $count = 5000; if ($allpms>$count) { $cnt = 1; echo _UDDEADM_IMPORT_PARTIAL." "; for ($start = 0; $start < $allpms; $start+=$count) { $importlink = "<a href='".uddeIMredirectIndex()."?option=com_uddeim&task=importpms&act=".(int)$pmsfound."&importstart=".(int)$start."&importcount=".(int)$count."'>[".$cnt++."]</a> "; echo $importlink; } } echo "<br />"; } echo "</p>"; echo "<p> </p>"; $oldpmsimportdone = $config->pmsimportdone; if (!empty($pmsfounds)) { switch($config->pmsimportdone) { case 2: // this should not happen here since tab is not visible when pmsimportdone=2 case 1: echo "<p>"._UDDEADM_ALREADYIMPORTED."</p>"; break; } } else { switch($config->pmsimportdone) { case 1: echo "<p>"._UDDEADM_PMSNOTFOUND."</p>"; $config->pmsimportdone=2; break; case 2: echo "<p>"._UDDEADM_PMSNOTFOUND."</p>"; break; // this should not happen here since tab is not visible when pmsimportdone=2 default: echo "<p>"._UDDEADM_PMSNOTFOUND."</p>"; $config->pmsimportdone=2; // ok, we can suppress the import tab next time break; } } if ($oldpmsimportdone!=$config->pmsimportdone) { uddeIMsaveConfig($pathtoadmin, $config); } ?> </td> </tr> </table> <?php $tabs->endTab(_UDDEADM_IMPORT, "import-tab"); } // ================================================================================================================== $tabs->startTab(_UDDEADM_MAINTENANCE,"maintenance-tab"); ?> <table width="100%" border="0" cellpadding="4" cellspacing="2" class="adminForm" id="adminForm"> <tr align="center" valign="middle"> <td align="left" valign="top"> <strong><?php echo _UDDEADM_MAINTENANCE_HEAD; ?></strong> </td> <td align="left" valign="top"> <?php echo "<a href=".uddeIMredirectIndex()."?option=com_uddeim&task=maintenance&act=check>"._UDDEADM_MAINTENANCE_CHECK."</a> "; echo "<a href=".uddeIMredirectIndex()."?option=com_uddeim&task=maintenance&act=trash>"._UDDEADM_MAINTENANCE_TRASH."</a> "; ?> </td> <td align="left" valign="top" width="50%"> <?php echo _UDDEADM_MAINTENANCE_EXP; ?> </td> </tr> <tr align="center" valign="middle"> <td align="left" valign="top"> <strong><?php echo _UDDEADM_MAINTENANCEDEL_HEAD; ?></strong> </td> <td align="left" valign="top"> <?php echo "<a href=".uddeIMredirectIndex()."?option=com_uddeim&task=maintenanceprune>"._UDDEADM_MAINTENANCEDEL_ERASE."</a>"; ?> </td> <td align="left" valign="top" width="50%"> <?php echo _UDDEADM_MAINTENANCEDEL_EXP; ?> </td> </tr> <tr align="center" valign="middle"> <td align="left" valign="top"> <strong><?php echo _UDDEADM_FILEMAINTENANCEDEL_HEAD; ?></strong> </td> <td align="left" valign="top"> <?php echo "<a href=".uddeIMredirectIndex()."?option=com_uddeim&task=filemaintenanceprune>"._UDDEADM_FILEMAINTENANCEDEL_ERASE."</a>"; ?> </td> <td align="left" valign="top" width="50%"> <?php echo _UDDEADM_FILEMAINTENANCEDEL_EXP; ?> </td> </tr> <?php if (uddeIMcheckJversion()>0) { ?> <tr align="center" valign="middle"> <td align="left" valign="top"> <strong><?php echo _UDDEADM_MAINTENANCEFIX_HEAD; ?></strong> </td> <td align="left" valign="top"> <?php echo "<a href=".uddeIMredirectIndex()."?option=com_uddeim&task=maintenancefix&act=check>"._UDDEADM_MAINTENANCE_CHECK."</a> "; echo "<a href=".uddeIMredirectIndex()."?option=com_uddeim&task=maintenancefix&act=fix>"._UDDEADM_MAINTENANCE_FIX."</a> "; ?> </td> <td align="left" valign="top" width="50%"> <?php echo _UDDEADM_MAINTENANCEFIX_EXP; ?> </td> </tr> <?php } ?> <?php $query = "SELECT value FROM #__uddeim_config WHERE varname='_backupdate'"; $database->setQuery($query); $backupdate = $database->loadResult(); ?> <tr align="center" valign="middle"> <td align="left" valign="top"> <strong><?php echo _UDDEADM_BACKUPRESTORE_HEAD; ?></strong> </td> <td align="left" valign="top"> <?php echo "<a href=".uddeIMredirectIndex()."?option=com_uddeim&task=backuprestore&act=backup>"._UDDEADM_BACKUPRESTORE_BACKUP."</a> "; if ($backupdate) echo "<a href=".uddeIMredirectIndex()."?option=com_uddeim&task=backuprestore&act=restore>"._UDDEADM_BACKUPRESTORE_RESTORE."</a> "; ?> </td> <td align="left" valign="top" width="50%"> <?php echo _UDDEADM_BACKUPRESTORE_EXP; if ($backupdate) echo "<br />"._UDDEADM_BACKUPRESTORE_DATE.$backupdate; ?> </td> </tr> <tr align="center" valign="middle"> <td align="left" valign="top"> <strong><?php echo _UDDEADM_VERSIONCHECK_HEAD; ?></strong> </td> <td align="left" valign="top"> <?php echo "<a href=".uddeIMredirectIndex()."?option=com_uddeim&task=versioncheck>"._UDDEADM_VERSIONCHECK_CHECK."</a>"; ?> </td> <td align="left" valign="top" width="50%"> <?php echo _UDDEADM_VERSIONCHECK_EXP; ?> </td> </tr> <tr align="center" valign="middle"> <td align="left" valign="top"> <strong><?php echo _UDDEADM_STATISTICS_HEAD; ?></strong> </td> <td align="left" valign="top"> <?php echo "<a href=".uddeIMredirectIndex()."?option=com_uddeim&task=showstatistics>"._UDDEADM_STATISTICS_CHECK."</a>"; ?> </td> <td align="left" valign="top" width="50%"> <?php echo _UDDEADM_STATISTICS_EXP; ?> </td> </tr> </table> <?php $tabs->endTab(_UDDEADM_MAINTENANCE, "maintenance-tab"); // ================================================================================================================== $tabs->startTab(_UDDEADM_ABOUT,"about-tab"); ?> <table width="100%" border="0" cellpadding="4" cellspacing="2" class="adminForm" id="adminForm"> <tr align="center" valign="middle"> <td align="left" valign="top"> <h2>uddeIM</h2> <?php echo "<p><span style='color: red;'>".$uddeimversion."</span></p>\n"; ?> <p><b>uddeIM (Instant Messsages)</b><br /> PMS component for Mambo and Joomla<br /> © 2007-2014 Stephan Slabihoud, © 2005-2006 by Benjamin Zweifel</p> <p>Language file: <?php echo $usedlanguage; ?></p> <?php echo "<p>"._UDDEADM_TRANSLATORS_CREDITS."</p>"; ?> <p><b>Thanks in advance...</b><br /> You can use and distribute uddeIM freely, but if you really find it useful, a small donation would be very appreciated. uddeIM is the result of hard work, spending hours developing and testing this component. If you feel that you would like to give a donation for your use of uddeIM, or just because you want to support uddeIM for future updates, please make a small donation using the Paypal buttons below.</p> <p>This version is based on uddeIM 0.5b which has been written by Benjamin Zweifel in 2006.</p> <p>uddeIM comes with absolutely no warranty.<br /> For details, see the license at <a href="http://www.gnu.org/licenses/gpl.txt">www.gnu.org/licenses/gpl.txt</a>.</p> <input type="hidden" name="config_version" value="<?php echo $config->version; ?>" /> <input type="hidden" name="config_pmsimportdone" value="<?php echo $config->pmsimportdone; ?>" /> </td> </tr> </table> <?php $tabs->endTab(_UDDEADM_ABOUT, "about-tab"); // ================================================================================================================== $tabs->endPane(); ?> <input type="hidden" name="option" value="<?php echo $option; ?>" /> <input type="hidden" name="task" value="<?php echo $task;?>" /> <input type="hidden" name="boxchecked" value="0" /> <input type="hidden" name="hidemainmenu" value="0" /> </form> <br clear=all> <?php }