Qibocms classification injection can be upgraded to management by yourself

Source: Internet
Author: User

Qibocms classification system. In member/company. php

$ CpDB = $ db-> get_one ("SELECT * FROM '{$ pre} memberdata_1' WHERE uid = '$ lfjuid'"); if ($ step = 2) {foreach ($ _ post as $ key =>$ value) {$ _ POST [$ key] = filtrate ($ value) ;}@ extract ($ _ POST ); if (! $ Cpname) {showerr ("enterprise name cannot be blank");} if (! $ Cptype) {showerr ("select enterprise type");} if (! $ Cptrade) {showerr ("select the enterprise industry");} if (! $ Cpfounder) {showerr ("enterprise legal representative cannot be blank");} if (! $ Cptelephone) {showerr ("company phone number cannot be blank");} if (! $ Cpaddress) {showerr ("company address cannot be blank");} if (! $ Cpcity) {showerr ("select the city of the enterprise");} if (! $ Cpcode) {showerr ("Organization Code cannot be blank");} if (! Ereg ("^ [0-9] {8}", $ cpcode) {showerr ("Please enter the Organization Code carefully"); // if you do not want to strictly control the Organization Code, please delete this line} if (! $ CpDB) {$ db-> query ("insert into '{$ pre} memberdata_1' ('uid', 'cpname', 'cptype', 'cptype ', 'cptrade ', 'cpproduct', 'cpcity', 'cpfoundtime', 'cpfounder', 'cpmannum', 'cpmoney', 'cpcode', 'cppermit ', 'cpweb ', 'cppostcode', 'cptelphone', 'cpfax', 'cpaddress', 'cplinkman ', 'cpmobphone', 'cpqq', 'cpmsn ') VALUES (' $ lfjuid ', '$ cpname',' $ cplogo ',' $ cptype ',' $ cptrade ',' $ cpproduct', '$ cpcity ',' $ Cpfoundtime ',' $ cpfounder ',' $ cpmannum ',' $ cpmoney ',' $ cpcode ',' $ cppermit ',' $ cpweb', '$ cppostcode ', '$ cptelephone', '$ cpfax', '$ cpaddress', '$ cplinkman', '$ cpmobphone', '$ cpqq', '$ cpmsn ')"); $ grouptype = $ webdb [AutoPassCompany]? '1': '-1'; $ db-> query ("UPDATE {$ pre} memberdata SET grouptype =' $ grouptype 'where uid = '$ lfjuid '"); refreshto ("company. php? Job = edit "," Your materials have been submitted ", 1);} else {$ db-> query (" UPDATE {$ pre} memberdata_1 SET cpname = '$ cpname ', cplogo = '$ cplogo', cptype = '$ cptype', cptrade =' $ cptrade ', cpproduct =' $ cpproduct', cpcity = '$ cpcity ', cpfoundtime = '$ cpfoundtime', cpfounder =' $ cpfounder', cpmannum = '$ cpmannum', cpmoney =' $ cpmoney ', cpcode =' $ cpcode ', cppermit = '$ cppermit', cpweb = '$ cpweb', cppostcode =' $ cppostcode', cptelephone = '$ cptelephone', cpfax = '$ cpfax', cpaddh Ss = '$ cpaddress', cplinkman =' $ cplinkman ', cpmobphone =' $ cpmobphone ', cpqq =' $ cpqq ', cpmsn = '$ cpmsn' WHERE uid = '$ lfjuid' "); refreshto (" company. php? Job = edit "," modified successfully ", 1 );}}

 

Here there is an obvious variable that overwrites the extract to overwrite the table prefix and then complete the statement by yourself. We can see an update later. Therefore, you can directly upgrade yourself to management.

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.