if ($db->affected_rows() < 1) { $be->box_full($t->translate('Error'), $t->translate('Database Error')); } else { // We show what we just have inserted $bx->box_full($t->translate('Online Documentation ' . 'Administration'), $t->translate('The following documentation ' . 'has been modified')); $db->query("SELECT * FROM doco WHERE docoid='{$docoid}'"); $db->next_record(); doco_show($db); } } } if (isset($create)) { if ($create == 1) { doco_form(); } if ($create == 2) { // We insert it into the DB $tables = 'doco'; $insert = "page='{$page}',header='{$header}',doco='{$doco}'," . "language='{$la}'"; if (!$db->query("INSERT {$tables} SET {$insert}")) { lib_die('Error in insdoco.php: Database insertion ' . 'not completed'); } // We show what we've inserted $bx->box_full($t->translate('Page Documentation Administration'), $t->translate('The following Page Documentation ' . 'has been inserted')); $bx->box_full($page . ': ' . $header, $doco); } } } end_content(); require 'include/footer.inc'; @page_close();
$table = 'consultants'; break; case '2': $what = 'content_id'; $table = 'tech_content'; break; case '3': $what = 'devid'; $table = 'developing'; break; case '4': $what = 'referee'; $table = 'referees'; break; default: lib_die('Error in decisions.php: No next step possible'); } if (decisions_decision_met($proid)) { put_into_next_step($proid, $project_status, $what, $table); } } } your_quota($proid); print "<br>\n"; you_have_already_voted($proid, $project_status); if ($project_status != 4) { print '<p align=right>' . $t->translate('Not voted yet') . ': <b>' . round((100 - $voted_yet) * 100) / 100 . "%</b>\n"; } else { print '<p align=right>' . $t->translate('Not voted yet') . ': <b>' . round((100 - $voted_yet) * 100) / 50 . "%</b>\n"; } // TODO: add an explanation
if ($db->affected_rows() < 1) { $be->box_full($t->translate('Error'), $t->translate('Database Error')); } else { // We show what we just have inserted $bx->box_full($t->translate('Frequently Asked Questions ' . 'Administration'), $t->translate('The following FAQ has been modified')); $db->query("SELECT * FROM faq WHERE faqid='{$faqid}'"); $db->next_record(); faqshow($db); } } } if (isset($create)) { if ($create == 1) { faqform(); } if ($create == 2) { // We insert it into the DB $tables = 'faq'; $insert = "question='{$question}',answer='{$answer}',language='{$la}'"; if (!$db->query("INSERT {$tables} SET {$insert}")) { lib_die('Error in insfaq.php: Database insertion not ' . 'completed'); } // We show what we've inserted $bx->box_full($t->translate('Frequently Asked Questions ' . 'Administration'), $t->translate('The following FAQ has been inserted')); $bx->box_full($t->translate('Question') . ': ' . $question, '<b>' . $t->translate('Answer') . ':</b> ' . $answer); } } } end_content(); require 'include/footer.inc'; @page_close();
// Change user parameters if ($auth->auth['uid'] == $u_id) { // user changes his own account $password = trim($password); $cpassword = trim($cpassword); $realname = trim($realname); $email_usr = trim($email_usr); if (strcmp($password, $cpassword)) { // password are identical? $be->box_full($t->translate('Error'), $t->translate('The passwords are not identical') . '. ' . $t->translate('Please try again') . '!'); break; } $query = "UPDATE auth_user SET password='******', " . "realname='{$realname}', email_usr='******', " . "modification_usr=NOW() WHERE user_id='{$u_id}'"; $db->query($query); if ($db->affected_rows() == 0) { lib_die('Change User Parameters failed' . ":<br>{$query}"); break; } $bi->box_full($t->translate('Change User Parameters'), $t->translate('Password and/or E-Mail Address of') . ' <b>' . $auth->auth['uname'] . '</b> ' . $t->translate('is changed') . '.'); if ($ml_notify) { $message = $t->translate('Username') . ': ' . $auth->auth['uname'] . "\n"; $message .= $t->translate('Realname') . ": {$realname}\n"; $message .= $t->translate('E-Mail') . ": {$email_usr}\n"; mailuser('admin', $t->translate('User parameters has changed'), $message); } } else { $be->box_full($t->translate('Error'), $t->translate('Access denied')); } break; default: break;