示例#1
0
 public function invitations_new()
 {
     SC::loginRequired();
     global $current_user;
     $vars = array("invite_list" => SC::getParam("invite_list", true), "boardid" => $_GET["boardid"]);
     $cs = array("title" => "Invite others to this board", "head" => SCPartial::renderToString("shared/head"), "util_links" => SCPartial::renderToString("board/newthread_util_links", $vars), "content" => SCPartial::renderToString("board/invitations_new", $vars));
     SCLayout::render("main", $vars, $cs);
 }
示例#2
0
 public function _new()
 {
     SC::loginRequired();
     global $current_user;
     $type = $_GET["type"] or $type = "text";
     $parent = new SCBoard($_GET["boardid"]);
     $route_params = array("boardid" => $parent->boardid);
     $vars = array("subject" => SC::getParam("subject", true), "text" => SC::getParam("text", true), "type" => $type, "parent" => $parent, "controller" => "threads", "route_params" => $route_params, "action" => SCRoutes::set("threads", "create", $route_params));
     switch ($_GET["__content_type"]) {
         case "json":
             $output = array("content" => SCPartial::renderToString("message/new", $vars));
             echo SC::jsonify($output);
             break;
         case "html":
         default:
             $cs = array("title" => "Create Thread", "head" => SCPartial::renderToString("shared/head"), "util_links" => SCPartial::renderToString("board/newthread_util_links", $vars), "content" => SCPartial::renderToString("message/new", $vars));
             SCLayout::render("main", $vars, $cs);
     }
 }
示例#3
0
 public function _new()
 {
     $vars = array("username" => SC::getParam("username", true), "email" => SC::getParam("email", true), "displayname" => SC::getParam("displayname", true));
     $cs = array("title" => "Register", "content" => SCPartial::renderToString("user/new", $vars));
     SCLayout::render("main", $vars, $cs);
 }