<?php /** * (根据身份验证为user_teaching_office可用) * 传入tableName和workNumer删除用户信息 * 如果是删除系负责人,则删除department_head_majors中对应的信息 */ error_reporting(0); require_once './classes/class_delete_user.php'; $tableName = $_POST["tableName"]; $workNumber = $_POST["workNumber"]; session_start(); $ident = $_SESSION['id']; $deleteUser = new DeleteUser(); $deleteUser->deleteU($tableName, $ident, $workNumber);
<?php if ($_SERVER['REQUEST_METHOD'] === 'POST') { // Put the data to the Formatted array $callArray = array("user" => $_POST["user"]); if (!empty($_POST["token"])) { $callArray["token"] = $_POST["token"]; } // Open SRS Call -> Result require_once dirname(__FILE__) . "/../../opensrs/openSRS_loader.php"; $response = DeleteUser::call($callArray); // Print out the results echo " In: " . json_encode($callArray) . "<br>"; echo "Out: " . $response; } else { // Format if (isset($_GET['format'])) { $tf = $_GET['format']; } else { $tf = "json"; } ?> <?php include "header.inc"; ?> <div class="container"> <h3>delete_user</h3> <form action="" method="post" class="form-horizontal" > <div class="control-group"> <label class="control-label">Session Token (Option)</label>
$send_camp = new SendMail(); $send_camp->enviar(); return Redirect::to('admin'); break; case 'update_camp': $update = new UpdateCamp(); $update->update(); return Redirect::to('crear_correo'); break; case 'save_camp': $save_camp = new SaveCamp(); $save_camp->guardar(); return Redirect::to('crear_correo'); break; case 'eliminar_correo': $deletUser = new DeleteUser(); $deletUser->borrarUser(); return Redirect::to('lista'); break; case 'addUserGroup': $addUserGroup = new AddUserToGroup(); $addUserGroup->agregarUsuario(); return Redirect::to('lista'); break; case 'prueba': $prueba = new Revisados(); $prueba->codigos(); break; case 'revisados': $rev = new Revisados(); $rev->enviar();