Disucz Code Analysis _php Tutorial

Source: Internet
Author: User
1.discuz/templates/default/viewthread_fastpost.htm:
The request address in the form is action= "post.php?action=reply&fid= $fid &tid= $tid &extra= $extra &replysubmit=yes &infloat=yes&handlekey=fastpost
Look at the last handlekey=fastpost.

2.discuz/post.php introduced the bbs/include/newreply.inc.php
PHP code

File_put_contents (Bbbb.txt, "viewthread.php?tid= $tid &pid= $pid &page= $page &extra= $extra #pid$pid");
Viewthread.php?tid=1&pid=21&page=2&extra=page%3d1#pid21
ShowMessage ($replymessage, "viewthread.php?tid= $tid &pid= $pid &page= $page &extra= $extra #pid$pid");


File_put_contents (Bbbb.txt, "viewthread.php?tid= $tid &pid= $pid &page= $page &extra= $extra #pid$pid");
Viewthread.php?tid=1&pid=21&page=2&extra=page%3d1#pid21
ShowMessage ($replymessage, "viewthread.php?tid= $tid &pid= $pid &page= $page &extra= $extra #pid$pid");


3.discuz/include/global.func.php in ShowMessage ();
PHP code
ElseIf ($handlekey)
{
$show _message = Str_replace ("", "", $show _message);
if ($url _forward)
{
$show _message = "";
}
Omitted.....
}

ElseIf ($handlekey)
{
$show _message = Str_replace ("", "", $show _message);
if ($url _forward)
{
$show _message = "";
}
Omitted.....
}


ShowMessage () Last
PHP code
Include template (showmessage);

Include template (showmessage);


4.disucz/templates/default/showmessage.htm
PHP code
{echo str_replace (array ({lang return_search}), array ({lang return_replace}), $show _message)}

http://www.bkjia.com/PHPjc/478765.html www.bkjia.com true http://www.bkjia.com/PHPjc/478765.html techarticle 1.discuz/templates/default/viewthread_fastpost.htm: The request address in the form is action= "post.php?action=replyamp;fid= $fidamp; Tid= $tidamp; extra= $extraamp replysubmit=yes!--{if $orderty ...

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.