示例#1
0
 private function Call()
 {
     $dbcall = new TopicData();
     try {
         $dbcall->connect();
     } catch (Exception $e) {
         echo "{$e->getMessage}() table call";
         exit;
     }
 }
示例#2
0
 /**
  * delete topic
  * 
  * @return void
  */
 public function deleteAction($options)
 {
     if (!isset($options['id']) || empty($options['id'])) {
         die("You did not pass in an ID");
     }
     $topic = $this->data->getTopic($options['id']);
     if ($topic === false) {
         die("Topic not found");
     }
     if ($this->data->delete($options['id'])) {
         header("location: /index.php");
     } else {
         echo "An error occured";
     }
     exit;
 }
示例#3
0
// adventures
// activities
// tasks
// subTasks
//********************************************************
?>

<head>
    <link rel="stylesheet" href="style.css">	
</head>

<?php 
$topics = array();
$table = 'badges';
$constraint = "badge = 'wolf'";
$data = new TopicData();
$data->connect();
?>
<!--Fill in location for form to be sent once it is determined-->
<form action="index.php" method="post">
   <legend><span class="legend">Select the badge you want to view.</span></legend>
    <fieldset>
       
        <input type="radio" name="bobcat" id="bobcat">
        <label for='bobcat'>Bobcat</label>

        <input type="radio" id='tiger' name="tiger">
        <label for='tiger'>Tiger</label>

        <input type="radio" id='wolf' name="wolf">
        <label for='wolf'>Wolf</label>
示例#4
0
<?php

define('DarkCoreCMS', TRUE);
include 'header.php';
include '../core/config.php';
include '../core/functions/global_functions.php';
include '../core/functions/realm_functions.php';
include '../core/functions/bugtracker.php';
include '../core/functions/account_functions.php';
include '../core/functions/vote_functions.php';
include '../core/functions/armory_functions.php';
include '../core/functions/board_functions.php';
$topic = new TopicData();
if (isset($_GET['id'])) {
    $error = 0;
    if ($topic->check_topic_exist(convertToIntExtended($_GET['id'])) == true) {
        $topic->get_topics_by_id(convertToIntExtended($_GET['id']));
        if (isset($topic->topic)) {
            $thread_base = $topic->topic;
        }
    } else {
        $error = 1;
    }
}
?>
<title>GamingZeta - <?php 
if (isset($thread_base['title'])) {
    echo ucwords($thread_base['title']);
} else {
    echo 'Can\'t Find';
}