$odder = " bcelleven"; $splitter = false; } else { $odder = " bcellodd"; $splitter = true; } $evenOdd = !$evenOdd; echo '<tr> <td width="64" rowspan="3" class="bcell' . $odder . '"><a name="' . $row['a_id'] . '"><img src="http://image.eveonline.com/Character/' . $row['a_charid'] . '_64.jpg"></td> <td class="intel bsmall' . $odder . '" width="150">Author: ' . $row['a_name'] . '</td><td class="intel bcell' . $odder . '" rowspan="3">' . nl2br($row['a_answer']) . '</td> </tr> <tr><td class="intel bsmall' . $odder . '">' . substr($row['a_datetime'], 0, 16) . '</td></tr> <tr><td class="intel bsmall bcell' . $odder . '"><a href="#" onclick="CCPEVE.sendMail(' . $row['a_charid'] . ',\'RE: ' . $rows['topic'] . '\',\' \')">EVEMail</a></td></tr>'; $getPostTime = strtotime(date('Y-m-d H:i:s', strtotime($row['a_datetime']) + 600)); // time from post $curPostTime = strtotime(getEVEzone(date('Y-m-d H:i:s'))); // actual time if ($getHeaderCharID == $row['a_charid']) { if ($getPostTime > $curPostTime) { echo '<tr><td colspan="3" class="intel bsmall bcell' . $odder . '"><span class="edit"><a href="' . $module_public . '&mode=edit&a=post&qid=' . $row['question_id'] . '&aid=' . $row['a_id'] . '">edit</a></span> - Editing current post is only possible within 10 minutes.</td></tr>'; } } //echo strtotime(date('Y-m-d H:i:s',strtotime($row['a_datetime'])+1200)) . '_<br />'; // time from post //echo strtotime(getEVEzone(date('Y-m-d H:i:s',strtotime('+20 minutes')))) . '<br />'; // actual time //echo date('Y-m-d H:i:s',strtotime('+30 minutes',$row['a_datetime'])); } echo '</table>'; echo $pagination; $sql3 = "SELECT view FROM forum_thread WHERE id='{$id}'"; $result3 = mysql_query($sql3); $rows = mysql_fetch_array($result3);
exit; } } else { //echo "ERROR"; } } elseif ($_GET['a'] == 'cat') { if (isset($_POST['fordirs']) && $_POST['fordirs'] == '1') { $fordirs = '1'; } else { $fordirs = '0'; } // get data that sent from form $title = mysql_real_escape_string($_POST['title']); $descr = mysql_real_escape_string($_POST['descr']); // ############### add a _if director only thread value_ $datetime = getEVEzone(date("Y-m-d H:i:s")); //create date time $sql = "INSERT INTO forum_cat(cat_name, cat_descr, cat_isdir)VALUES('{$title}', '{$descr}', '{$fordirs}')"; $result = mysql_query($sql); if ($result) { //if ($logFile) {logToFile('Board','Topic Added',$topic);} // Logger $_SESSION['text'] = 'Forum Category Added!'; $_SESSION['type'] = 'success'; if ($boardMode) { header("Location: ./?p=board"); } else { //if ($isDirector && (isset($_POST['fordirs']) && $_POST['fordirs']=='1')) {redirect('./?p=forum&a=directors'); exit();}else{redirect('./?p=forum'); exit();} redirect($module_public); exit; } } else {