<?php $altcfg = $ubillingConfig->getAlter(); if ($altcfg['FRIENDSHIP_ENABLED']) { if (cfr('FRIENDSHIP')) { if (wf_CheckGet(array('username'))) { $login = $_GET['username']; $friends = new FriendshipIsMagic(); //friendship creation if (wf_CheckPost(array('newparentlogin', 'newfriendlogin'))) { $friends->createFriend($_POST['newfriendlogin'], $_POST['newparentlogin']); rcms_redirect('?module=pl_friendship&username='******'deletefriend'))) { $friends->deleteFriend($_GET['deletefriend']); rcms_redirect('?module=pl_friendship&username='******'', $friends->renderCreateForm($login)); show_window(__('Available friends'), $friends->renderFriendsList($login)); show_window('', web_UserControls($login)); } else { show_error(__('Strange exeption') . ': GET_NO_USERNAME'); } } else { show_error(__('You cant control this module')); } } else { show_error(__('This module is disabled')); }
*/ if ($_GET['action'] == 'reminder') { if ($alterconf['REMINDER_ENABLED']) { $sms = new Reminder(); $sms->RemindUser(); die('OK:SEND REMIND SMS'); } else { die('ERROR:REMINDER DISABLED'); } } /* * friendship processing */ if ($_GET['action'] == 'friendshipdaily') { if ($alterconf['FRIENDSHIP_ENABLED']) { $friends = new FriendshipIsMagic(); $friends->friendsDailyProcessing(); die('OK:FRIENDSHIP'); } else { die('ERROR:FRIENDSHIP DISABLED'); } } /* * Per month freezing fees */ if ($_GET['action'] == 'freezemonth') { $money = new FundsFlow(); $money->runDataLoders(); $money->makeFreezeMonthFee(); die('OK:FREEZEMONTH'); }