예제 #1
0
 private static function editset()
 {
     $user = self::user();
     if ($user) {
         $db = new Database();
         $manager = new ManagerUser($db);
         $user->set(Request::reqFull());
         $where['email'] = Request::req('old-email');
         $res = $manager->set($user, $where);
         $db->close();
     }
     self::editview();
 }
예제 #2
0
<?php

require '../../../../classes/AutoLoad.php';
$request = Request::reqFull();
$db = new Database();
$manager = new ManagerUser($db);
$user = $manager->get($request['email']);
$user->setActive(0);
$res = $manager->set($user);
header("Location:../readuser.php?r=1&op=delete");
예제 #3
0
 private static function editset()
 {
     $user = self::user();
     if ($user && Request::get('password') == Request::get('rpassword')) {
         $db = new Database();
         $manager = new ManagerUser($db);
         $user->set(Request::reqFull());
         $res = $manager->set($user, Request::req('old-email'));
         $db->close();
     }
     header('location:?op=edit&do=view');
 }