예제 #1
0
 public function __construct($id = null)
 {
     parent::__construct($id);
     if ($this->id() > 0) {
         $this->load();
     }
 }
예제 #2
0
 public function __construct($id = null)
 {
     parent::__construct($id);
 }
예제 #3
0
 public function __construct()
 {
     parent::__construct();
 }
예제 #4
0
<?php

//***************************************************
//** Handles inserts updates and tasks
//***************************************************
$LOAD_DB = true;
require_once '../config/config.inc.php';
$Req = new fgObject($_POST);
//** Reply
$Response = new fgResponse();
try {
    //* check action is set
    $action = isset($_REQUEST['action']) ? $_REQUEST['action'] : null;
    if (!$action) {
        throw new fgException('no action', 'action variable set');
    }
    //* execute an action
    switch ($action) {
        case 'signup':
            $Auth = new fgAuth();
            $Auth->signUp($_REQUEST);
            break;
        case 'server':
            $S = new fgServer($Req->server_id);
            $obj->type = $Req->type;
            $obj->nick = $Req->nick;
            $obj->host = $Req->host;
            $obj->ip = $Req->ip;
            $obj->comment = $Req->comment;
            $obj->location = $Req->location;
            $obj->contact = $Req->contact;