- $dir = DISCUZ_ROOT.'./source/class/seccode';
- $codedir = dir($dir);
- $seccodeext = $seccodesettings = array();
- while($entry = $codedir->read()) {
- if(!in_array($entry, array('.', '..')) && preg_match("/^seccode\_[\w\.]+$/", $entry) && substr($entry, -4) == '.php' && strlen($entry) < 30 && is_file($dir.'/'.$entry)) {
- @include_once $dir.'/'.$entry;
- $codeclass = substr($entry, 0, -4);
- if(class_exists($codeclass)) {
- $code = new $codeclass();
- $script = substr($codeclass, 8);
- if(!is_numeric($script)) {
- $seccodesettings[$script]['name'] = lang('seccode/'.$script, $code->name);
- $seccodesettings[$script]['copyright'] = lang('seccode/'.$script, $code->copyright);
- if(method_exists($code, 'getsetting')) {
- $seccodesettings[$script]['setting'] = $code->getsetting();
- }
- foreach($seccodetypearray as $k => $v) {
- $seccodetypearray[$k][2]['seccodeextra_'.$script] = 'none';
- }
- $seccodetypearray[] = array($script, $seccodesettings[$script]['name'], array('seccodeimageext' => 'none', 'seccodeimagewh' => 'none', 'seccodeextra_'.$script => ''));
- }
- }
- }
- }
- showtableheader('', '', 'id="base"'.($_GET['anchor'] != 'base' ? ' style="display: none"' : ''));
复制代码 更改为- showtableheader('', '', 'id="base"'.($_GET['anchor'] != 'base' ? ' style="display: none"' : ''));
复制代码 这样对新人比較好些喔 |