update lib/common.lib.php

This commit is contained in:
Amberstone 2024-09-19 20:52:06 +09:00
parent 2364b8d810
commit f7cafb61b5
Signed by: amber
GPG key ID: 094B0E55F98D8BF1

View file

@ -1636,7 +1636,7 @@ function get_table_define($table, $crlf = "\n")
global $g5; global $g5;
// For MySQL < 3.23.20 // For MySQL < 3.23.20
$schema_create .= 'CREATE TABLE ' . $table . ' (' . $crlf; $schema_create = 'CREATE TABLE ' . $table . ' (' . $crlf;
$sql = 'SHOW FIELDS FROM ' . $table; $sql = 'SHOW FIELDS FROM ' . $table;
$result = sql_query($sql); $result = sql_query($sql);
@ -1692,7 +1692,7 @@ function get_table_define($table, $crlf = "\n")
} else { } else {
$schema_create .= ' KEY ' . $x . ' ('; $schema_create .= ' KEY ' . $x . ' (';
} }
$schema_create .= implode($columns, ', ') . ')'; $schema_create .= implode(', ', $columns) . ')';
} // end while } // end while
$schema_create .= $crlf . ') ENGINE=MyISAM DEFAULT CHARSET=utf8'; $schema_create .= $crlf . ') ENGINE=MyISAM DEFAULT CHARSET=utf8';
@ -1787,7 +1787,7 @@ function time_select($time, $name = "")
preg_match("/([0-9]{2}):([0-9]{2}):([0-9]{2})/", $time, $m); preg_match("/([0-9]{2}):([0-9]{2}):([0-9]{2})/", $time, $m);
// 시 // 시
$s .= "<select name='{$name}_h'>"; $s = "<select name='{$name}_h'>";
for ($i = 0; $i <= 23; $i++) { for ($i = 0; $i <= 23; $i++) {
$s .= "<option value='$i'"; $s .= "<option value='$i'";
if ($i == $m['0']) { if ($i == $m['0']) {
@ -3235,7 +3235,7 @@ function check_vaild_callback($callback)
class str_encrypt class str_encrypt
{ {
var $salt; var $salt;
var $lenght; var $length = 0;
function __construct($salt = '') function __construct($salt = '')
{ {