ModuleCode: themedownload 0.04 [技术论坛 - 主题综合讨论区] imag1

正在浏览:   1 名游客






ModuleCode: themedownload 0.04
Support Team
注册日期:
2006/6/26 10:17
来自 北京
所属群组:
注册会员
Dev+Hack
帖子: 883 | 精华: 5
等级: 26; EXP: 56
HP: 127 / 639
MP: 294 / 3282
离线
ModuleCode: themedownload 0.04
ModuleDescription: Download Themes.
Directory: /modules/themedownload/admin
File: /modules/themedownload/admin/allow.php
<?php
include dirname(__FILE__).'/../../../include/cp_header.php';
/* check theme */
if (false === isset($_GET["theme"])) {
    
redirect_header(XOOPS_URL."/modules/themedownload/admin/index.php");
}
$themehandler xoops_getmodulehandler("theme""themedownload");
/* @var $themehandler themedownloadthemehandler */
$theme $themehandler->get($_GET["theme"]);
if (
false === isset($theme)) {
    
redirect_header(XOOPS_URL."/modules/themedownload/admin/index.php");
}
/* check download */
if (false === $theme->is_downloaded()) {
    
redirect_header(XOOPS_URL."/modules/themedownload/admin/index.php");
}
/* check allow */
if (true === $theme->is_allow()) {
    
redirect_header(XOOPS_URL."/modules/themedownload/admin/index.php");
}
if (
"POST" === $_SERVER['REQUEST_METHOD']) {
    
$themehandler->allow($theme);
    
redirect_header(XOOPS_URL."/modules/themedownload/admin/index.php");
}
xoops_cp_header();
require_once 
XOOPS_ROOT_PATH '/class/template.php';
require_once 
XOOPS_ROOT_PATH '/class/theme.php';
require_once 
XOOPS_ROOT_PATH '/class/theme_blocks.php';
$xoopsThemeFactory =& new xos_opal_ThemeFactory();
$xoTheme =& $xoopsThemeFactory->createInstance();
$xoopsTpl =& $xoTheme->template;
/* @var $xoopsTpl XoopsTpl */
$xoopsTpl->assign_by_ref("theme"$theme);
$xoopsTpl->display("db:themedownload_admin_allow.html");
xoops_confirm(array(), """Are you sure want to allow?");
xoops_cp_footer();
?>

File: /modules/themedownload/admin/delete.php
<?php
include dirname(__FILE__).'/../../../include/cp_header.php';
/* check theme */
if (false === isset($_GET["theme"])) {
    
redirect_header(XOOPS_URL."/modules/themedownload/admin/index.php");
}
$themehandler xoops_getmodulehandler("theme""themedownload");
/* @var $themehandler themedownloadthemehandler */
$theme $themehandler->get($_GET["theme"]);
if (
false === isset($theme)) {
    
redirect_header(XOOPS_URL."/modules/themedownload/admin/index.php");
}
/* check download */
if (false === $theme->is_downloaded()) {
    
redirect_header(XOOPS_URL."/modules/themedownload/admin/index.php");
}
if (
"POST" === $_SERVER['REQUEST_METHOD']) {
    
$themehandler->delete($theme);
    
redirect_header(XOOPS_URL."/modules/themedownload/admin/index.php");
}
xoops_cp_header();
require_once 
XOOPS_ROOT_PATH '/class/template.php';
require_once 
XOOPS_ROOT_PATH '/class/theme.php';
require_once 
XOOPS_ROOT_PATH '/class/theme_blocks.php';
$xoopsThemeFactory =& new xos_opal_ThemeFactory();
$xoTheme =& $xoopsThemeFactory->createInstance();
$xoopsTpl =& $xoTheme->template;
/* @var $xoopsTpl XoopsTpl */
$xoopsTpl->assign_by_ref("theme"$theme);
$xoopsTpl->display("db:themedownload_admin_delete.html");
xoops_confirm(array(), """Are you sure want to delete?");
xoops_cp_footer();
?>

File: /modules/themedownload/admin/disallow.php
<?php
include dirname(__FILE__).'/../../../include/cp_header.php';
/* check theme */
if (false === isset($_GET["theme"])) {
    
redirect_header(XOOPS_URL."/modules/themedownload/admin/index.php");
}
$themehandler xoops_getmodulehandler("theme""themedownload");
/* @var $themehandler themedownloadthemehandler */
$theme $themehandler->get($_GET["theme"]);
if (
false === isset($theme)) {
    
redirect_header(XOOPS_URL."/modules/themedownload/admin/index.php");
}
/* check download */
if (false === $theme->is_downloaded()) {
    
redirect_header(XOOPS_URL."/modules/themedownload/admin/index.php");
}
/* check allow */
if (false === $theme->is_allow()) {
    
redirect_header(XOOPS_URL."/modules/themedownload/admin/index.php");
}
if (
"POST" === $_SERVER['REQUEST_METHOD']) {
    
$themehandler->disallow($theme);
    
redirect_header(XOOPS_URL."/modules/themedownload/admin/index.php");
}
xoops_cp_header();
require_once 
XOOPS_ROOT_PATH '/class/template.php';
require_once 
XOOPS_ROOT_PATH '/class/theme.php';
require_once 
XOOPS_ROOT_PATH '/class/theme_blocks.php';
$xoopsThemeFactory =& new xos_opal_ThemeFactory();
$xoTheme =& $xoopsThemeFactory->createInstance();
$xoopsTpl =& $xoTheme->template;
/* @var $xoopsTpl XoopsTpl */
$xoopsTpl->assign_by_ref("theme"$theme);
$xoopsTpl->display("db:themedownload_admin_disallow.html");
xoops_confirm(array(), """Are you sure want to disallow?");
xoops_cp_footer();
?>

File: /modules/themedownload/admin/download.php
<?php
include dirname(__FILE__).'/../../../include/cp_header.php';
/* prepare environment */
$themehandler xoops_getmodulehandler("theme""themedownload");
/* @var $themehandler themedownloadthemehandler */
if (false === $themehandler->prepare_environment()) {
    
redirect_header(XOOPS_URL."/modules/themedownload/admin/help.php");
}
/* check theme */
if (false === isset($_GET["theme"])) {
    
redirect_header(XOOPS_URL."/modules/themedownload/admin/index.php");
}
$theme $themehandler->get($_GET["theme"]);
if (
false === isset($theme)) {
    
redirect_header(XOOPS_URL."/modules/themedownload/admin/index.php");
}
if (
true === $theme->is_downloaded()) {
    
redirect_header(XOOPS_URL."/modules/themedownload/admin/index.php");
}
if (
"POST" === $_SERVER['REQUEST_METHOD']) {
    
$themehandler->download($theme);
    if (
$theme->get_md5() === $theme->get_filemd5()) {
        
$zipentries $themehandler->extract($theme);
    }
}
xoops_cp_header();
require_once 
XOOPS_ROOT_PATH '/class/template.php';
require_once 
XOOPS_ROOT_PATH '/class/theme.php';
require_once 
XOOPS_ROOT_PATH '/class/theme_blocks.php';
$xoopsThemeFactory =& new xos_opal_ThemeFactory();
$xoTheme =& $xoopsThemeFactory->createInstance();
$xoopsTpl =& $xoTheme->template;
/* @var $xoopsTpl XoopsTpl */
$xoopsTpl->assign_by_ref("theme"$theme);
if (
"POST" === $_SERVER['REQUEST_METHOD']) {
    
$xoopsTpl->assign_by_ref("zipentries"$zipentries);
}
$xoopsTpl->display("db:themedownload_admin_download.html");
if (
"POST" !== $_SERVER['REQUEST_METHOD']) {
    
xoops_confirm(array(), """Are you sure want to download?");
}
xoops_cp_footer();
?>

File: /modules/themedownload/admin/help.php
<?php
include dirname(__FILE__).'/../../../include/cp_header.php';
xoops_cp_header();
require_once 
XOOPS_ROOT_PATH '/class/template.php';
require_once 
XOOPS_ROOT_PATH '/class/theme.php';
require_once 
XOOPS_ROOT_PATH '/class/theme_blocks.php';
$xoopsThemeFactory =& new xos_opal_ThemeFactory();
$xoTheme =& $xoopsThemeFactory->createInstance();
$xoopsTpl =& $xoTheme->template;
$xoopsTpl->display("db:themedownload_admin_help.html");
xoops_cp_footer();
?>

File: /modules/themedownload/admin/index.php
<?php
include dirname(__FILE__).'/../../../include/cp_header.php';
xoops_cp_header();
require_once 
XOOPS_ROOT_PATH.'/class/template.php';
require_once 
XOOPS_ROOT_PATH.'/class/theme.php';
require_once 
XOOPS_ROOT_PATH.'/class/theme_blocks.php';
$xoopsThemeFactory =& new xos_opal_ThemeFactory();
$xoTheme =& $xoopsThemeFactory->createInstance();
$xoopsTpl =& $xoTheme->template;
/* @var $xoopsTpl XoopsTpl */
$themehandler xoops_getmodulehandler("theme""themedownload");
/* @var $themehandler themedownloadthemehandler */
$xoopsTpl->assign_by_ref("themes"$themehandler->getAll());
$xoopsTpl->display("db:themedownload_admin_index.html");
xoops_cp_footer();
?>

Directory: /modules/themedownload/class
File: /modules/themedownload/class/theme.php
<?php
if (false === defined("XOOPS_ROOT_PATH")) {
    exit();
}
define("THEMEDOWNLOAD_THEME_SET_ALLOWED""theme_set_allowed");
final class 
themedownloadtheme {
    private 
$name;
    private 
$preview;
    private 
$url;
    private 
$zipbase;
    private 
$md5;
    
/* override */
    
public function __construct($name$preview$url$zipbase$md5) {
        
$this->name strval($name);
        
$this->preview strval($preview);
        
$this->url strval($url);
        
$this->zipbase strval($zipbase);
        
$this->md5 strval($md5);
        return;
    }
    private function 
__clone () {
        return;
    }
    
/* getter / setter */
    
public function get_name () {
        return 
$this->name;
    }
    public function 
get_preview () {
        return 
$this->preview;
    }
    public function 
get_url () {
        return 
$this->url;
    }
    public function 
get_zipbase () {
        return 
$this->zipbase;
    }
    public function 
get_md5 () {
        return 
$this->md5;
    }
    public function 
get_downloadzip () {
        
$themehandler xoops_getmodulehandler("theme""themedownload");
        
/* @var $themehandler themedownloadthemehandler */
        
return $themehandler->get_downloadzipdir()."/".$this->name.".zip";
    }
    public function 
get_themedir () {
        
$themehandler xoops_getmodulehandler("theme""themedownload");
        
/* @var $themehandler themedownloadthemehandler */
        
return $themehandler->get_themedir()."/".$this->name;
    }
    public function 
is_downloaded () {
        return 
true === file_exists($this->get_downloadzip());
    }
    public function 
get_filemd5 () {
        return 
md5_file($this->get_downloadzip());
    }
    public function 
is_allow () {
        global 
$xoopsConfig;
        return 
true === in_array($this->name,
            
$xoopsConfig[THEMEDOWNLOAD_THEME_SET_ALLOWED]);
    }
}
final class 
themedownloadthemehandler {
    private 
$themes;
    
/* override */
    
public function __construct() {
        return;
    }
    private function 
__clone () {
        return;
    }
    
/* cache */
    
private function ensure_themes () {
        if (
true === isset($this->themes)) {
            return;
        }
        
$this->themes = array();
        
$themesdata = require(dirname(__FILE__)."/../include/themesdata.php");
        foreach (
$themesdata as $themedata) {
            
$this->themes[$themedata["name"]] = new themedownloadtheme(
                
$themedata["name"], $themedata["preview"], $themedata["url"],
                
$themedata["zipbase"], $themedata["md5"]);
        }
        return;
    }
    
/* operation */
    /**
     * @return themedownloadtheme
     */
    
public function get ($name) {
        
settype($name"string");
        
$this->ensure_themes();
        if (
false === array_key_exists($name$this->themes)) {
            return;
        }
        return 
$this->themes[$name];
    }
    public function 
getAll () {
        
$this->ensure_themes();
        return 
$this->themes;
    }
    public function 
get_downloadzipdir () {
        return 
XOOPS_UPLOAD_PATH."/themedownload";
    }
    public function 
get_themedir () {
        return 
XOOPS_ROOT_PATH."/themes";
    }
    private function 
rmdir ($dir) {
        if (
XOOPS_ROOT_PATH !== substr($dir0strlen(XOOPS_ROOT_PATH))) {
            return;
        }
        if (
true === is_dir($dir)) {
            foreach(
scandir($dir) as $filename) {
                switch (
$filename) {
                    case 
".":
                    case 
"..":
                        break;
                    default:
                        
$filepath $dir."/".$filename;
                        if (
true === is_dir($filepath)) {
                            
$this->rmdir($filepath);
                        } else {
                            
unlink($filepath);
                        }
                        break;
                }
            }
            
rmdir($dir);
        }
        return;
    }
    
/* operation */
    
public function delete (themedownloadtheme $theme) {
        
$this->ensure_themes();
        if (
false === in_array($theme$this->themes)) {
            return;
        }
        if (
false === $theme->is_downloaded()) {
            return;
        }
        
unlink($theme->get_downloadzip());
        
$this->rmdir($theme->get_themedir());
        return;
    }
    public function 
download (themedownloadtheme $theme) {
        
$this->ensure_themes();
        if (
false === in_array($theme$this->themes)) {
            return;
        }
        if (
true === $theme->is_downloaded()) {
            return;
        }
        if (
false === is_dir($this->get_downloadzipdir())) {
            
mkdir($this->get_downloadzipdir());
        }
        
$filehandle fopen($theme->get_downloadzip(), "w");
        
$curlhandle curl_init();
        
curl_setopt($curlhandleCURLOPT_FILE$filehandle);
        
curl_setopt($curlhandleCURLOPT_URL$theme->get_url());
        
curl_exec($curlhandle);
        
curl_close($curlhandle);
        
fclose($filehandle);
        return;
    }
    public function 
extract (themedownloadtheme $theme) {
        if (
false === is_dir($this->get_themedir())) {
            
mkdir($this->get_themedir());
        }
        if (
false === is_dir($theme->get_themedir())) {
            
mkdir($theme->get_themedir());
        }
        
$zipentries = array();
        
$ziphandle zip_open($theme->get_downloadzip());
        while (
false !== ($zipentry zip_read($ziphandle))) {
            
$zipentryname zip_entry_name($zipentry);
            
$zipentryfilesize zip_entry_filesize($zipentry);
            
$filepath "";
            if(
$theme->get_zipbase() ===
                
substr($zipentryname0strlen($theme->get_zipbase()))) {
                
$filepath $theme->get_themedir()."/".
                    
substr($zipentrynamestrlen($theme->get_zipbase()));
                if (
"/" === substr($zipentrynamestrlen($zipentryname) - 1)) {
                    if (
false === is_dir($filepath)) {
                        
mkdir($filepath);
                    }
                } else {
                    if (
true === zip_entry_open($ziphandle$zipentry"r")) {
                        if (
false === is_dir(dirname($filepath))) {
                            
mkdir(dirname($filepath));
                        }
                        
file_put_contents($filepath,
                            
zip_entry_read($zipentry$zipentryfilesize));
                        
zip_entry_close($zipentry);
                    }
                }
            }
            
$zipentries[] = array(
                
"name" => $zipentryname,
                
"filesize" => $zipentryfilesize,
                
"compressedsize" => zip_entry_compressedsize($zipentry),
                
"compressionmethod" => zip_entry_compressionmethod($zipentry),
                
"filepath" => $filepath,
            );
        }
        
zip_close($ziphandle);
        return 
$zipentries;
    }
    public function 
prepare_environment () {
        if (
false === extension_loaded("zip")) {
            
$prefix = (PHP_SHLIB_SUFFIX === 'dll') ? 'php_' '';
            
dl($prefix.'zip.'.PHP_SHLIB_SUFFIX);
        }
        if (
false === extension_loaded("zip")) {
            return 
false;
        }
        return 
true;
    }
    public function 
allow (themedownloadtheme $theme) {
        
$this->ensure_themes();
        if (
false === in_array($theme$this->themes)) {
            return;
        }
        if (
false === $theme->is_downloaded()) {
            return;
        }
        if (
true === $theme->is_allow()) {
            return;
        }
        
$confighandler =& xoops_gethandler('config');
        
/* @var $confighandler XoopsConfigHandler */
        
$criteria = new Criteria("conf_name"THEMEDOWNLOAD_THEME_SET_ALLOWED);
        list(
$config) = $confighandler->getConfigs($criteria);
        
/* @var $config XoopsConfigItem */
        
$value $config->getConfValueForOutput();
        
$value array_merge($value, array($theme->get_name()));
        
$config->setConfValueForInput($value);
        
$confighandler->insertConfig($config);
        return;
    }
    public function 
disallow (themedownloadtheme $theme) {
        
$this->ensure_themes();
        if (
false === in_array($theme$this->themes)) {
            return;
        }
        if (
false === $theme->is_downloaded()) {
            return;
        }
        if (
false === $theme->is_allow()) {
            return;
        }
        
$confighandler =& xoops_gethandler('config');
        
/* @var $confighandler XoopsConfigHandler */
        
$criteria = new Criteria("conf_name"THEMEDOWNLOAD_THEME_SET_ALLOWED);
        list(
$config) = $confighandler->getConfigs($criteria);
        
/* @var $config XoopsConfigItem */
        
$value $config->getConfValueForOutput();
        
$value array_diff($value, array($theme->get_name()));
        
$config->setConfValueForInput($value);
        
$confighandler->insertConfig($config);
        return;
    }
}
?>

Directory: /modules/themedownload/include
Directory: /modules/themedownload/templates
File: /modules/themedownload/templates/themedownload_admin_allow.html

<{strip}>
    <
table>
        <
tr>
            <
th>
                
Name
            
</th>
            <
td class="<{cycle values="even,odd"}>">
                <{
$theme->get_name()}>
            </
td>
        </
tr>
        <
tr>
            <
th>
                
Preview
            
</th>
            <
td class="<{cycle values="even,odd"}>">
                <
a href="<{$theme->get_preview()}>" target="_blank">
                    
Preview
                
</a>
            </
td>
        </
tr>
        <
tr>
            <
th>
                
MD5
            
</th>
            <
td class="<{cycle values="even,odd"}>">
                <{
$theme->get_md5()}>
            </
td>
        </
tr>
    </
table>
<{/
strip}>

File: /modules/themedownload/templates/themedownload_admin_delete.html

<{strip}>
    <
table>
        <
tr>
            <
th>
                
Name
            
</th>
            <
td class="<{cycle values="even,odd"}>">
                <{
$theme->get_name()}>
            </
td>
        </
tr>
        <
tr>
            <
th>
                
Preview
            
</th>
            <
td class="<{cycle values="even,odd"}>">
                <
a href="<{$theme->get_preview()}>" target="_blank">
                    
Preview
                
</a>
            </
td>
        </
tr>
        <
tr>
            <
th>
                
MD5
            
</th>
            <
td class="<{cycle values="even,odd"}>">
                <{
$theme->get_md5()}>
            </
td>
        </
tr>
    </
table>
<{/
strip}>

File: /modules/themedownload/templates/themedownload_admin_disallow.html

<{strip}>
    <
table>
        <
tr>
            <
th>
                
Name
            
</th>
            <
td class="<{cycle values="even,odd"}>">
                <{
$theme->get_name()}>
            </
td>
        </
tr>
        <
tr>
            <
th>
                
Preview
            
</th>
            <
td class="<{cycle values="even,odd"}>">
                <
a href="<{$theme->get_preview()}>" target="_blank">
                    
Preview
                
</a>
            </
td>
        </
tr>
        <
tr>
            <
th>
                
MD5
            
</th>
            <
td class="<{cycle values="even,odd"}>">
                <{
$theme->get_md5()}>
            </
td>
        </
tr>
    </
table>
<{/
strip}>

File: /modules/themedownload/templates/themedownload_admin_download.html

<{strip}>
    <
table>
        <
tr>
            <
th>
                
Name
            
</th>
            <
td class="<{cycle values="even,odd"}>">
                <{
$theme->get_name()}>
            </
td>
        </
tr>
        <
tr>
            <
th>
                
Preview
            
</th>
            <
td class="<{cycle values="even,odd"}>">
                <
a href="<{$theme->get_preview()}>" target="_blank">
                    
Preview
                
</a>
            </
td>
        </
tr>
        <
tr>
            <
th>
                
MD5
            
</th>
            <
td class="<{cycle values="even,odd"}>">
                <{
$theme->get_md5()}>
            </
td>
        </
tr>
        <{if 
true === $theme->is_downloaded()}>
            <
tr>
                <
th>
                    
File MD5
                
</th>
                <
td class="<{cycle values="even,odd"}>">
                    <{
$theme->get_filemd5()}>
                </
td>
            </
tr>
        <{/if}>
    </
table>
    <{if 
true === isset($zipentries)}>
        <
table>
            <
tr>
                <
th>
                    
Name
                
</th>
                <
th>
                    
File Size
                
</th>
                <
th>
                    
Compressed Size
                
</th>
                <
th>
                    
Compression Method
                
</th>
                <
th>
                    
File Path
                
</th>
            </
tr>
            <{foreach 
from=$zipentries item="zipentry"}>
                <
tr class="<{cycle values="even,odd"}>">
                    <
td>
                        <{
$zipentry.name}>
                    </
td>
                    <
td>
                        <{
$zipentry.filesize}>
                    </
td>
                    <
td>
                        <{
$zipentry.compressedsize}>
                    </
td>
                    <
td>
                        <{
$zipentry.compressionmethod}>
                    </
td>
                    <
td>
                        <{
$zipentry.filepath}>
                    </
td>
                </
tr>
            <{/foreach}>
        </
table>
    <{/if}>
    <
a href="<{$xoops_url}>/modules/themedownload/admin/index.php#<{$theme->get_name()}>">
        <{
$smarty.const._BACK}>
    </
a>
<{/
strip}>

File: /modules/themedownload/templates/themedownload_admin_help.html

<{strip}>
    <
div>
        
This module require <a href="http://www.php.net/manual/en/ref.zip.php">zip extension.</a>
    </
div>
<{/
strip}>

File: /modules/themedownload/templates/themedownload_admin_index.html

<{strip}>
    <
table>
        <
tr>
            <
th>
                
Name
            
</th>
            <
th>
                
Preview
            
</th>
            <
th>
                
Download
            
</th>
            <
th>
                
Delete
            
</th>
            <
th>
                
Allow
            
</th>
            <
th>
                
Disallow
            
</th>
            <
th>
                
Select
            
</th>
        </
tr>
        <{foreach 
from=$themes item="theme"}>
            <
tr class="<{cycle values="even,odd"}>">
                <
td>
                    <
a name="<{$theme->get_name()}>"></a>
                    <{
$theme->get_name()}>
                </
td>
                <
td>
                    <
a href="<{$theme->get_preview()}>" target="_blank">
                        
Preview
                    
</a>
                </
td>
                <
td>
                    <{if 
false === $theme->is_downloaded()}>
                        <
a href="<{$xoops_url}>/modules/themedownload/admin/download.php?theme=<{$theme->get_name()}>">
                            
Download
                        
</a>
                    <{/if}>
                </
td>
                <
td>
                    <{if 
true === $theme->is_downloaded()}>
                        <
a href="<{$xoops_url}>/modules/themedownload/admin/delete.php?theme=<{$theme->get_name()}>">
                            
Delete
                        
</a>
                    <{/if}>
                </
td>
                <
td>
                    <{if 
true === $theme->is_downloaded()}>
                        <{if 
false === $theme->is_allow()}>
                            <
a href="<{$xoops_url}>/modules/themedownload/admin/allow.php?theme=<{$theme->get_name()}>">
                                
Allow
                            
</a>
                        <{/if}>
                    <{/if}>
                </
td>
                <
td>
                    <{if 
true === $theme->is_downloaded()}>
                        <{if 
true === $theme->is_allow()}>
                            <
a href="<{$xoops_url}>/modules/themedownload/admin/disallow.php?theme=<{$theme->get_name()}>">
                                
Disallow
                            
</a>
                        <{/if}>
                    <{/if}>
                </
td>
                <
td>
                    <{if 
true === $theme->is_downloaded()}>
                        <{if 
true === $theme->is_allow()}>
                            <
a href="<{$xoops_url}>?xoops_theme_select=<{$theme->get_name()}>" target="_blank">
                                
Select
                            
</a>
                        <{/if}>
                    <{/if}>
                </
td>
            </
tr>
        <{/foreach}>
    </
table>
<{/
strip}>

File: /modules/themedownload/xoops_version.php
<?php
if (false === defined("XOOPS_ROOT_PATH")) {
    exit();
}
$modversion["name"] = "Theme Download";
$modversion["version"] = 0.04;
$modversion["description"] = "Download Themes.";
$modversion["author"] = "Hu Zhenghui http://xoops.org.cn/userinfo.php?uid=8616 QQ: 443089607 QQMail: [email protected] Skype: huzhenghui GMail: [email protected] GTalk: huzhengh";
$modversion['license'] = "All rights reserved.";
$modversion['image'] = "../../images/logo.gif";
$modversion['dirname'] = "themedownload";
$modversion['hasAdmin'] = 1;
$modversion['adminindex'] = "admin/index.php";
$i 1;
$modversion['templates'][$i]['file'] = 'themedownload_admin_index.html';
$modversion['templates'][$i]['description'] = '';
$i++;
$modversion['templates'][$i]['file'] = 'themedownload_admin_download.html';
$modversion['templates'][$i]['description'] = '';
$i++;
$modversion['templates'][$i]['file'] = 'themedownload_admin_delete.html';
$modversion['templates'][$i]['description'] = '';
$i++;
$modversion['templates'][$i]['file'] = 'themedownload_admin_help.html';
$modversion['templates'][$i]['description'] = '';
$i++;
$modversion['templates'][$i]['file'] = 'themedownload_admin_allow.html';
$modversion['templates'][$i]['description'] = '';
$i++;
$modversion['templates'][$i]['file'] = 'themedownload_admin_disallow.html';
$modversion['templates'][$i]['description'] = '';
$modversion["modulecode"]["ignore"][] = "/modules/themedownload/include/themesdata.php";
?>

附件:


zip themedownload.0.04.zip 大小: 20.92 KB; 下载次数: 87

2007/11/26 22:45
_________________
Skype: huzhenghui
QQ: 443089607
QQ Mail: [email protected]
GTalk: huzhengh
GMail: [email protected]
工具箱 短消息 Email PDF 书签 打印 举报 回顶部


回复: themedownload 0.01
网站管理员
注册日期:
2005/10/29 13:32
来自 北京
所属群组:
网站管理员
注册会员
ComSupp
推广组
帖子: 2167 | 精华: 24
等级: 38; EXP: 12
HP: 371 / 928
MP: 722 / 6548
离线
多谢分享!
没有更多介绍? 看来要安装试验一下.

2007/11/26 22:48
工具箱 短消息 Email PDF 书签 打印 举报 回顶部


回复: themedownload 0.01
Support Team
注册日期:
2006/6/26 10:17
来自 北京
所属群组:
注册会员
Dev+Hack
帖子: 883 | 精华: 5
等级: 26; EXP: 56
HP: 127 / 639
MP: 294 / 3282
离线
累死我了,把theme站的所有主题的下载地址都找了一遍,最后落实了二百多个。

2007/11/26 22:54
_________________
Skype: huzhenghui
QQ: 443089607
QQ Mail: [email protected]
GTalk: huzhengh
GMail: [email protected]
工具箱 短消息 Email PDF 书签 打印 举报 回顶部


回复: themedownload 0.01
资深会员
注册日期:
2006/11/30 20:48
来自 pekin
所属群组:
注册会员
Dev+Hack
帖子: 288 | 精华: 12
等级: 15; EXP: 87
HP: 74 / 371
MP: 96 / 1442
离线
楼主又在研发什么模块。这么大的投入。

2007/11/27 3:15
_________________
哦的小站,发点牢骚。http://ez.xoops.cn欢迎大家踩踩。
工具箱 短消息 Email PDF 书签 打印 举报 回顶部


回复: themedownload 0.01
Support Team
注册日期:
2006/6/26 10:17
来自 北京
所属群组:
注册会员
Dev+Hack
帖子: 883 | 精华: 5
等级: 26; EXP: 56
HP: 127 / 639
MP: 294 / 3282
离线
引文:

ezsky 写道:
楼主又在研发什么模块。这么大的投入。

就是做这个模块啊

2007/11/27 9:35
_________________
Skype: huzhenghui
QQ: 443089607
QQ Mail: [email protected]
GTalk: huzhengh
GMail: [email protected]
工具箱 短消息 Email PDF 书签 打印 举报 回顶部


回复: themedownload 0.01
资深会员
注册日期:
2006/5/25 19:53
所属群组:
注册会员
帖子: 335 | 精华: 2
等级: 17; EXP: 9
HP: 0 / 402
MP: 111 / 2170
离线
呵呵,怎么不做一点说明呢

2007/11/27 10:26
工具箱 短消息 Email PDF 书签 打印 举报 回顶部


回复: themedownload 0.01
资深会员
注册日期:
2006/11/30 20:48
来自 pekin
所属群组:
注册会员
Dev+Hack
帖子: 288 | 精华: 12
等级: 15; EXP: 87
HP: 74 / 371
MP: 96 / 1442
离线
引文:

胡争辉 写道:
累死我了,把theme站的所有主题的下载地址都找了一遍,最后落实了二百多个。

哈哈,有点意思,还以为是个themes呢。原来是好多的themes哇。

2007/11/27 12:41
_________________
哦的小站,发点牢骚。http://ez.xoops.cn欢迎大家踩踩。
工具箱 短消息 Email PDF 书签 打印 举报 回顶部


回复: themedownload 0.01
Support Team
注册日期:
2006/6/26 10:17
来自 北京
所属群组:
注册会员
Dev+Hack
帖子: 883 | 精华: 5
等级: 26; EXP: 56
HP: 127 / 639
MP: 294 / 3282
离线
引文:

dufei22 写道:
呵呵,怎么不做一点说明呢

一个半自动下载theme的模块

2007/11/27 20:44
_________________
Skype: huzhenghui
QQ: 443089607
QQ Mail: [email protected]
GTalk: huzhengh
GMail: [email protected]
工具箱 短消息 Email PDF 书签 打印 举报 回顶部


回复: themedownload 0.01
Support Team
注册日期:
2006/6/26 10:17
来自 北京
所属群组:
注册会员
Dev+Hack
帖子: 883 | 精华: 5
等级: 26; EXP: 56
HP: 127 / 639
MP: 294 / 3282
离线
引文:

ezsky 写道:
哈哈,有点意思,还以为是个themes呢。原来是好多的themes哇。

二百多个

2007/11/27 20:46
_________________
Skype: huzhenghui
QQ: 443089607
QQ Mail: [email protected]
GTalk: huzhengh
GMail: [email protected]
工具箱 短消息 Email PDF 书签 打印 举报 回顶部





可以查看帖子。
不可发帖。
不可回复。
不可编辑自己的帖子。
不可删除自己的帖子。
不可发起投票调查。
不可在投票调查中投票。
不可上传附件。
不可不经审核直接发帖。
不可使用主题类别。
不可以使用HTML语法。
不可以使用签名档。

[高级搜索]