代码块测试支持
// 发布微语. if ($action == 'post') { $t = isset($_POST['t']) ? addslashes(trim($_POST['t'])) : ''; // var_dump($t); $img = isset($_POST['img']) ? addslashes(trim($_POST['img'])) : ''; LoginAuth::checkToken(); if ($img && !$t) { $t = '分享图片'; } if (!$t) { emDirect("twitter.php?error_a=1"); } $tdata = array('content' => $Twitter_Model->formatTwitter($t), 'author' => UID, 'date' => time(), 'img' => str_replace('../', '', $img) ); var_dump($tdata); $twid = $Twitter_Model->addTwitter($tdata); $CACHE->updateCache(array('sta','newtw')); doAction('post_twitter', $t, $twid); emDirect("twitter.php?active_t=1"); }
emmm 。。。
保存看看效果