$topic->SetLevel($topc_level); $topic->SetUser($topc_user_id); $topic->SetTopic($topc_topc_id); if ($topic->Update()) { $message_position = 7; $message = $screen_module_name . " alterado com sucesso."; } else { $message_position = 7; $message = "Problemas na operação."; } } } if ($action == 4) { $topic = new Topic(); $topic->SetDatabase($database); $topic->SetId($topc_id); if ($topic->Delete()) { $date = new Date(); $message_position = 7; $message = $screen_module_name . " excluído com sucesso."; $topc_id = ""; $topc_title = ""; $topc_text = ""; $topc_date = $date->GetNow(); $topc_level = ""; $topc_user_id = $guardian->GetUserId(); $topc_topc_id = ""; } else { $message_position = 7; $message = "Problemas na operação."; }
<?php $children = new Topic(); $children->SetDatabase($database); $children->SetTopic($data["topc_id"]); $result0 = $children->SelectByTopic(); while ($data0 = $database->FetchArray($result0)) { $users_info = new UserInfo(); $users_info->SetDatabase($database); $users_info->SetUser($data0["topc_user_id"]); $users_info->SelectByUser(); $messages = new Message(); $messages->SetDatabase($database); $messages->SetTopic($data0["topc_id"]); $p_topic = new Topic(); $p_topic->SetDatabase($database); $p_topic->SetId($data0["topc_id"]); $p_topic->SelectById(); ?> <tr> <td bgcolor="#FFFFFF" width="50%" valign="top" align="left"> <a href="/pages/pgForumMessages.php?p_topc_id=<?php echo $data0["topc_id"]; ?> "><?php echo $data0["topc_title"]; ?> </a><br> </td> <td bgcolor="#FFFFFF" width="10%" valign="middle" align="center"> <?php
* Last Updated: October 01, 2007 */ $module_name = "forum"; require '../../schifers/constants/cdConstants.php'; require '../../' . $WEB_SITE . 'src/cdDatabase.php'; require '../../' . $WEB_SITE . 'src/cdDate.php'; require '../../' . $WEB_SITE . 'src/cdUser.php'; require '../../' . $WEB_SITE . 'src/cdSession.php'; require '../../' . $WEB_SITE . 'src/cdGuardian.php'; require '../../' . $WEB_SITE . 'src/cdTopic.php'; if (isset($_GET["p_topc_id"])) { $p_topc_id = $_GET["p_topc_id"]; } $p_topic = new Topic(); $p_topic->SetDatabase($database); $p_topic->SetId($p_topc_id); $p_topic->SelectById(); $p_topic->Hit(); ?> <html> <head> <title>Schifer's</title> <link rel="stylesheet" type="text/css" href="/schifers/css/schifers.css"> </head> <body bgcolor="#FFFFFF"> <?php require '../../' . $WEB_SITE . 'blocks/blTitle.php'; ?>