Beispiel #1
0
function getRssTagValue($str, $tag)
{
    $str_exp = explode('<' . $tag . '>', $str);
    $str_exp = explode('</' . $tag . '>', $str_exp[1]);
    $result = getUTFtoUTF($str_exp[0]) == $str_exp[0] ? $str_exp[0] : getKRtoUTF($str_exp[0]);
    return trim($result);
}
Beispiel #2
0
function getPrintdir($nTab, $filepath, $files, $state, $dir_ex)
{
    global $g, $pwd, $file, $step_start;
    if ($step_start) {
        $nTab = $nTab - $step_start;
    }
    $css = strstr($pwd, $filepath) ? 'nowdir' : 'alldir';
    $fname1 = getKRtoUTF($files);
    $fname2 = getFolderName($filepath);
    if (is_file($filepath . 'main.php')) {
        $img_cdir = $g['img_module_skin'] . '/widget/ico_widget.gif';
        $img_odir = $g['img_core'] . '/_public/ico_f1.png';
    } else {
        $img_cdir = $g['img_module_skin'] . '/widget/close_dir.gif';
        $img_odir = $g['img_module_skin'] . '/widget/open_dir.gif';
    }
    echo '<div class="dir01">';
    echo '<img src="' . $g['img_module_skin'] . '/widget/blank.gif" width="' . ($nTab * 17 + 3) . '" height="1" alt="" /> ';
    echo '<a href="' . $g['adm_href'] . '&amp;pwd=' . urlencode($filepath) . '" title="' . $fname1 . '">';
    if ($state && $dir_ex) {
        echo '<img src="' . $g['img_module_skin'] . '/widget/dir_closef.gif" align="absmiddle" alt="" />';
        echo ' <img src="' . $img_cdir . '" alt="" /> <span class="' . $css . '">' . $fname2;
    } else {
        if (!$state && $dir_ex) {
            echo '<img src="' . $g['img_module_skin'] . '/widget/dir_openf.gif" align="absmiddle" alt="" />';
            echo ' <img src="' . $img_odir . '" alt="" /> <span class="' . $css . '">' . $fname2;
        } else {
            echo '<img src="' . $g['img_module_skin'] . '/widget/blank.gif" width="11" height="18" align="absmiddle" alt="" />';
            echo ' <img src="' . $img_cdir . '" alt="" /> <span class="' . $css . '">' . $fname2;
        }
    }
    echo '</span></a></div>';
}
Beispiel #3
0
function getPrintdir($nTab, $filepath, $files, $state, $dir_ex)
{
    global $g, $pwd, $file, $step_start;
    if ($step_start) {
        $nTab = $nTab - $step_start;
    }
    $css = strstr($pwd, $filepath) ? ' active' : '';
    $fname1 = getKRtoUTF($files);
    $fname2 = getFolderName($filepath);
    echo '<a href="' . $g['adm_href'] . '&amp;pwd=' . urlencode($filepath) . '" class="list-group-item';
    if ($state && $dir_ex) {
        echo '"><span><img src="' . $g['img_core'] . '/blank.gif" width="' . ($nTab * 17 + 3) . '" height="1" alt=""><i class="glyphicon glyphicon-folder-close"></i>&nbsp; ';
    } else {
        if (!$state && $dir_ex) {
            echo '"><span><img src="' . $g['img_core'] . '/blank.gif" width="' . ($nTab * 17 + 3) . '" height="1" alt=""><i class="glyphicon glyphicon-folder-open"></i>&nbsp; ';
        } else {
            echo $css . '" style="color:#' . ($css ? 'fff' : '999') . '"><span><img src="' . $g['img_core'] . '/blank.gif" width="' . ($nTab * 17 + 3) . '" height="1" alt=""><i class="fa fa-puzzle-piece"></i>&nbsp; ';
        }
    }
    echo $fname2 . '</span></a>';
}
Beispiel #4
0
function getFileuser($file, $stat)
{
    if (function_exists('posix_getpwuid')) {
        $filestat = stat($file);
        $getname = posix_getpwuid($filestat[$stat]);
        return $getname['name'];
    } else {
        return getKRtoUTF($_SERVER['USERNAME'] ? $_SERVER['USERNAME'] : $_ENV['USERNAME']);
    }
}
Beispiel #5
0
 function getPrintdir($nTab, $filepath, $files, $state, $dir_ex)
 {
     global $g, $pwd, $file, $step_start, $type, $m, $module, $r;
     if ($step_start) {
         $nTab = $nTab - $step_start;
     }
     $css = strstr($pwd, $filepath) ? 'nowdir' : 'alldir';
     $fname1 = getKRtoUTF($files);
     $fname2 = getFolderName($filepath);
     if (is_file($filepath . 'main.php')) {
         $img_cdir = $g['img_module_admin'] . '/ico_widget.gif';
         $img_odir = $g['img_core'] . '/_public/ico_f1.png';
     } else {
         $img_cdir = $g['img_module_admin'] . '/close_dir.gif';
         $img_odir = $g['img_module_admin'] . '/open_dir.gif';
     }
     echo '<div class="dir01">';
     echo '<img src="' . $g['img_module_admin'] . '/blank.gif" width="' . ($nTab * 17 + 3) . '" height="1" alt="" /> ';
     if (!is_file($filepath . 'main.php')) {
         echo '<a href="' . $g['adm_href'] . '&amp;type=' . $type . '&amp;pwd=' . urlencode($filepath) . '" title="' . $fname1 . '">';
     }
     if ($state && $dir_ex) {
         echo '<img src="' . $g['img_module_admin'] . '/dir_closef.gif" align="absmiddle" alt="" />';
         echo ' <img src="' . $img_cdir . '" alt="" /> <span class="' . $css . '">' . $fname2;
     } else {
         if (!$state && $dir_ex) {
             echo '<img src="' . $g['img_module_admin'] . '/dir_openf.gif" align="absmiddle" alt="" />';
             echo ' <img src="' . $img_odir . '" alt="" /> <span class="' . $css . '">' . $fname2;
         } else {
             echo '<img src="' . $g['img_module_admin'] . '/blank.gif" width="11" height="18" align="absmiddle" alt="" />';
             echo ' <img src="' . $img_cdir . '" alt="" /> <span class="' . $css . '">' . $fname2;
         }
     }
     if (!is_file($filepath . 'main.php')) {
         echo '</span></a>';
     } else {
         echo '</span>';
     }
     echo '<a class="del" href="' . $g['s'] . '/?r=' . $r . '&m=' . $module . '&amp;a=pack_delete&amp;type=widget&amp;pack=' . str_replace($g['r'] . '/widgets/', '', $filepath) . '" target="_action_frame_' . $m . '" onclick="return confirm(\'정말로 삭제하시겠습니까?    \');"><img src="' . $g['img_core'] . '/_public/btn_del_s01.gif" alt="" title="테마삭제" /></a>';
     echo '</div>';
 }
Beispiel #6
0
    if ($i) {
        $fx[$i] = explode('data=', str_replace('"', '', getKRtoUTF($FDATA[$i])));
        $fv[$i]['city'] = explode('/', $fx[$i][1]);
        $fv[$i]['x'] = explode('/', $fx[$i][2]);
        $fv[$i]['y'] = explode('/', $fx[$i][3]);
        $fv[$i]['city'] = $fv[$i]['city'][0];
        $fv[$i]['x'] = $fv[$i]['x'][0];
        $fv[$i]['y'] = $fv[$i]['y'][0];
    } else {
        $fv[$i]['city'] = '서울';
        $fv[$i]['x'] = '37500000';
        $fv[$i]['y'] = '126930000';
    }
    $WTCITY = getUrlData('http://www.google.com/ig/api?hl=ko&weather=,,,' . $fv[$i]['x'] . ',' . $fv[$i]['y'], 5);
    $WDATA = explode('<current_conditions>', $WTCITY);
    $city_key = explode('data=', str_replace('"', '', getKRtoUTF($WDATA[1])));
    $city_val1 = explode('/', $city_key[1]);
    $city_val2 = explode('/', $city_key[2]);
    $city_val3 = explode('/', $city_key[3]);
    $city_val4 = explode('/', $city_key[4]);
    $city_val5 = explode('/', $city_key[5]);
    $city_val6 = explode('/', $city_key[6]);
    $w['ment'] = $city_val1[0];
    $w['temf'] = $city_val2[0];
    $w['temc'] = $city_val3[0];
    $w['humi'] = $city_val4[0];
    $w['icon'] = $WI[$city_val5[4]] ? $WI[$city_val5[4]] : 105;
    $w['wind'] = $city_val6[0];
    fwrite($fp, $fv[$i]['city'] . '|' . $w['ment'] . '|' . $w['temf'] . '|' . $w['temc'] . '|' . $w['humi'] . '|' . $w['icon'] . '|' . $w['wind'] . '|' . $fv[$i]['x'] . '|' . $fv[$i]['y'] . '<split>');
}
fclose($fp);
Beispiel #7
0
function getKeyword($url)
{
    $urlexp = explode('?', urldecode($url));
    if (!trim($urlexp[1])) {
        return '';
    }
    $queexp = explode('&', $urlexp[1]);
    $quenum = count($queexp);
    for ($i = 0; $i < $quenum; $i++) {
        $valexp = explode('=', trim($queexp[$i]));
        if (strstr(',query,q,p,', ',' . $valexp[0] . ',') && !is_numeric($valexp[1])) {
            return $valexp[1] == getUTFtoUTF($valexp[1]) ? $valexp[1] : getKRtoUTF($valexp[1]);
        }
    }
    return '';
}
if (!$_path[1] || !$_path[2] || !$_path[3]) {
    getLink($_gurl, '', '', '');
}
$R = getUidData($table[$_path[2] . 'data'], $_path[3]);
if (!$R['uid']) {
    $message = 'No Article';
}
if (!($_POST['title'] && $_POST['excerpt'] && $_POST['url'] && $_POST['blog_name'])) {
    getLink($_gurl . '?r=' . $_path[1] . '&m=' . $_path[2] . '&bid=' . $R['bbsid'] . '&uid=' . $R['uid'], '', '', '');
}
if (!$message) {
    $cync = '[' . $_path[2] . '][' . $R['uid'] . '][m:' . $_path[2] . ',bid:' . $R['bbsid'] . ',uid:' . $R['uid'] . ']';
    $url = $_POST['url'];
    $blog_name = getUTFtoUTF($_POST['blog_name']) == $_POST['blog_name'] ? $_POST['blog_name'] : getKRtoUTF($_POST['blog_name']);
    $title = getUTFtoUTF($_POST['title']) == $_POST['title'] ? $_POST['title'] : getKRtoUTF($_POST['title']);
    $excerpt = getUTFtoUTF($_POST['excerpt']) == $_POST['excerpt'] ? $_POST['excerpt'] : getKRtoUTF($_POST['excerpt']);
    $T = getDbData($table['s_trackback'], 'site=' . $R['site'] . " and parent='" . $_path[2] . $R['uid'] . "' and url='" . $url . "'", '*');
    if ($T['uid']) {
        getDbUpdate($table['s_trackback'], "name='{$blog_name}',subject='{$title}',content='{$excerpt}',d_modify='" . $date['totime'] . "'", 'uid=' . $T['uid']);
        getDbUpdate($table[$_path[2] . 'data'], "d_trackback='" . $date['totime'] . "'", 'uid=' . $R['uid']);
    } else {
        $minuid = getDbCnt($table['s_trackback'], 'min(uid)', '');
        $uid = $minuid ? $minuid - 1 : 100000000;
        $QKEY = "uid,site,type,parent,parentmbr,url,name,subject,content,d_regis,d_modify,cync";
        $QVAL = "'{$uid}','{$s}','1','" . $_path[2] . $R['uid'] . "','" . $R['mbruid'] . "','{$url}','{$blog_name}','{$title}','{$excerpt}','" . $date['totime'] . "','','{$cync}'";
        getDbInsert($table['s_trackback'], $QKEY, $QVAL);
        getDbUpdate($table['s_numinfo'], 'rcvtrack=rcvtrack+1', "date='" . $date['today'] . "' and site=" . $s);
        getDbUpdate($table[$_path[2] . 'data'], "trackback=trackback+1,d_trackback='" . $date['totime'] . "'", 'uid=' . $R['uid']);
        if ($uid == 100000000) {
            db_query("OPTIMIZE TABLE " . $table['s_trackback'], $DB_CONNECT);
        }
Beispiel #9
0
$add1 = explode("||", $m_rs[add1]);
$add2 = explode("||", getKRtoUTF($m_rs[add2]));
$add3 = explode("||", $m_rs[add3]);
$add4 = explode("||", $m_rs[add4]);
$add5 = explode("||", $m_rs[add5]);
$add6 = explode("||", $m_rs[add6]);
$add7 = explode("||", $m_rs[add7]);
$add8 = explode("||", $m_rs[add8]);
$add9 = explode("||", $m_rs[add9]);
$add10 = explode("||", $m_rs[add10]);
$add11 = explode("||", $m_rs[add11]);
$add13 = explode("||", $m_rs[add13]);
$add14 = explode("||", $m_rs[add14]);
$add30 = explode("||", $m_rs[add30]);
$adddata = explode("||", $m_rs[adddata]);
$etc = getKRtoUTF($add11[24]);
?>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<link rel="stylesheet" href="http://trevia.co.kr/mail/style.css">


<form name="form" action="/modules/bbsext/theme/_pc/list02/final2.php" method="post" onsubmit="return false" />
<input type="hidden" name="to_email" value="<?php 
echo $email;
?>
" />
<input type="hidden" name="to_name" value="<?php 
echo $name[0];
?>
" />
<input type="hidden" name="from_email" value="*****@*****.**" />
Beispiel #10
0
$city_val1 = explode('/', $city_key[1]);
$city_val2 = explode('/', $city_key[2]);
$city_val3 = explode('/', $city_key[3]);
$city_val4 = explode('/', $city_key[4]);
$city_val5 = explode('/', $city_key[5]);
$city_val6 = explode('/', $city_key[6]);
$w['ment'] = $city_val1[0];
$w['temf'] = $city_val2[0];
$w['temc'] = $city_val3[0];
$w['humi'] = $city_val4[0];
$w['icon'] = 'http://www.google.com/ig/images/weather/' . $city_val5[4];
//아이콘
$w['wind'] = $city_val6[0];
//바람
for ($i = 1; $i < 5; $i++) {
    $fx[$i] = explode('data=', str_replace('"', '', getKRtoUTF($FDATA[$i])));
    $fv[$i]['yoil'] = explode('/', $fx[$i][1]);
    $fv[$i]['row'] = explode('/', $fx[$i][2]);
    $fv[$i]['high'] = explode('/', $fx[$i][3]);
    $fv[$i]['icon'] = explode('/', $fx[$i][4]);
    $fv[$i]['ment'] = explode('/', $fx[$i][5]);
    $fv[$i]['yoil'] = $fv[$i]['yoil'][0];
    $fv[$i]['row'] = $fv[$i]['row'][0];
    $fv[$i]['high'] = $fv[$i]['high'][0];
    $fv[$i]['icon'] = 'http://www.google.com/ig/images/weather/' . $fv[$i]['icon'][4];
    $fv[$i]['ment'] = $fv[$i]['ment'][0];
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>