Пример #1
0
	case "unblockuser":
		uddeIMunblockUserUdde($userid, $item_id, $recip, $ret, $config);
		break;

	case "reportspam":
		uddeIMreportSpam($userid, $item_id, $messageid, $recip, $ret, $limit, $limitstart, $config);
		break;

	case "unreportspam":
		uddeIMunreportSpam($userid, $item_id, $messageid, $recip, $ret, $limit, $limitstart, $config);
		break;

	case "settings":
		uddeIMemit("onSettings", Array( "userid" => $userid ) );
		uddeIMshowSettings($userid, $item_id, $config);
		break;

	case "about":
		uddeIMemit("onAbout", Array( "userid" => $userid ) );
		uddeIMshowAbout($userid, $item_id, $versionstring, $usedlanguage, $config);
		break;

	case "help":
		uddeIMemit("onHelp", Array( "userid" => $userid ) );
		uddeIMshowHelp($userid, $item_id, $versionstring, $config);
		break;

	case "saveemn":
		uddeIMsaveEMN($userid, $item_id, $emailradio, $emailreplycheck, $config);
		break;
Пример #2
0
		break;

	case "backuprestore":
		uddeIMbackupRestoreConfig($option, $task, $act, $pathtoadmin, $config);		// act=emtpy, backup, restore
		break;

	case "versioncheck":
		uddeIMversioncheck($option, $task, $checkversion, $checkhotfix);
		break;

	case "showstatistics":
		uddeIMshowstatistics($option, $task, $config);
		break;

	default:
		uddeIMshowSettings($option, $task, $usedlanguage, $pathtoadmin, $pathtouser, $versionstring, $config);
		break;	
}

function uddeIMsaveSettings($option, $task, $pathtoadmin, $config) {
	global $oldsetting_allowarchive, $oldsetting_longwaitingemail;

	$database = uddeIMgetDatabase();
	if(($oldsetting_longwaitingemail != $config->longwaitingemail) && ($config->longwaitingemail==1)) {
		$config->forgetmenotstart=uddetime($config->timezone);
	}

//define( 'YOURBASEPATH', dirname(__FILE__) );
//$configdatei = YOURBASEPATH . '/config.class.php' ;
	
	if (!uddeIMsaveConfig($pathtoadmin, $config))