예제 #1
0
파일: blog.php 프로젝트: Geoge-Henry/OSSCNU
    $recv3 = strpos($recv2['blogtitle'], "------");
    $sendrecv = substr($recv2['blogtitle'], 0, $recv3);
    $sendrecv2 = substr($recv2['blogtitle'], $recv3 + 6);
    require_once '../model/scnublog.php';
    $_SESSION['select'] = "select2";
    $contr9 = new blog();
    $contr9->blogshow($sendrecv, $sendrecv2);
}
if ($showblog != null) {
    $recv4 = strpos($recv2['blogtitle'], "------");
    $sendrecv3 = substr($recv2['blogtitle'], 0, $recv4);
    $sendrecv4 = substr($recv2['blogtitle'], $recv4 + 6);
    require_once '../model/scnublog.php';
    $_SESSION['select'] = "select";
    $contr10 = new blog();
    $contr10->blogshow($sendrecv3, $sendrecv4);
}
class blog
{
    function blogwrite($recv2)
    {
        $scnublog = new scnublog();
        $finally2 = $scnublog->blogsave($recv2);
        $blogresult = new blog();
        $blogresult->showout($finally2);
    }
    function blogshow($sendrecv, $sendrecv2)
    {
        $scnublog = new scnublog();
        $finally2 = $scnublog->blogshow($sendrecv, $sendrecv2);
        $blogresult = new blog();