* @subpackage WebUI * @author Vitex <*****@*****.**> * @copyright 2012 Vitex@hippy.cz (G) */ require_once 'includes/IEInit.php'; $oPage->onlyForLogged(); $contact = new IEContact($oPage->getRequestValue('contact_id', 'int')); if (!$contact->getId()) { $oPage->redirect('contacts.php'); exit; } switch ($oPage->getRequestValue('action')) { case 'rename': $newname = $oPage->getRequestValue('newname'); if (strlen($newname)) { if ($contact->rename($newname)) { $oUser->addStatusMessage(_('Kontakt byl přejmenován'), 'success'); } else { $oUser->addStatusMessage(_('Kontakt nebyl přejmenován'), 'warning'); } } break; } $delete = $oPage->getGetValue('delete', 'bool'); if ($delete == 'true') { $contact->delete(); $oPage->redirect('contacts.php'); exit; } $delsubcont = $oPage->getGetValue('delsubcont_id', 'int'); if ($delsubcont) {