예제 #1
0
파일: ideas.php 프로젝트: rmccue/seed
<?php

include 'config.php';
require_once './system/bootstrap.php';
require_once './system/anti-framework/AF.php';
$default_config = array('log' => array('type' => 'AF_Log_Array', 'params' => array('register_shutdown' => true)), 'db' => array('master' => array('dsn' => 'mysql:dbname=REPLACE_ME;host=127.0.0.1', 'username' => 'root', 'password' => 'password', 'identifier' => 'test')));
$config = array_merge_recursive_distinct($default_config, $config);
AF::setConfig($config);
try {
    AF::bootstrap(AF::PAGE_GEN);
} catch (PDOException $e) {
    die('Error connection to database: ' . $e->getMessage());
}
$table = new AF_Table('wp_options', 'option_name');
//echo '<pre>';
//var_dump();
$results = $table->get('siteurl', AF::DELAY_SAFE);
?>
<!doctype html>
<html>
<head>
	<title>Ideas</title>
	<style>
	@import url("reset.css");
	
	.topic {
		background: #eee;
		padding: 20px;
		margin-bottom: 2em;
		clear: both;
		overflow: auto;