name)) { $form->name = ''; } $cssfile=$CFG->wwwroot; $cssfile.="/mod/sclipowebclass/css/main.css"; $scimg=$CFG->wwwroot."/mod/sclipowebclass/scimg/"; ?> section; if (isset($form->sesskey)) $sesskey=$form->sesskey; if (isset($form->modulename)) $add=$form->modulename; $usr = $USER->username; $email = $USER->email; require_once("sclipoapi.php"); $ret = sclipo_checkLogin($_SESSION["sclipo_id"], $USER->username); if (!isset($redirectpage)) if (isset($_REQUEST["redirect"])) $redirectpage = $_REQUEST["redirect"]; if ($ret == 0) { // Not logged in $add = optional_param('add','', PARAM_ALPHA); $update = optional_param('update', 0, PARAM_INT); //$delete = optional_param('delete', 0, PARAM_INT); if (!empty($add) && empty($redirectpage)) $redirectpage = "create_webclass.php?id=$id§ion=$form->section&sesskey=$form->sesskey&add=$form->modulename"; else if (!empty($update) && empty($redirectpage)) $redirectpage = "edit_webclass.php?update=$update§ion=$form->section&sesskey=$form->sesskey"; include("join.php"); } else { // Logged in $add = optional_param('add','', PARAM_ALPHA); $update = optional_param('update', 0, PARAM_INT); if (!empty($add)) redirect($CFG->wwwroot."/mod/sclipowebclass/create_webclass.php?id=$id§ion=$form->section&sesskey=$form->sesskey&add=$form->modulename", "", 0); else if (!empty($update)) redirect($CFG->wwwroot."/mod/sclipowebclass/edit_webclass.php?sesskey=$form->sesskey&update=$update", "", 0); } ?>