4images Forum & Community
Welcome, Guest. Please login or register.
Did you miss your activation email?
September 03, 2014, 06:39:02 AM

Login with username, password and session length
Search:     Advanced search
Check the new Tutorial subforum with helpfull guides and tutorials for modifications and tweaks.
Togle to toolbar
Translate this page with =>
Translate this page >
* Home Help Search Login Register
 
+  4images Forum & Community
|-+  4images Issues / Ausgaben
| |-+  Discussion & Troubleshooting (Moderators: Acidgod, ivan, Rembrandt)
| | |-+  check new images error on line 390
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: check new images error on line 390  (Read 1037 times)
Ersen
Jr. Member
**
Offline Offline

Posts: 79

Thank You
-Given: 6
-Receive: 1


View Profile
« on: December 18, 2012, 12:41:15 PM »

when i checked new images i will see this error

Fatal error: Call to undefined function filterFileName() in /home/ddd/public_html/admin/checkimages.php on line 390

how can i fix this?
Logged
Rembrandt
Moderator
4images Guru
*****
Offline Offline

Posts: 4046

Thank You
-Given: 105
-Receive: 850

Vienna


View Profile WWW
« Reply #1 on: December 18, 2012, 06:56:34 PM »

Hi!

your includes/functions.php is to old.
search in includes/functions.php "?>" and insert above:
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
function filterFileName($text$tolower 1$transl null)
{
	
global 
$translit;
	
$transl = ($transl !== null) ? $transl : @$translit;
	
if (
$transl)
	
	
$text strtr(
	
	
	
$text,
	
	
	
 array(
	
	
	
	
// russian Windows-1251
	
	
	
	
"\xc0" => "a",
	
	
	
	
"\xc1" => "b",
	
	
	
	
"\xc2" => "v",
	
	
	
	
"\xc3" => "g",
	
	
	
	
"\xc4" => "d",
	
	
	
	
"\xc5" => "e",
	
	
	
	
"\xa8" => "e",
	
	
	
	
"\xc6" => "zh",
	
	
	
	
"\xc7" => "z",
	
	
	
	
"\xc8" => "i",
	
	
	
	
"\xc9" => "j",
	
	
	
	
"\xca" => "k",
	
	
	
	
"\xcb" => "l",
	
	
	
	
"\xcc" => "m",
	
	
	
	
"\xcd" => "n",
	
	
	
	
"\xce" => "o",
	
	
	
	
"\xcf" => "p",
	
	
	
	
"\xd0" => "r",
	
	
	
	
"\xd1" => "s",
	
	
	
	
"\xd2" => "t",
	
	
	
	
"\xd3" => "u",
	
	
	
	
"\xd4" => "f",
	
	
	
	
"\xd5" => "h",
	
	
	
	
"\xd6" => "c",
	
	
	
	
"\xd7" => "ch",
	
	
	
	
"\xd8" => "sh",
	
	
	
	
"\xd9" => "sch",
	
	
	
	
"\xda" => "",
	
	
	
	
"\xdb" => "i",
	
	
	
	
"\xdc" => "",
	
	
	
	
"\xdd" => "e",
	
	
	
	
"\xde" => "yu",
	
	
	
	
"\xdf" => "ya",
	
	
	
	
"\xe0" => "a",
	
	
	
	
"\xe1" => "b",
	
	
	
	
"\xe2" => "v",
	
	
	
	
"\xe3" => "g",
	
	
	
	
"\xe4" => "d",
	
	
	
	
"\xe5" => "e",
	
	
	
	
"\xb8" => "e",
	
	
	
	
"\xe6" => "zh",
	
	
	
	
"\xe7" => "z",
	
	
	
	
"\xe8" => "i",
	
	
	
	
"\xe9" => "j",
	
	
	
	
"\xea" => "k",
	
	
	
	
"\xeb" => "l",
	
	
	
	
"\xec" => "m",
	
	
	
	
"\xed" => "n",
	
	
	
	
"\xee" => "o",
	
	
	
	
"\xef" => "p",
	
	
	
	
"\xf0" => "r",
	
	
	
	
"\xf1" => "s",
	
	
	
	
"\xf2" => "t",
	
	
	
	
"\xf3" => "u",
	
	
	
	
"\xf4" => "f",
	
	
	
	
"\xf5" => "h",
	
	
	
	
"\xf6" => "c",
	
	
	
	
"\xf7" => "ch",
	
	
	
	
"\xf8" => "sh",
	
	
	
	
"\xf9" => "sch",
	
	
	
	
"\xfa" => "",
	
	
	
	
"\xfb" => "i",
	
	
	
	
"\xfc" => "",
	
	
	
	
"\xfd" => "e",
	
	
	
	
"\xfe" => "yu",
	
	
	
	
"\xff" => "ya",
	
	
	
	
// russian KOI8
/*
	
	
	
	
"\xe1" => "a",
	
	
	
	
"\xe2" => "b",
	
	
	
	
"\xf7" => "v",
	
	
	
	
"\xe7" => "g",
	
	
	
	
"\xe4" => "d",
	
	
	
	
"\xe5" => "e",
	
	
	
	
"\xb3" => "e",
	
	
	
	
"\xf6" => "zh",
	
	
	
	
"\xfa" => "z",
	
	
	
	
"\xe9" => "i",
	
	
	
	
"\xea" => "j",
	
	
	
	
"\xeb" => "k",
	
	
	
	
"\xec" => "l",
	
	
	
	
"\xed" => "m",
	
	
	
	
"\xee" => "n",
	
	
	
	
"\xef" => "o",
	
	
	
	
"\xf0" => "p",
	
	
	
	
"\xf2" => "r",
	
	
	
	
"\xf3" => "s",
	
	
	
	
"\xf4" => "t",
	
	
	
	
"\xf5" => "u",
	
	
	
	
"\xe6" => "f",
	
	
	
	
"\xe8" => "h",
	
	
	
	
"\xe3" => "c",
	
	
	
	
"\xfe" => "ch",
	
	
	
	
"\xfb" => "sh",
	
	
	
	
"\xfd" => "sch",
	
	
	
	
"\xff" => "",
	
	
	
	
"\xf9" => "i",
	
	
	
	
"\xf8" => "",
	
	
	
	
"\xfc" => "e",
	
	
	
	
"\xe0" => "yu",
	
	
	
	
"\xf1" => "ya",
	
	
	
	
"\xc1" => "a",
	
	
	
	
"\xc2" => "b",
	
	
	
	
"\xd7" => "v",
	
	
	
	
"\xc7" => "g",
	
	
	
	
"\xc4" => "d",
	
	
	
	
"\xc5" => "e",
	
	
	
	
"\xa3" => "e",
	
	
	
	
"\xd6" => "zh",
	
	
	
	
"\xda" => "z",
	
	
	
	
"\xc9" => "i",
	
	
	
	
"\xca" => "j",
	
	
	
	
"\xcb" => "k",
	
	
	
	
"\xcc" => "l",
	
	
	
	
"\xcd" => "m",
	
	
	
	
"\xce" => "n",
	
	
	
	
"\xcf" => "o",
	
	
	
	
"\xd0" => "p",
	
	
	
	
"\xd2" => "r",
	
	
	
	
"\xd3" => "s",
	
	
	
	
"\xd4" => "t",
	
	
	
	
"\xd5" => "u",
	
	
	
	
"\xc6" => "f",
	
	
	
	
"\xc8" => "h",
	
	
	
	
"\xc3" => "c",
	
	
	
	
"\xde" => "ch",
	
	
	
	
"\xdb" => "sh",
	
	
	
	
"\xdd" => "sch",
	
	
	
	
"\xdf" => "",
	
	
	
	
"\xd9" => "i",
	
	
	
	
"\xd8" => "",
	
	
	
	
"\xdc" => "e",
	
	
	
	
"\xc0" => "yu",
	
	
	
	
"\xd1" => "ya",
*/
	
	
));

	
if (
$tolower)
	
  
$text strtolower($text);

	
$text str_replace(" ""_"$text);
	
$text str_replace("%20""_"$text);
	
$text preg_replace("/[^\-\._a-z0-9]/i""_"$text);
	
return 
$text;
}

function 
create_unique_filename($base$file)
{
  
$ext get_file_extension($file);
  
$name get_file_name($file);
  
$n 2;
  
$copy "";
  while (
file_exists($base."/".$name.$copy.".".$ext)) {
    
$copy "_".$n;
    
$n++;
  }
  return 
$name.$copy.".".$ext;
}

mfg Andi
Logged

Meine 4Images Modifikationen  Now over 100 Modification Online!    Meine 4images Demo Seite


Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.104 seconds with 20 queries.