Challenge the best message of the source code (i) _php Foundation

Source: Internet
Author: User
Instructions for using this message


Haha, very happy, did a lot of time the message can finally be published ...
Ah, I hope everyone likes, do not like it does not matter, but, there must be no reason to like, please be sure to inform!!!
Thank you!!!

This message from the beginning of the goal is "the best of the challenge of the message book"!!! I think "nothing can not be done, just to see if it is necessary"!!!

If your advice is good, I will definitely do what you ask for, my goal: "Be a great programmer".



The advantages and disadvantages of this message:
-------------------------------------------------------------------
That's probably the most important thing. Haha!!!

Advantages:

The biggest advantage of this message is that line wrap. To achieve the user line, (keep the original, Chinese alumni of the line is a certain number of words, that is, regardless of your line, all of him to give you a line.) so if you want to paste text graphics, there is a problem. And now most of the message does not implement automatic line wrapping, that is, it does not matter how many characters you write, it will be displayed in one line, so if there is a message did not change lines, the message will become very difficult to see, the window below the line will be very long, damaging the beauty of the foliage!!!.

So far, I haven't found a message to solve both problems at the same time, which is why I wrote this message.

including Oso forum, but also do not change the line, do not believe you to leave a message to try, write a very long not return characters, so that its leaf surface immediately appear problems. (Oso and I have mentioned this question, I do not know has changed!)

I wrote a computer_message ($msg); The function solves the problem by looking at the source in the config.php file.

There are pagination: two ways to see, one is: Forward, back to show the message, the other is: the number of pages displayed.

There are now moderators can easily through the following connection to delete and restore, of course, to enter the password.

Disadvantages:

Of course, to be realistic, is the page landscaping work is not enough to do, although feel very necessary, but because of the relationship between the time is always feel that this is something outside, you can drag first, of course, as long as there is a little HTML knowledge can be very convenient to modify.

And there is the unknown bug! Haha!!!


Download points, and samples can be found in http://little.oso.com.cn!!!


Because the documentation is written under Linux, use WordPad to open the Readme.txt
Don't use Notepad, otherwise it will be garbled!!!

The following is a description of the configuration:
--------------------------------------------------------------------
For the convenience of configuration, the code has been collated, and all the parameters that need to be set are now placed in the
config.php file, the configuration should be very simple, there are Shishi instructions.

Objective: To get your message in very kind!!!

1: Establish a database (to provide database space to the home page)

It is generally like the front end of the phpMyAdmin open source Oso. It's very simple since it was created.

After you take your name, remember to change config.php's $db_name to that name.

2: Set up a message list (wait for the config.php $table_name to be here your name).

Structure is:
Key_liuyan Int (one) Auto_increment primary key,//main built, automatically added
Nikename varchar () NULL//Nickname
Subject varchar (MB) NULL//Message theme
date_created varchar (19)//Message time
IP_Address varchar (15)//Message person's IP address
Message Mediumtext NULL//messages
email_address varchar (x) NULL//e-mail address of the message person
zhuye_address varchar (%) null//home address of the message person
Huifu_biaozi int (1) default 0//Moderator reply flag
Huifu mediumtext Null/Moderator reply content
OICQ varchar () NULL//OICQ number of the message person

The following SQL can be used to complete the!!! (I test through, remember to change the yourtable_name into a good point of entry,
Of course not change it.

CREATE TABLE Your_liuyan_table (
Key_liuyan Int (one) Auto_increment primary key,
Nikename varchar () NULL,
Subject varchar (MB) NULL,
date_created varchar (19),
IP_Address varchar (15),
Message Mediumtext NULL,
email_address varchar (m) NULL,
zhuye_address varchar (m) NULL,
Huifu_biaozi int (1) default 0,
Huifu mediumtext NULL,
OICQ varchar () null
)

3: Set up the control table: (also to put the name of this place into the config.php $table_name_control)

The structure is as follows:

Leibie varchar () primary key,
Value varchar () null

You can also use the following SQL statement:

CREATE TABLE Your_control_table (

Leibie varchar () primary key,
Value varchar () null
)

Because this is your control sheet, so you have to add control records two;

The SQL statement is:

Insert Delete Password:

INSERT INTO your_control_tble (
Leibie,
Value
Values
(Delete, ' 1332 ');

Insert Reply password:

INSERT INTO your_control_tble (
Leibie,
Value
Values
(Huifu, ' 1332 ');

The password put in this way is: 123, the user name is empty!

How do you calculate the relationship between the password and the inserted value?

So, your password, like 123 of the three-digit numbers, equals 6, and then the 6 times 222 is the cipher value!!!

6*222=1332.

Knowing the relationship, of course, you can change it to another password.

However, the user name is empty,,,


This simple encryption principle can refer to the three-digit number of the home page http://cxg168.126.com.


4: It's all done, then just upload the file except Readme.txt.



Please contact me if you have any further questions.


Here's how to contact me (comments returned):
--------------------------------------------------------------------
? My message book: http://little.oso.com.cn
My oicq:873221.
My e-mail:cxg168@sohu.com.

---------------------------------------------------------------------

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.