예제 #1
0
파일: Jf.php 프로젝트: toastedghost/rbac
                $fields = array();
                if (!$metadata) {
                    return null;
                }
                while (null != ($field = $metadata->fetch_field())) {
                    $fields[] =& $out[$field->name];
                }
                call_user_func_array(array($preparedStatement, "bind_result"), $fields);
                $output = array();
                $count = 0;
                while ($preparedStatement->fetch()) {
                    foreach ($out as $k => $v) {
                        $output[$count][$k] = $v;
                    }
                    $count++;
                }
                $preparedStatement->free_result();
                return $count == 0 ? null : $output;
            } else {
                return null;
            }
        }
    }
    static function time()
    {
        return time();
    }
}
Jf::setTablePrefix($tablePrefix);
Jf::$Rbac = new RbacManager();
require_once __DIR__ . "/../setup.php";
예제 #2
0
파일: Jf.php 프로젝트: master3395/bgpanelv2
                $out = array();
                $fields = array();
                if (!$metadata) {
                    return null;
                }
                while (null != ($field = $metadata->fetch_field())) {
                    $fields[] =& $out[$field->name];
                }
                call_user_func_array(array($preparedStatement, "bind_result"), $fields);
                $output = array();
                $count = 0;
                while ($preparedStatement->fetch()) {
                    foreach ($out as $k => $v) {
                        $output[$count][$k] = $v;
                    }
                    $count++;
                }
                $preparedStatement->free_result();
                return $count == 0 ? null : $output;
            } else {
                return null;
            }
        }
    }
    static function time()
    {
        return time();
    }
}
Jf::setTablePrefix(DB_PREFIX);
Jf::$Rbac = new RbacManager();