top.location = \'https://' . $c['host'] . '/\';'); } else { if (isset($_POST['act'])) { $post = Telegram::start(); if ($_POST['act'] == 'read') { $post->readMsg(mysql_real_escape_string($_POST['msg']), $u['id']); } elseif ($_POST['act'] == 'lock') { $post->lockMsg(mysql_real_escape_string($_POST['msg']), $u['id']); } elseif ($_POST['act'] == 'delete') { $post->deleteMsg(mysql_real_escape_string($_POST['msg']), $u['id'], $_POST['pageGo']); } elseif ($_POST['act'] == 'deleteAll') { $post->deleteMsgAll($u['id'], $_POST['pageGo']); } elseif ($_POST['act'] == 'page') { $post->seeMsg($u['id'], $_POST['msg'], 5); } } } }