You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit e5cb1de
Browse filesBrowse the repository at this point in the historyBrowse files
returnget_first_value("SELECT LWTValue as value FROM _lwtgeneral WHERE LWTKey = " . convert_string_to_sqlsyntax($key));
2682
2684
}
2683
2685
@@ -3168,16 +3170,17 @@ function check_update_db() {
3168
3170
$err = @mysql_select_db($dbname);
3169
3171
if ($err == FALSE) die('DB select error (Cannot find database: "'. $dbname . '" or connection parameter $dbname is wrong; please create database and/or correct file: "connect.inc.php"). Hint: The database can be created by importing the file "dbinstall.sql" within phpMyAdmin. Please read the documentation: http://lwt.sf.net');
3170
3172
3171
-
// Is $tbpref set in connect.inc.php? Take it.
3172
-
// If not: Is it set in table "_lwtgeneral"? Take it.
3173
-
// If not: Use $tbpref = '' (no prefix, old/standard behaviour).
3174
-
3175
-
// $fixed_tbpref = 1 if $tbpref was fixed in connect.inc.php.
3173
+
// *** GLOBAL VARAIABLES ***
3174
+
// $tbpref = Current Table Prefix
3175
+
// $fixed_tbpref = Table Prefix is fixed, no changes possible
3176
+
// *** GLOBAL VARAIABLES ***
3176
3177
3177
-
LWTTableCheck();
3178
+
// Is $tbpref set in connect.inc.php? Take it and $fixed_tbpref=1.
3179
+
// If not: $fixed_tbpref=0. Is it set in table "_lwtgeneral"? Take it.
3180
+
// If not: Use $tbpref = '' (no prefix, old/standard behaviour).
3178
3181
3179
3182
if (! isset($tbpref)) {
3180
-
$fixed_tbpref = 0;
3183
+
$fixed_tbpref = 0;
3181
3184
$p = LWTTableGet("current_table_prefix");
3182
3185
if (isset($p))
3183
3186
$tbpref = $p;
@@ -3195,7 +3198,8 @@ function check_update_db() {
3195
3198
if (strpos("_0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ", substr($tbpref,$i,1)) === FALSE) die('Table prefix/set "' . $tbpref . '" contains characters or digits other than 0-9, a-z, A-Z or _. Please fix in "connect.inc.php".');
0 commit comments