function err_msg($msg, $bool = "1")
{
if ($bool) {
echo "
";
exit;
}
}
function ShowMessage($msg)
{
echo ("
");
}
function err_close($msg) {
echo "
";
exit;
}
function err_msg2($msg, $to, $bool = "1")
{
if ($bool) {
echo "
";
exit;
}
}
function redirect($re_url) {
echo "";
exit;
}
function my_connect($host, $id, $pass, $db) {
$connect = mysql_connect($host, $id, $pass);
mysql_select_db($db);
return $connect;
}
function make_page() {
}
// ��¥������ ���� ��ȯ : 20020512 ===> 12/05/2002
function shortdate($strvalue) {
$date_str = substr($strvalue, 0, 2) . "/" . substr($strvalue, 3, 3) . "/" . substr($strvalue, 7, 4);
return $date_str;
}
function mysql_data($strvalue) {
$date_time_array = getdate($strvalue);
$hours = $date_time_array["hours"];
$minutes = $date_time_array["minutes"];
$seconds = $date_time_array["seconds"];
$nMes = $date_time_array["mon"];
$nDia = $date_time_array["mday"];
$nAno = $date_time_array["year"];
$nData = mktime(
$date_time_array["hours"],
$date_time_array["minutes"],
$date_time_array["seconds"],
$date_time_array["mon"],
$date_time_array["mday"],
$date_time_array["year"]
);
return $nData;
}
function br_data($strvalue) {
$nAno = substr($strvalue, 7, 4);
$nMes = substr($strvalue, 3, 3);
$nDia = substr($strvalue, 0, 2);
if ($nMes = 'avr') {
$nMes = '04';
};
if ($nMes = 'mai') {
$nMes = '05';
};
$nData = date('d/m/Y', mktime(0, 0, 0, (int)$nMes, (int)$nDia, (int)$nAno));
return $nData;
}
function show_data($strvalue) {
$nAno = substr($strvalue, 7, 4);
$nMes = substr($strvalue, 3, 3);
$nDia = substr($strvalue, 0, 2);
$nData = $nDia . '/' . $nMes . '/' . $nAno;
return $nData;
}
function my_data($strvalue) {
$nData = explode("-", $strvalue);
// $nData=$mData[0].'/'.$mData[1].'/'.$mData[2];
return $nData[0];
}
/* �ѱ� ���ڿ� �ڸ��� �Լ� */
function shortenStr($str, $maxlen) {
if (strlen($str) <= $maxlen)
return $str;
$effective_max = $maxlen - 3;
$remained_byte = $effective_max;
$retStr = "";
$hanStart = 0;
for ($i = 0; $i < $effective_max; $i++) {
$char = substr($str, $i, 1);
if (ord($char) <= 127) {
$retStr .= $char;
$remained_byte--;
continue;
}
if (!$hanStart && $remained_byte > 1) {
$hanStart = true;
$retStr .= $char;
$remained_byte--;
continue;
}
if ($hanStart) {
$hanStart = false;
$retStr .= $char;
$remained_byte--;
}
}
return $retStr .= "...";
}
Não conseguiu conectar: