Thomas Buck 12 лет назад
Родитель
Сommit
2f34001f2e
5 измененных файлов: 80 добавлений и 80 удалений
  1. 4
    4
      macros.py
  2. Двоичные данные
      macros.pyc
  3. 37
    37
      output/index.php
  4. 37
    37
      output/mobile/index.php
  5. 2
    2
      output/rss.xml

+ 4
- 4
macros.py Просмотреть файл

79
     fp = open(os.path.join(options.project, "output", "index.php"), 'w')
79
     fp = open(os.path.join(options.project, "output", "index.php"), 'w')
80
     fp.write("<?\n")
80
     fp.write("<?\n")
81
     fp.write("// Auto generated xyCMS compatibility index.php\n")
81
     fp.write("// Auto generated xyCMS compatibility index.php\n")
82
-    fp.write("$loc = 'index.de.html';\n")
82
+    fp.write("$loc = 'http://xythobuz.de/index.de.html';\n")
83
     fp.write("if (isset($_GET['p'])) {\n")
83
     fp.write("if (isset($_GET['p'])) {\n")
84
     fp.write("    if (isset($_GET['lang'])) {\n")
84
     fp.write("    if (isset($_GET['lang'])) {\n")
85
     fp.write("        $_GET['p'] .= 'EN';\n")
85
     fp.write("        $_GET['p'] .= 'EN';\n")
90
             tmp = p["compat"]
90
             tmp = p["compat"]
91
             if p.get("lang", DEFAULT_LANG) == DEFAULT_LANG:
91
             if p.get("lang", DEFAULT_LANG) == DEFAULT_LANG:
92
                 tmp = tmp + "EN"
92
                 tmp = tmp + "EN"
93
-            fp.write(_COMPAT % (tmp, options.base_url.rstrip('/'), p.url))
93
+            fp.write(_COMPAT % (tmp, "http://xythobuz.de", p.url))
94
             fp.write("\n")
94
             fp.write("\n")
95
     fp.write(_COMPAT_404 % "/404.html")
95
     fp.write(_COMPAT_404 % "/404.html")
96
     fp.write("    }\n")
96
     fp.write("    }\n")
211
     fp = codecs.open(os.path.join(directory, "index.php"), "w", "utf-8")
211
     fp = codecs.open(os.path.join(directory, "index.php"), "w", "utf-8")
212
     fp.write("<?\n")
212
     fp.write("<?\n")
213
     fp.write("// Auto generated xyCMS compatibility mobile/index.php\n")
213
     fp.write("// Auto generated xyCMS compatibility mobile/index.php\n")
214
-    fp.write("$loc = 'index.de.mob.html';\n")
214
+    fp.write("$loc = 'http://www.xythobuz.de/index.de.mob.html';\n")
215
     fp.write("if (isset($_GET['p'])) {\n")
215
     fp.write("if (isset($_GET['p'])) {\n")
216
     fp.write("    if (isset($_GET['lang'])) {\n")
216
     fp.write("    if (isset($_GET['lang'])) {\n")
217
     fp.write("        $_GET['p'] .= 'EN';\n")
217
     fp.write("        $_GET['p'] .= 'EN';\n")
222
             tmp = p["compat"]
222
             tmp = p["compat"]
223
             if p.get("lang", DEFAULT_LANG) == DEFAULT_LANG:
223
             if p.get("lang", DEFAULT_LANG) == DEFAULT_LANG:
224
                 tmp = tmp + "EN"
224
                 tmp = tmp + "EN"
225
-            fp.write(_COMPAT_MOB % (tmp, options.base_url.rstrip('/'), re.sub(".html", ".mob.html", p.url)))
225
+            fp.write(_COMPAT_MOB % (tmp, "http://xythobuz.de", re.sub(".html", ".mob.html", p.url)))
226
             fp.write("\n")
226
             fp.write("\n")
227
     fp.write(_COMPAT_404_MOB % "/404.mob.html")
227
     fp.write(_COMPAT_404_MOB % "/404.mob.html")
228
     fp.write("    }\n")
228
     fp.write("    }\n")

Двоичные данные
macros.pyc Просмотреть файл


+ 37
- 37
output/index.php Просмотреть файл

1
 <?
1
 <?
2
 // Auto generated xyCMS compatibility index.php
2
 // Auto generated xyCMS compatibility index.php
3
-$loc = 'index.de.html';
3
+$loc = 'http://xythobuz.de/index.de.html';
4
 if (isset($_GET['p'])) {
4
 if (isset($_GET['p'])) {
5
     if (isset($_GET['lang'])) {
5
     if (isset($_GET['lang'])) {
6
         $_GET['p'] .= 'EN';
6
         $_GET['p'] .= 'EN';
7
     }
7
     }
8
     switch($_GET['p']) {
8
     switch($_GET['p']) {
9
         case "blog":
9
         case "blog":
10
-            $loc = "/blog.de.html";
10
+            $loc = "http://xythobuz.de/blog.de.html";
11
             break;
11
             break;
12
 
12
 
13
         case "blogEN":
13
         case "blogEN":
14
-            $loc = "/blog.html";
14
+            $loc = "http://xythobuz.de/blog.html";
15
             break;
15
             break;
16
 
16
 
17
         case "kontakt":
17
         case "kontakt":
18
-            $loc = "/contact.de.html";
18
+            $loc = "http://xythobuz.de/contact.de.html";
19
             break;
19
             break;
20
 
20
 
21
         case "kontaktEN":
21
         case "kontaktEN":
22
-            $loc = "/contact.html";
22
+            $loc = "http://xythobuz.de/contact.html";
23
             break;
23
             break;
24
 
24
 
25
         case "home":
25
         case "home":
26
-            $loc = "/index.de.html";
26
+            $loc = "http://xythobuz.de/index.de.html";
27
             break;
27
             break;
28
 
28
 
29
         case "homeEN":
29
         case "homeEN":
30
-            $loc = "/index.html";
30
+            $loc = "http://xythobuz.de/index.html";
31
             break;
31
             break;
32
 
32
 
33
         case "avrserlib":
33
         case "avrserlib":
34
-            $loc = "/avrserial.de.html";
34
+            $loc = "http://xythobuz.de/avrserial.de.html";
35
             break;
35
             break;
36
 
36
 
37
         case "avrserlibEN":
37
         case "avrserlibEN":
38
-            $loc = "/avrserial.html";
38
+            $loc = "http://xythobuz.de/avrserial.html";
39
             break;
39
             break;
40
 
40
 
41
         case "c250":
41
         case "c250":
42
-            $loc = "/c250.de.html";
42
+            $loc = "http://xythobuz.de/c250.de.html";
43
             break;
43
             break;
44
 
44
 
45
         case "c250EN":
45
         case "c250EN":
46
-            $loc = "/c250.html";
46
+            $loc = "http://xythobuz.de/c250.html";
47
             break;
47
             break;
48
 
48
 
49
         case "cube":
49
         case "cube":
50
-            $loc = "/ledcube.de.html";
50
+            $loc = "http://xythobuz.de/ledcube.de.html";
51
             break;
51
             break;
52
 
52
 
53
         case "cubeEN":
53
         case "cubeEN":
54
-            $loc = "/ledcube.html";
54
+            $loc = "http://xythobuz.de/ledcube.html";
55
             break;
55
             break;
56
 
56
 
57
         case "ledmatrix":
57
         case "ledmatrix":
58
-            $loc = "/ledmatrix.de.html";
58
+            $loc = "http://xythobuz.de/ledmatrix.de.html";
59
             break;
59
             break;
60
 
60
 
61
         case "ledmatrixEN":
61
         case "ledmatrixEN":
62
-            $loc = "/ledmatrix.html";
62
+            $loc = "http://xythobuz.de/ledmatrix.html";
63
             break;
63
             break;
64
 
64
 
65
         case "nas":
65
         case "nas":
66
-            $loc = "/nas.de.html";
66
+            $loc = "http://xythobuz.de/nas.de.html";
67
             break;
67
             break;
68
 
68
 
69
         case "nasEN":
69
         case "nasEN":
70
-            $loc = "/nas.html";
70
+            $loc = "http://xythobuz.de/nas.html";
71
             break;
71
             break;
72
 
72
 
73
         case "serialdebug":
73
         case "serialdebug":
74
-            $loc = "/serialdebug.de.html";
74
+            $loc = "http://xythobuz.de/serialdebug.de.html";
75
             break;
75
             break;
76
 
76
 
77
         case "serialdebugEN":
77
         case "serialdebugEN":
78
-            $loc = "/serialdebug.html";
78
+            $loc = "http://xythobuz.de/serialdebug.html";
79
             break;
79
             break;
80
 
80
 
81
         case "serialhelper":
81
         case "serialhelper":
82
-            $loc = "/serialhelper.de.html";
82
+            $loc = "http://xythobuz.de/serialhelper.de.html";
83
             break;
83
             break;
84
 
84
 
85
         case "serialhelperEN":
85
         case "serialhelperEN":
86
-            $loc = "/serialhelper.html";
86
+            $loc = "http://xythobuz.de/serialhelper.html";
87
             break;
87
             break;
88
 
88
 
89
         case "ssop28":
89
         case "ssop28":
90
-            $loc = "/ssop28.de.html";
90
+            $loc = "http://xythobuz.de/ssop28.de.html";
91
             break;
91
             break;
92
 
92
 
93
         case "ssop28EN":
93
         case "ssop28EN":
94
-            $loc = "/ssop28.html";
94
+            $loc = "http://xythobuz.de/ssop28.html";
95
             break;
95
             break;
96
 
96
 
97
         case "notifier":
97
         case "notifier":
98
-            $loc = "/ultimatenotifier.de.html";
98
+            $loc = "http://xythobuz.de/ultimatenotifier.de.html";
99
             break;
99
             break;
100
 
100
 
101
         case "notifierEN":
101
         case "notifierEN":
102
-            $loc = "/ultimatenotifier.html";
102
+            $loc = "http://xythobuz.de/ultimatenotifier.html";
103
             break;
103
             break;
104
 
104
 
105
         case "yasab":
105
         case "yasab":
106
-            $loc = "/yasab.de.html";
106
+            $loc = "http://xythobuz.de/yasab.de.html";
107
             break;
107
             break;
108
 
108
 
109
         case "yasabEN":
109
         case "yasabEN":
110
-            $loc = "/yasab.html";
110
+            $loc = "http://xythobuz.de/yasab.html";
111
             break;
111
             break;
112
 
112
 
113
         case "bt":
113
         case "bt":
114
-            $loc = "/bluetooth.de.html";
114
+            $loc = "http://xythobuz.de/bluetooth.de.html";
115
             break;
115
             break;
116
 
116
 
117
         case "btEN":
117
         case "btEN":
118
-            $loc = "/bluetooth.html";
118
+            $loc = "http://xythobuz.de/bluetooth.html";
119
             break;
119
             break;
120
 
120
 
121
         case "sram":
121
         case "sram":
122
-            $loc = "/k6x4008.de.html";
122
+            $loc = "http://xythobuz.de/k6x4008.de.html";
123
             break;
123
             break;
124
 
124
 
125
         case "sramEN":
125
         case "sramEN":
126
-            $loc = "/k6x4008.html";
126
+            $loc = "http://xythobuz.de/k6x4008.html";
127
             break;
127
             break;
128
 
128
 
129
         case "rrem":
129
         case "rrem":
130
-            $loc = "/rremote.de.html";
130
+            $loc = "http://xythobuz.de/rremote.de.html";
131
             break;
131
             break;
132
 
132
 
133
         case "rremEN":
133
         case "rremEN":
134
-            $loc = "/rremote.html";
134
+            $loc = "http://xythobuz.de/rremote.html";
135
             break;
135
             break;
136
 
136
 
137
         case "rob":
137
         case "rob":
138
-            $loc = "/xyrobot.de.html";
138
+            $loc = "http://xythobuz.de/xyrobot.de.html";
139
             break;
139
             break;
140
 
140
 
141
         case "robEN":
141
         case "robEN":
142
-            $loc = "/xyrobot.html";
142
+            $loc = "http://xythobuz.de/xyrobot.html";
143
             break;
143
             break;
144
 
144
 
145
         case "xyrobotremote":
145
         case "xyrobotremote":
146
-            $loc = "/xyrobotremote.de.html";
146
+            $loc = "http://xythobuz.de/xyrobotremote.de.html";
147
             break;
147
             break;
148
 
148
 
149
         case "xyrobotremoteEN":
149
         case "xyrobotremoteEN":
150
-            $loc = "/xyrobotremote.html";
150
+            $loc = "http://xythobuz.de/xyrobotremote.html";
151
             break;
151
             break;
152
 
152
 
153
         default:
153
         default:

+ 37
- 37
output/mobile/index.php Просмотреть файл

1
 <?
1
 <?
2
 // Auto generated xyCMS compatibility mobile/index.php
2
 // Auto generated xyCMS compatibility mobile/index.php
3
-$loc = 'index.de.mob.html';
3
+$loc = 'http://www.xythobuz.de/index.de.mob.html';
4
 if (isset($_GET['p'])) {
4
 if (isset($_GET['p'])) {
5
     if (isset($_GET['lang'])) {
5
     if (isset($_GET['lang'])) {
6
         $_GET['p'] .= 'EN';
6
         $_GET['p'] .= 'EN';
7
     }
7
     }
8
     switch($_GET['p']) {
8
     switch($_GET['p']) {
9
         case "blog":
9
         case "blog":
10
-            $loc = "/blog.de.mob.html";
10
+            $loc = "http://xythobuz.de/blog.de.mob.html";
11
             break;
11
             break;
12
 
12
 
13
         case "blogEN":
13
         case "blogEN":
14
-            $loc = "/blog.mob.html";
14
+            $loc = "http://xythobuz.de/blog.mob.html";
15
             break;
15
             break;
16
 
16
 
17
         case "kontakt":
17
         case "kontakt":
18
-            $loc = "/contact.de.mob.html";
18
+            $loc = "http://xythobuz.de/contact.de.mob.html";
19
             break;
19
             break;
20
 
20
 
21
         case "kontaktEN":
21
         case "kontaktEN":
22
-            $loc = "/contact.mob.html";
22
+            $loc = "http://xythobuz.de/contact.mob.html";
23
             break;
23
             break;
24
 
24
 
25
         case "home":
25
         case "home":
26
-            $loc = "/index.de.mob.html";
26
+            $loc = "http://xythobuz.de/index.de.mob.html";
27
             break;
27
             break;
28
 
28
 
29
         case "homeEN":
29
         case "homeEN":
30
-            $loc = "/index.mob.html";
30
+            $loc = "http://xythobuz.de/index.mob.html";
31
             break;
31
             break;
32
 
32
 
33
         case "avrserlib":
33
         case "avrserlib":
34
-            $loc = "/avrserial.de.mob.html";
34
+            $loc = "http://xythobuz.de/avrserial.de.mob.html";
35
             break;
35
             break;
36
 
36
 
37
         case "avrserlibEN":
37
         case "avrserlibEN":
38
-            $loc = "/avrserial.mob.html";
38
+            $loc = "http://xythobuz.de/avrserial.mob.html";
39
             break;
39
             break;
40
 
40
 
41
         case "c250":
41
         case "c250":
42
-            $loc = "/c250.de.mob.html";
42
+            $loc = "http://xythobuz.de/c250.de.mob.html";
43
             break;
43
             break;
44
 
44
 
45
         case "c250EN":
45
         case "c250EN":
46
-            $loc = "/c250.mob.html";
46
+            $loc = "http://xythobuz.de/c250.mob.html";
47
             break;
47
             break;
48
 
48
 
49
         case "cube":
49
         case "cube":
50
-            $loc = "/ledcube.de.mob.html";
50
+            $loc = "http://xythobuz.de/ledcube.de.mob.html";
51
             break;
51
             break;
52
 
52
 
53
         case "cubeEN":
53
         case "cubeEN":
54
-            $loc = "/ledcube.mob.html";
54
+            $loc = "http://xythobuz.de/ledcube.mob.html";
55
             break;
55
             break;
56
 
56
 
57
         case "ledmatrix":
57
         case "ledmatrix":
58
-            $loc = "/ledmatrix.de.mob.html";
58
+            $loc = "http://xythobuz.de/ledmatrix.de.mob.html";
59
             break;
59
             break;
60
 
60
 
61
         case "ledmatrixEN":
61
         case "ledmatrixEN":
62
-            $loc = "/ledmatrix.mob.html";
62
+            $loc = "http://xythobuz.de/ledmatrix.mob.html";
63
             break;
63
             break;
64
 
64
 
65
         case "nas":
65
         case "nas":
66
-            $loc = "/nas.de.mob.html";
66
+            $loc = "http://xythobuz.de/nas.de.mob.html";
67
             break;
67
             break;
68
 
68
 
69
         case "nasEN":
69
         case "nasEN":
70
-            $loc = "/nas.mob.html";
70
+            $loc = "http://xythobuz.de/nas.mob.html";
71
             break;
71
             break;
72
 
72
 
73
         case "serialdebug":
73
         case "serialdebug":
74
-            $loc = "/serialdebug.de.mob.html";
74
+            $loc = "http://xythobuz.de/serialdebug.de.mob.html";
75
             break;
75
             break;
76
 
76
 
77
         case "serialdebugEN":
77
         case "serialdebugEN":
78
-            $loc = "/serialdebug.mob.html";
78
+            $loc = "http://xythobuz.de/serialdebug.mob.html";
79
             break;
79
             break;
80
 
80
 
81
         case "serialhelper":
81
         case "serialhelper":
82
-            $loc = "/serialhelper.de.mob.html";
82
+            $loc = "http://xythobuz.de/serialhelper.de.mob.html";
83
             break;
83
             break;
84
 
84
 
85
         case "serialhelperEN":
85
         case "serialhelperEN":
86
-            $loc = "/serialhelper.mob.html";
86
+            $loc = "http://xythobuz.de/serialhelper.mob.html";
87
             break;
87
             break;
88
 
88
 
89
         case "ssop28":
89
         case "ssop28":
90
-            $loc = "/ssop28.de.mob.html";
90
+            $loc = "http://xythobuz.de/ssop28.de.mob.html";
91
             break;
91
             break;
92
 
92
 
93
         case "ssop28EN":
93
         case "ssop28EN":
94
-            $loc = "/ssop28.mob.html";
94
+            $loc = "http://xythobuz.de/ssop28.mob.html";
95
             break;
95
             break;
96
 
96
 
97
         case "notifier":
97
         case "notifier":
98
-            $loc = "/ultimatenotifier.de.mob.html";
98
+            $loc = "http://xythobuz.de/ultimatenotifier.de.mob.html";
99
             break;
99
             break;
100
 
100
 
101
         case "notifierEN":
101
         case "notifierEN":
102
-            $loc = "/ultimatenotifier.mob.html";
102
+            $loc = "http://xythobuz.de/ultimatenotifier.mob.html";
103
             break;
103
             break;
104
 
104
 
105
         case "yasab":
105
         case "yasab":
106
-            $loc = "/yasab.de.mob.html";
106
+            $loc = "http://xythobuz.de/yasab.de.mob.html";
107
             break;
107
             break;
108
 
108
 
109
         case "yasabEN":
109
         case "yasabEN":
110
-            $loc = "/yasab.mob.html";
110
+            $loc = "http://xythobuz.de/yasab.mob.html";
111
             break;
111
             break;
112
 
112
 
113
         case "bt":
113
         case "bt":
114
-            $loc = "/bluetooth.de.mob.html";
114
+            $loc = "http://xythobuz.de/bluetooth.de.mob.html";
115
             break;
115
             break;
116
 
116
 
117
         case "btEN":
117
         case "btEN":
118
-            $loc = "/bluetooth.mob.html";
118
+            $loc = "http://xythobuz.de/bluetooth.mob.html";
119
             break;
119
             break;
120
 
120
 
121
         case "sram":
121
         case "sram":
122
-            $loc = "/k6x4008.de.mob.html";
122
+            $loc = "http://xythobuz.de/k6x4008.de.mob.html";
123
             break;
123
             break;
124
 
124
 
125
         case "sramEN":
125
         case "sramEN":
126
-            $loc = "/k6x4008.mob.html";
126
+            $loc = "http://xythobuz.de/k6x4008.mob.html";
127
             break;
127
             break;
128
 
128
 
129
         case "rrem":
129
         case "rrem":
130
-            $loc = "/rremote.de.mob.html";
130
+            $loc = "http://xythobuz.de/rremote.de.mob.html";
131
             break;
131
             break;
132
 
132
 
133
         case "rremEN":
133
         case "rremEN":
134
-            $loc = "/rremote.mob.html";
134
+            $loc = "http://xythobuz.de/rremote.mob.html";
135
             break;
135
             break;
136
 
136
 
137
         case "rob":
137
         case "rob":
138
-            $loc = "/xyrobot.de.mob.html";
138
+            $loc = "http://xythobuz.de/xyrobot.de.mob.html";
139
             break;
139
             break;
140
 
140
 
141
         case "robEN":
141
         case "robEN":
142
-            $loc = "/xyrobot.mob.html";
142
+            $loc = "http://xythobuz.de/xyrobot.mob.html";
143
             break;
143
             break;
144
 
144
 
145
         case "xyrobotremote":
145
         case "xyrobotremote":
146
-            $loc = "/xyrobotremote.de.mob.html";
146
+            $loc = "http://xythobuz.de/xyrobotremote.de.mob.html";
147
             break;
147
             break;
148
 
148
 
149
         case "xyrobotremoteEN":
149
         case "xyrobotremoteEN":
150
-            $loc = "/xyrobotremote.mob.html";
150
+            $loc = "http://xythobuz.de/xyrobotremote.mob.html";
151
             break;
151
             break;
152
 
152
 
153
         default:
153
         default:

+ 2
- 2
output/rss.xml Просмотреть файл

6
 <atom:link href="http://www.xythobuz.de/rss.xml" rel="self" type="application/rss+xml" />
6
 <atom:link href="http://www.xythobuz.de/rss.xml" rel="self" type="application/rss+xml" />
7
 <description>xythobuz Electronics &amp; Software Projects</description>
7
 <description>xythobuz Electronics &amp; Software Projects</description>
8
 <language>en-us</language>
8
 <language>en-us</language>
9
-<pubDate>Fri, 10 May 2013 13:55:53 -0000</pubDate>
10
-<lastBuildDate>Fri, 10 May 2013 13:55:53 -0000</lastBuildDate>
9
+<pubDate>Fri, 10 May 2013 13:59:58 -0000</pubDate>
10
+<lastBuildDate>Fri, 10 May 2013 13:59:58 -0000</lastBuildDate>
11
 <docs>http://blogs.law.harvard.edu/tech/rss</docs>
11
 <docs>http://blogs.law.harvard.edu/tech/rss</docs>
12
 <generator>Poole</generator>
12
 <generator>Poole</generator>
13
 
13
 

Загрузка…
Отмена
Сохранить