Zeile 6 | Zeile 6 |
---|
* Website: http://www.mybboard.net * License: http://www.mybboard.net/about/license *
|
* Website: http://www.mybboard.net * License: http://www.mybboard.net/about/license *
|
* $Id: titles.php 3790 2008-04-23 22:50:33Z Tikitiki $
| * $Id: titles.php 4304 2009-01-02 01:11:56Z chris $
|
*/
// Disallow direct access to this file for security reasons
| */
// Disallow direct access to this file for security reasons
|
Zeile 59 | Zeile 59 |
---|
); $utid = $db->insert_query("usertitles", $new_title);
|
); $utid = $db->insert_query("usertitles", $new_title);
|
| $cache->update_usertitles();
|
$plugins->run_hooks("admin_user_titles_add_commit");
| $plugins->run_hooks("admin_user_titles_add_commit");
|
Zeile 72 | Zeile 74 |
---|
else { $mybb->input = array(
|
else { $mybb->input = array(
|
"stars" => "1", "starimage" => "star.gif",
| 'stars' => '1', 'starimage' => '{theme}/star.gif',
|
); }
| ); }
|
Zeile 100 | Zeile 102 |
---|
$form->output_submit_wrapper($buttons); $form->end();
|
$form->output_submit_wrapper($buttons); $form->end();
|
|
|
$page->output_footer(); }
| $page->output_footer(); }
|
Zeile 110 | Zeile 112 |
---|
$query = $db->simple_select("usertitles", "*", "utid='".intval($mybb->input['utid'])."'"); $usertitle = $db->fetch_array($query);
|
$query = $db->simple_select("usertitles", "*", "utid='".intval($mybb->input['utid'])."'"); $usertitle = $db->fetch_array($query);
|
|
|
if(!$usertitle['utid']) { flash_message($lang->error_invalid_user_title, 'error');
| if(!$usertitle['utid']) { flash_message($lang->error_invalid_user_title, 'error');
|
Zeile 139 | Zeile 141 |
---|
); $db->update_query("usertitles", $updated_title, "utid='{$usertitle['utid']}'");
|
); $db->update_query("usertitles", $updated_title, "utid='{$usertitle['utid']}'");
|
| $cache->update_usertitles();
|
$plugins->run_hooks("admin_user_titles_edit_commit");
| $plugins->run_hooks("admin_user_titles_edit_commit");
|
Zeile 214 | Zeile 218 |
---|
$plugins->run_hooks("admin_user_titles_delete_commit");
// Log admin action
|
$plugins->run_hooks("admin_user_titles_delete_commit");
// Log admin action
|
log_admin_action($usertitle['utid'], $usertitle['title'], $mybb->input['posts']);
| log_admin_action($usertitle['utid'], $usertitle['title'], $usertitle['posts']);
|
flash_message($lang->success_user_title_deleted, 'success'); admin_redirect("index.php?module=user/titles");
| flash_message($lang->success_user_title_deleted, 'success'); admin_redirect("index.php?module=user/titles");
|