-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconv.php
More file actions
39 lines (26 loc) · 956 Bytes
/
Copy pathconv.php
File metadata and controls
39 lines (26 loc) · 956 Bytes
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
<?php
exit;
$conv = array(
'Ä' => 'Ä',
'ä' => 'ä',
'Ö' => 'Ö',
'ö' => 'ö',
'Ü' => 'Ü',
'ü' => 'ü',
'ß' => 'ß',
'à ' => 'à',
'á' => 'á',
'è' => 'è',
'é' => 'é',
);
include 'system.php';
include_once 'dal.php';
$db = new Database();
foreach ( $conv AS $new => $old ) {
print 'UPDATE dvoo_items SET iname = REPLACE(iname, "'.$old.'", "'.$new.'");'."<br/>";
print 'UPDATE dvoo_feedback SET feedback = REPLACE(feedback, "'.$old.'", "'.$new.'");'."<br/>";
#print 'UPDATE dvoo_citizen_rewards SET reward = REPLACE(reward, "'.$old.'", "'.$new.'");'."<br/>";
#print 'UPDATE dvoo_rewards SET name = REPLACE(name, "'.$old.'", "'.$new.'");'."<br/>";
print 'UPDATE dvoo_towns SET name = REPLACE(name, "'.$old.'", "'.$new.'");'."<br/>";
print 'UPDATE dvoo_zones SET building = REPLACE(building, "'.$old.'", "'.$new.'");'."<br/>";
}