Файловый менеджер - Редактировать - /home/meharicl/www/Zip/post_album.php
Назад
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Sans Titre</title> <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /> <meta name="generator" content="HAPedit 3.1"> </head> <body bgcolor="#FFFFFF"> <?php include("./../diaporama/bibliotheque/fonction_diapo.inc"); include("./../diaporama/bibliotheque/connect_bdd.inc"); define('IN_PHPBB', true); $phpbb_root_path = './../phpBB3/'; $phpEx = substr(strrchr(__FILE__, '.'), 1); include($phpbb_root_path . 'common.' . $phpEx); $user->session_kill(); $user->session_begin(); $auth->acl($user->data); $user->setup(''); $result = $auth->login("Web_Master_MCDF", "admin131254#", false, 0, 0); $auth->acl($user->data); $user_id=$_GET['user_id']; $album=$_GET['album']; $description=$_GET['description']; $cible_zip=".././diaporama/upload/".$album."_".$user_id; //on recupere le pseudo // Recherche si mail user phpbb3 $sql_mail="SELECT * FROM `phpbb3_users` WHERE `user_id` =".$user_id; $user_mail_bdd = $link->query($sql_mail); while ($rowuser_mail_bdd = $user_mail_bdd->fetch_assoc()) { //$id_phpbb=$rowuser_mail_bdd ['user_id']; $fromname=$rowuser_mail_bdd ['username']; } fait_data_html($cible_zip,$description); //***on poste sur le mur $texte="Par Zip Transfer de ".$fromname. " Le ".date('d-m-Y')."-------"." [diaporama]".$album."_".$user_id."[/diaporama]"."\r\n"; $errors = generate_text_for_storage($texte, $new_uid, $new_bitfield, $bbcode_options, true, true, true); $subject="Par Zip Transfer de ".$fromname. " Le ".date('d-m-Y')." ".$description; $data = array( // General Posting Settings 'forum_id' => 58, // The forum ID in which the post will be placed. (int) 'topic_id' => 0, // Post a new topic or in an existing one? Set to 0 to create a new one, if not, specify your topic ID here instead. 'icon_id' => false, // The Icon ID in which the post will be displayed with on the viewforum, set to false for icon_id. (int) // Defining Post Options 'enable_bbcode' => true, // Enable BBcode in this post. (bool) 'enable_smilies' => true, // Enabe smilies in this post. (bool) 'enable_urls' => true, // Enable self-parsing URL links in this post. (bool) 'enable_sig' => true, // Enable the signature of the poster to be displayed in the post. (bool) // Message Body 'message' => $texte, // Your text you wish to have submitted. It should pass through generate_text_for_storage() before this. (string) 'message_md5' => md5($texte),// The md5 hash of your message // Values from generate_text_for_storage() 'bbcode_bitfield' => $new_bitfield, // Value created from the generate_text_for_storage() function. 'bbcode_uid' => $new_uid, // Value created from the generate_text_for_storage() function. // Other Options 'post_edit_locked' => 0, // Disallow post editing? 1 = Yes, 0 = No 'topic_title' => $subject, // Subject/Title of the topic. (string) // Email Notification Settings 'notify_set' => false, // (bool) 'notify' => false, // (bool) 'post_time' => 0, // Set a specific time, use 0 to let submit_post() take care of getting the proper time (int) 'forum_name' => '', // For identifying the name of the forum in a notification email. (string) // Indexing 'enable_indexing' => true, // Allow indexing the post? (bool) // 3.0.6 //'force_approved_state' => true, // Allow the post to be submitted without going into unapproved queue // 3.1-dev, overwrites force_approve_state //'force_visibility' => true, // Allow the post to be submitted without going into unapproved queue, or make it be deleted ); submit_post ( "post", $subject, $user->data['username'], POST_NORMAL, $poll, $data); //###$id_phpbb!=2 recalage du poster $session_post=$link->query("SELECT * FROM `phpbb3_posts` WHERE `forum_id` = 58 ORDER BY `post_id` DESC"); $row_user = $session_post->fetch_assoc(); $last_post=$row_user['post_id']; $topic_id= $row_user['topic_id']; $link->query("UPDATE `phpbb3_posts` SET `poster_id` = '".$user_id."' WHERE `phpbb3_posts`.`post_id` = ".$last_post); $link->query("UPDATE `phpbb3_topics` SET `topic_first_post_id` = '".$user_id."' WHERE `phpbb3_topics`.`topic_id` = ".$topic_id); $link->query("UPDATE `phpbb3_topics` SET `topic_poster` = '".$user_id."' WHERE `phpbb3_topics`.`topic_id` = ".$topic_id); $link->query("UPDATE `phpbb3_topics` SET `topic_first_poster_name` = '".$fromname."' WHERE `phpbb3_topics`.`topic_id` = ".$topic_id); $link->query("UPDATE `phpbb3_topics` SET `topic_last_poster_name` = '".$fromname."' WHERE `phpbb3_topics`.`topic_id` = ".$topic_id); $session_post = $link->query("SELECT * FROM `phpbb3_posts` WHERE `forum_id` = 58 ORDER BY `post_id` DESC"); $row_user = $session_post->fetch_assoc(); $last_post=$row_user['post_id']; $topic_id= $row_user['topic_id']; header('Location: http://www.mehariclubdefrance.com/phpBB3/viewtopic.php?f=58&t='.$topic_id.'&p='.$last_post.'#p'.$last_post); ?> </body> </html>
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Генерация страницы: 0.01 |
proxy
|
phpinfo
|
Настройка