PHP Technology-PHP practices-wiki-related technologies

Source: Internet
Author: User

The database cannot find the text "Homepage ".

This is usually caused by outdated links to deleted pages on the revision history page. <P> if this is not the case, you may find a bug in the software. Record the URL and report it to the Administrator.

Version 1.5:
The value on the right of the equation below determines the permissions of members of each group. '*' In the first square brackets on the left represents all members, including anonymous users. Logon user control is stored in the 'USER' group, which comprehensively determines the member permissions in the user_groups data table.
These settings replace the previous wgwhitelistaccount and wgwhitelistedit.
# $ Wggrouppermissions = array ();
$ Wggrouppermissions ['*'] ['createaccount'] = false;
$ Wggrouppermissions ['*'] ['read'] = true;
$ Wggrouppermissions ['*'] ['edit'] = false;
In the preceding example, anonymous users are prohibited from creating and editing their own accounts. (The "edit" tab will still be displayed, but an anonymous user will be prompted to log on when clicked.

=== Open Image Upload ===
+ After the system is installed, a new localsettings. php file is generated. Please search for the upload string. Find the following content, cancel the comment after the third line, and set the images directory permission of the website to allow writing. (For version 1.4.x)
+ ## To enable image uploads, make sure the 'images' directory
+ ## Is writable, then uncomment this:
+ # $ Wgdisableuploads = false;
+ $ Wguseimageresize = true;
+ # $ Wguseimagemagick = true;
+ # $ Wgimagemagickconvertcommand = "/usr/bin/convert ";

=== Administrator permission settings ===
+ In the following modifications, administrator permissions are required for many processes. Therefore, log on with an administrator account. If you need help from others, you need to upgrade it to the Administrator:
+ * Enter the ''' [[Special: makesysop] ''' page as the webmaster or administrative Administrator (bureaucrat) (in [[special: specialpages | special page] at the bottom), enter the user name and click the button below.
+ * The Administrator option is available on this page. Be careful not to select the option (because it cannot be deleted,ProgramBug)

How do I change a user's password?
Assuming that $ wgpasswordsalt is set to true (the default), you can use the following SQL query:

Update user set user_password = MD5 (Concat (user_id ,'-',
MD5 ('somepass') where user_name = 'someuser ';
Where obviously "somepass" is changed to the password you want to set and "someuser" is changed to the user name as it is listed in the table "user ".

Then, run the SQL command to grant existing specified users the sysop permission:

Mysql> Update user set user_rights = 'sysop 'Where user_name = 'specify username ';
The user_rights field can be separated by commas (,). Currently, the software supports three values:

Update wk_user_rights set ur_rights = 'bureaucrat, sysop 'where ur_user = 'name ';

 

 

 

You can enter SQL statements on the management interface of a database in phpMyAdmin. Export can be used to output the database. The default value can be used for other settings except "Export type" and "Save As File. "Operation" to rename and copy the database.
Browse in the management interface of a table in phpMyAdmin can edit and delete a row. You can modify the user name here, but the Wiki account must be capitalized in the database. You can also use commands to modify the user name and password (Wiki must be capitalized ):
Update 'revitapi _ user' set 'user _ name' = 'username', 'user _ password' = MD5 (Concat (user_id ,'-', MD5 ('Password') where 'user _ id' = 1;
To delete a row, run the following command: delete from 'revitapi _ user' where 'user _ id' = 2 limit 1;

The prefix name of the attribute name in the Operations table. Move and copy a table to another database.

You can use the. NET development environment to replace characters.

After the database is copied, the homepage may be blank. At this time, you can copy the homepage content of the original wiki to the new wiki. The problem is solved. (Why ?)

How to add the sandbox function?
Add {sandbox} to the edited page, and the page is the sandbox page.

Mediawiki access permission settings management:
Http://blog.handsbrain.com/youzheng/entry/6746

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.