-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathinstall.php
89 lines (77 loc) · 2.55 KB
/
install.php
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
<?php
/*
Redaxo-Addon SEO-CheckUp
Installation
v1.6
by Falko Müller @ 2019-2021
package: redaxo5
*/
//Variablen deklarieren
$mypage = $this->getProperty('package');
$error = "";
//Vorgaben vornehmen
$stopwords = rex_file::get(rex_addon::get($mypage)->getPath('data/stopwords.txt'));
$stopwords = trim($stopwords);
if (!$this->hasConfig()):
$this->setConfig('config', [
'be_seo' => 'checked',
'be_seo_opened' => '',
'be_seo_showchecks' => '',
'be_seo_sidebar_wdf' => 'checked',
'be_seo_sidebar_snippet' => 'checked',
'be_seo_sidebar_priority' => '',
'be_seo_offlinekeywords' => '',
'be_seo_offlinearts' => '',
'be_seo_culist_count' => '20',
'be_seo_culist_title' => 'checked',
'be_seo_culist_desc' => 'checked',
'be_seo_culist_snippet' => '',
'be_seo_culist_h1' => 'checked',
'be_seo_culist_h2' => '',
'be_seo_culist_links' => '',
'be_seo_culist_words' => 'checked',
'be_seo_culist_wdf' => '',
'be_seo_title_min' => '50',
'be_seo_title_max' => '60',
'be_seo_title_words' => '6',
'be_seo_desc_min' => '130',
'be_seo_desc_max' => '160',
'be_seo_desc_words' => '12',
'be_seo_content_words' => '300',
'be_seo_content_words_dec' => '0',
'be_seo_density_min' => '2',
'be_seo_density_max' => '5',
'be_seo_url_max' => '55',
'be_seo_url_depths' => '3',
'be_seo_links' => '3',
'be_seo_hyphenator' => '',
'be_seo_removeblock_header' => '',
'be_seo_removeblock_footer' => '',
'be_seo_removeblock_nav' => '',
'be_seo_checks_selection' => 'checked',
'be_seo_checks_titledesc' => 'checked',
'be_seo_checks_opengraph' => 'checked',
'be_seo_checks_url' => 'checked',
'be_seo_checks_header' => 'checked',
'be_seo_checks_content' => 'checked',
'be_seo_checks_links' => 'checked',
'be_seo_checks_images' => 'checked',
'be_seo_checks_density' => '',
'be_seo_checks_wdf' => 'checked',
'be_seo_checks_flesch' => '',
'be_seo_wdf_stopwords' => $stopwords,
'be_seo_wdf_countwords' => '20',
'be_seo_wdf_skipshortwords' => '',
]);
endif;
//Datenbank-Spalten anlegen, sofern noch nicht verfügbar
rex_sql_table::get(rex::getTable('article'))
->ensureColumn(new rex_sql_column('seocu_keyword', 'varchar(255)'))
->ensureColumn(new rex_sql_column('seocu_result', 'varchar(100)'))
->ensureColumn(new rex_sql_column('seocu_data', 'text'))
->ensureColumn(new rex_sql_column('seocu_updatedate', 'varchar(50)'))
->alter();
//Module anlegen
//Aktionen anlegen
//Templates anlegen
?>