// mosMenuBar::customX( 'backuprestore', 'archive.png', 'archive_f2.png', 'Backup & Restore', false ); if (uddeIMcheckPlugin('mcp')) if (uddeIMcheckVersionPlugin('mcp')) mosMenuBar::customX( 'mcp', 'edit.png', 'edit_f2.png', _UDDEIM_TOOLBAR_MCP, false ); if (uddeIMcheckPlugin('spamcontrol')) if (uddeIMcheckVersionPlugin('spamcontrol')) mosMenuBar::customX( 'spamcontrol', 'edit.png', 'edit_f2.png', _UDDEIM_TOOLBAR_SPAMCONTROL, false ); mosMenuBar::customX( 'usersettings', 'edit.png', 'edit_f2.png', _UDDEIM_TOOLBAR_USERSETTINGS, false ); mosMenuBar::save( 'savesettings', _UDDEIM_TOOLBAR_SAVE ); // mosMenuBar::customX( 'usersettings', 'edit.png', 'edit_f2.png', 'User settings', false ); // mosMenuBar::save( 'savesettings', 'Save' ); mosMenuBar::cancel(); mosMenuBar::spacer(); mosMenuBar::endTable(); } else { mosMenuBar::startTable(); if (uddeIMcheckPlugin('mcp')) if (uddeIMcheckVersionPlugin('mcp')) mosMenuBar::custom( 'mcp', 'edit.png', 'edit_f2.png', _UDDEIM_TOOLBAR_MCP, false ); if (uddeIMcheckPlugin('spamcontrol')) if (uddeIMcheckVersionPlugin('spamcontrol')) mosMenuBar::custom( 'spamcontrol', 'edit.png', 'edit_f2.png', _UDDEIM_TOOLBAR_SPAMCONTROL, false ); mosMenuBar::custom( 'usersettings', 'edit.png', 'edit_f2.png', _UDDEIM_TOOLBAR_USERSETTINGS, false ); mosMenuBar::save( 'savesettings', _UDDEIM_TOOLBAR_SAVE ); mosMenuBar::cancel(); mosMenuBar::spacer(); mosMenuBar::endTable(); } break; }
if ($task=="rss") { include_once($plugin); if (uddeIMcheckVersionPlugin('rss')) uddeIMrssFeedPlugin($versionstring, $userid, $config); exit; } } } else { $config->enablerss = 0; } // check if public frontend is called if ($plugin=uddeIMcheckPlugin('pfrontend')) { if ($config->pubfrontend && !$userid) { include_once($plugin); if (uddeIMcheckVersionPlugin('pfrontend')) uddeIMpublicFrontendPlugin($versionstring, $pathtouser, $pathtosite, $config); return; // exit the script here, so no more output is produced } } else { $config->pubfrontend = 0; } // No access if not logged in, and bye if (!$userid) { $mosmsg = _UDDEIM_NOTLOGGEDIN; echo($mosmsg); return; } if (uddeIMisReggedOnly($usergid)) { // only banned registered users cannot use uddeIM
function uddeIMversioncheck($option, $task, $checkversion, $checkhotfix) { $current_version = explode('.', $checkversion); $current_major = (int) $current_version[0]; $current_minor = (int) $current_version[1]; $current_hotfix = (int) $checkhotfix; $live_site = uddeIMgetPath("live_site"); echo "<div style='text-align:left'>"; echo "<p><b>"._UDDEADM_VERSIONCHECK."</b></p>"; $premium = ""; if (uddeIMcheckVersionPlugin('postbox')) $premium .= "1"; else $premium .= "0"; if (uddeIMcheckVersionPlugin('attachment')) $premium .= "1"; else $premium .= "0"; if (uddeIMcheckVersionPlugin('rss')) $premium .= "1"; else $premium .= "0"; if (uddeIMcheckVersionPlugin('pfrontend')) $premium .= "1"; else $premium .= "0"; if (uddeIMcheckVersionPlugin('spamcontrol')) $premium .= "1"; else $premium .= "0"; if (uddeIMcheckVersionPlugin('mcp')) $premium .= "1"; else $premium .= "0"; $admin = uddeIMgetMailFrom(); $parm = "?ver=".$current_major.".".$current_minor."&hotfix=".$current_hotfix."&premium=".$premium."&admin=".urlencode($admin)."&site=".urlencode($live_site); $handle = @fopen("http://www.slabihoud.de/checkuddeimupdate.php".$parm, "rb"); if ($handle) { $version_info = ""; while (!feof($handle)) $version_info .= @fread($handle, 8192); @fclose($handle); $version_info = explode("\n", $version_info); $latest_structure = (int) $version_info[0]; // This is for $latest_structure==1 $latest_major = (int) $version_info[1]; $latest_minor = (int) $version_info[2]; $latest_hotfix = (int) $version_info[3]; $t1 = trim($version_info[4]); $l1 = trim($version_info[5]); $t2 = trim($version_info[6]); $l2 = trim($version_info[7]); $t3 = trim($version_info[8]); $l3 = trim($version_info[9]); $t4 = trim($version_info[10]); $l4 = trim($version_info[11]); $t5 = trim($version_info[12]); $l5 = trim($version_info[13]); $tfree = trim($version_info[14]); $latest_info = trim($version_info[15]); $important = trim($version_info[16]); if (!$latest_info) $latest_info = _UDDEADM_VERSIONCHECK_NONE; $cur_hotfixtext = ""; if ($current_hotfix) $cur_hotfixtext = " "._UDDEADM_VERSIONCHECK_HOTFIX." ".$current_hotfix; $lat_hotfixtext = ""; if ($latest_hotfix) $lat_hotfixtext = " "._UDDEADM_VERSIONCHECK_HOTFIX." ".$latest_hotfix; $latest = 1000*$latest_major + 10*$latest_minor + $latest_hotfix; $current = 1000*$current_major + 10*$current_minor + $current_hotfix; if ($latest<=$current) { echo "<p style='color:green'>"._UDDEADM_VERSIONCHECK_USING." ".$checkversion.$cur_hotfixtext.".</p>"; echo "<p style='color:green'>"._UDDEADM_VERSIONCHECK_LATEST."</p>"; echo "<p>".$important."</p>"; } else { echo "<p style='color:red'>"._UDDEADM_VERSIONCHECK_USING." ".$checkversion.$cur_hotfixtext.".</p>"; echo "<p style='color:red'>"._UDDEADM_VERSIONCHECK_CURRENT." ".$latest_major.".".$latest_minor.$lat_hotfixtext.".</p>"; echo "<p>"._UDDEADM_VERSIONCHECK_INFO."<br />".$latest_info."</p>"; echo "<p>".$important."</p>"; } if ($t1 || $t2 || $t3 || $t4 || $t5) { $bar = Array(); for ($i=1; $i<=5; $i++) { $ttemp = "t{$i}"; $ltemp = "l{$i}"; if ($$ttemp) $bar[] = "<a href='".$$ltemp."' target='_new'>".$$ttemp."</a>"; } echo "<p>"._UDDEADM_VERSIONCHECK_IMPORTANT."<br />"; echo implode(" | ", $bar)."</p>"; } } else { echo "<b><span style='color: red;'>"._UDDEADM_VERSIONCHECK_ERROR." $configdatei</span></b>"; } echo "<p><b><a href=".uddeIMredirectIndex()."?option=com_uddeim>"._UDDEADM_CONTINUE."</a></b></p>"; echo "</div>"; }