www.gusucode.com > HadSky PHP轻论坛系统源码 v2.4.2源码程序 > ytqlt_v2.4.2.0701/phpscript/plug/tongji/install.php
<?php if (!defined('puyuetian')) exit('403'); if ($_G['USER']['ID'] == 1) { $plugid = $_G['TABLE']['PLUG'] -> getId("plugname", $_G['SYSTEM']['PLUGDIR']); if ($plugid) { $array['id'] = $plugid; } $array['plugname'] = $_G['SYSTEM']['PLUGDIR']; $array['plugdata'] = md5(md5(md5($_POST['password']))); $array['rank'] = 0; $array['open'] = 1; $_G['TABLE']['PLUG'] -> newData($array); header("Location:index.php?c=plug&plugname={$_G['SYSTEM']['PLUGDIR']}:index"); }