view develop/index.php @ 17:82f8c6bd2b69

add new tag will based on the current topic_id, insert new element into (1)taglist table and (2)topic_tag_relation table
author Zoe Hong <zhong@mpiwg-berlin.mpg.de>
date Fri, 20 Feb 2015 17:57:02 +0100
parents ac77748bb813
children a879f6b9d166
line wrap: on
line source


<?php
header("Content-Type: text/html;charset=utf-8");

// system configiration
include_once('config/Lib_mb_utf8.php');
include_once('config/config.php');

// require the general classes
require("classes/loader.php");
require("classes/basecontroller.php");
require("classes/basemodel.php");

// require the model classes
require("models/home.php");
require("models/extractapp.php");

// require the controller classes
require("controllers/home.php");
require("controllers/extractapp.php");

/*
$output = '{"file":{"id":5,"creationDate":"11/02/2015-15:52","text":"Jorge   青城續修縣志第五册   藝文志 上     山左文人遞興一盛於邊廷實再盛於李滄 HHHH","creatorId":12,"fileName":"66666_3_5_2015.02.11_03.52.42.747.txt","info":"id=5, creation date=Wed Feb 11 15:52:42 CET 2015, last change=Wed Feb 11 15:52:42 CET 2015"},"branch":{"id":3,"creationDate":"11/02/2015-15:42","currentLastFileId":5,"sectionId":66666,"creatorId":12,"label":"qwe","info":"id=3, creation date=Wed Feb 11 15:42:36 CET 2015, last change=Wed Feb 11 15:52:42 CET 2015"}}';
echo $output;

$json = json_decode($output, true);

echo "id=";
echo $json['file']['id'];
echo "<br>";
*/



// create the controller and execute the action
$loader = new Loader($_GET, $_POST);

$controller = $loader->CreateController();
$controller->ExecuteAction();

?>