-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathprivate_setting.php
More file actions
103 lines (85 loc) · 4.66 KB
/
Copy pathprivate_setting.php
File metadata and controls
103 lines (85 loc) · 4.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<?php
/*
* File này dùng để thiết lập thông tin bản quyền cho nhà cung cấp code, copy file này cho vào thư mục theme cha: echbaytwo sau đó đổi các thông tin thành thông tin của nhà cung cấp là được.
*/
$arrs_private_info_setting = array(
'echbaydotcom' => array(
'parent_theme_default' => 'echbaytwo',
'url_update_parent_theme' => 'https://github.com/itvn9online/echbaytwo/archive/master.zip',
'dir_theme_unzip_to' => 'echbaytwo-master',
//'child_theme_default' => 'echbaytwo-child',
//'url_check_WGR_version' => 'https://world.webgiare.org/wp-content/echbaydotcom/VERSION',
// 'url_check_WGR_version' => 'https://raw.githubusercontent.com/itvn9online/echbaydotcom/master/VERSION',
'url_check_WGR_version' => 'https://raw.echbay.com/itvn9online/echbaydotcom/master/VERSION',
//'url_check_EB_theme_version' => 'https://world.webgiare.org/wp-content/themes/echbaytwo/VERSION',
// 'url_check_EB_theme_version' => 'https://raw.githubusercontent.com/itvn9online/echbaytwo/master/VERSION',
'url_check_EB_theme_version' => 'https://raw.echbay.com/itvn9online/echbaytwo/master/VERSION',
// 'theme_author_email' => 'lienhe@echbay.com',
'theme_site_upper' => 'WebGiaRe.org',
'theme_site_url' => 'https://webgiare.org/',
'theme_author' => 'WebGiáRẻ.org',
'author_email' => 'lienhe@echbay.com',
'site_upper' => 'EchBay.com',
'site_url' => 'https://echbay.com/',
'author' => 'ẾchBay.com'
),
'hostingviet' => array(
'parent_theme_default' => 'hostingviet',
//'dir_theme_unzip_to' => 'hostingviet-main',
//'child_theme_default' => 'hostingviet-child',
'theme_site_upper' => 'HostingViet.vn',
'theme_site_url' => 'https://hostingviet.vn/',
'theme_author' => 'HostingViet',
'author_email' => 'hotro@hostingviet.vn',
'site_upper' => 'HostingViet.vn',
'site_url' => 'https://hostingviet.vn/',
'author' => 'HostingViet'
),
'ifoxvn' => array(
'parent_theme_default' => 'ifoxvn',
//'dir_theme_unzip_to' => 'ifoxvn-main',
//'child_theme_default' => 'ifoxvn-child',
'theme_site_upper' => 'ifoxvn',
'theme_site_url' => 'https://ifox.vn/',
'theme_author' => 'ifoxvn',
'author_email' => 'hotro@ifox.vn',
'site_upper' => 'iFox.vn',
'site_url' => 'https://ifox.vn/',
'author' => 'ifoxvn'
),
'beegitalvn' => array(
'parent_theme_default' => 'beegitalvn',
//'dir_theme_unzip_to' => 'beegitalvn-main',
//'child_theme_default' => 'beegitalvn-child',
'theme_site_upper' => 'beegitalvn',
'theme_site_url' => 'https://beegital.vn/',
'theme_author' => 'beegitalvn',
'author_email' => 'hotro@beegital.vn',
'site_upper' => 'BeeGital.vn',
'site_url' => 'https://beegital.vn/',
'author' => 'beegitalvn'
)
);
$arr_private_info_setting = $arrs_private_info_setting['echbaydotcom'];
// từ nhà phát hành khác (nếu có)
// -> kiểm tra xem có file ghi tên của nhà phát hành không -> làm cách này để thông tin nhà phát hành không thể tự thay đổi được -> chống kiểu clone vô tội vạ, lỡ ảnh hưởng tới thương hiệu gốc của tác giả
//echo EB_THEME_URL . '<br>' . "\n";
//if ( is_file( EB_THEME_URL . 'copyright' ) ) {
// $private_info_setting = file_get_contents( EB_THEME_URL . 'copyright', 1 );
if (defined('EB_THEME_URL')) {
$private_info_setting = basename(EB_THEME_URL);
//echo $private_info_setting . '<br>' . "\n";
// có thì ghi đè dữ liệu lên thôi
if ($private_info_setting != 'echbaytwo' && isset($arrs_private_info_setting[$private_info_setting])) {
// các dữ liệu khác sẽ ghi đè từ theme
foreach ($arrs_private_info_setting[$private_info_setting] as $k => $v) {
$arr_private_info_setting[$k] = $v;
}
$arr_private_info_setting['author_logo'] = str_replace(ABSPATH, '', EB_THEME_URL) . 'logo.png';
// $arr_private_info_setting['url_check_WGR_version'] = 'https://raw.githubusercontent.com/itvn9online/echbaydotcom/master/VERSION';
$arr_private_info_setting['url_check_WGR_version'] = 'https://raw.echbay.com/itvn9online/echbaydotcom/master/VERSION';
// $arr_private_info_setting['url_check_EB_theme_version'] = 'https://raw.githubusercontent.com/itvn9online/echbaytwo/master/VERSION';
$arr_private_info_setting['url_check_EB_theme_version'] = 'https://raw.echbay.com/itvn9online/echbaytwo/master/VERSION';
}
}
//print_r($arr_private_info_setting);