This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ ?> <? require_once('conf/location.php'); require_once('engine.php'); $_GET['what']='topic'; $result = engine_doit(); $result=$result['topic']; global $LANG; $LANG['click_here_javascript_version'] = preg_replace('/<a>([^<]+)<\/a>/', "<a href='/{$_GET['where']}/index.php?topic_id={$_GET['id_topic']}'>$1</a>", $LANG['click_here_javascript_version']); $LANG['access_fullversion'] = preg_replace('/<a>([^<]+)<\/a>/', "<a href='/{$_GET['where']}/{$_GET['id_topic']}/{$result['topic']['subject_for_url']}'>$1</a>", $LANG['access_fullversion']); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <link rel="stylesheet" type="text/css" href="<?=$CONF['url_path']?>css/rc.css" /> <title>Rapid Coffee - <?=$result['topic']['subject']?></title> </head> <body>
// $channel->setId(1); // $channel->follow(); /* TIRAR DEPOIS ***/ $db = $GLOBALS['maindb']; $db->query("set search_path=beta,public,pg_catalog;"); //file_put_contents('log',"GET:\n".print_r($_GET,true)."\nPOST:\n".print_r($_POST,true)."\nFILES:\n".print_r($_FILES,true)); if (isset($_GET['SYSTEM_redirect'])) engine_doit(); elseif (!isset($_GET['SYSTEM_json']) || ($_GET['SYSTEM_json'])) echo json_encode(engine_doit()); else return engine_doit(); function engine_doit(){ global $CONF; $whats = explode(',', $_GET['what']); $result = null; if (isset($_GET['SYSTEM_redirect'])){ unset($_GET['SYSTEM_redirect']); switch($_GET['what']){ case 'topic': include('basichtml/viewtopic.php'); break; case 'datetopics': include('basichtml/topic_list.php'); break;