Esempio n. 1
0
<?php

session_start();
include_once 'incl/creds.php';
include_once 'incl/functions.php';
$link = mysqli_connect($sql_host, $sql_user, $sql_pass, $sql_db);
$profile = mysqli_real_escape_string($link, strtolower($_GET['of']));
if (mysqli_num_rows(mysqli_query($link, "SELECT `id` FROM `users` WHERE `username`='{$profile}'")) <= 0) {
    header("Location:index.php");
}
if (!isset($_SESSION['login'])) {
    $user = null;
    include getLangFile(get_loc());
} else {
    $user = getUserInfo($link, $_SESSION['login']);
    include getLangFile($user['lang']);
}
$profile = getUserInfo($link, $profile);
?>
<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title>Quatro - <?php 
echo "@" . $profile['username'];
?>
</title>
        <script type="text/javascript" src="resx/js.js"></script>
        <link rel="stylesheet" href="resx/css.css">
        <link rel="stylesheet" href="resx/small_topbar.css">
        <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
Esempio n. 2
0
    if (!$_HS['uid']) {
        $_HD = getDbData($table['s_domain'], "name='" . str_replace('www.', '', $_SERVER['HTTP_HOST']) . "'", '*');
        if ($_HD['site']) {
            $_HS = getUidData($table['s_site'], $_HD['site']);
        } else {
            $_HS = db_fetch_array(getDbArray($table['s_site'], '', '*', 'gid', 'asc', 1, 1));
        }
    }
    $s = $_HS['uid'];
    $r = $_HS['id'];
} else {
    $_HS = getUidData($table['s_site'], $s);
}
$_SEO = getDbData($table['s_seo'], 'rel=0 and parent=' . $_HS['uid'], '*');
include getLangFile($g['path_module'] . 'admin/language/', $_HS['lang'] ? $_HS['lang'] : $d['admin']['syslang'], '/lang.function.php');
include getLangFile($g['path_module'] . 'admin/language/', $_HS['lang'] ? $_HS['lang'] : $d['admin']['syslang'], '/lang.engine.php');
$_CA = array();
$date = getVDate($_HS['timecal']);
$g['s'] = str_replace('/index.php', '', $_SERVER['SCRIPT_NAME']);
$g['r'] = $_HS['rewrite'] ? $g['s'] . ($_HS['usescode'] ? '/' . $r : '') : '.';
$g['img_core'] = $g['s'] . '/_core/images';
$g['meta_tit'] = $_SEO['title'];
$g['meta_key'] = $_SEO['keywords'];
$g['meta_des'] = $_SEO['description'];
$g['meta_bot'] = $_SEO['classification'];
$g['meta_img'] = getMetaImage($_SEO['image_src']);
$g['sys_module'] = $d['admin']['sysmodule'];
$g['sys_action'] = $a && !$c ? true : false;
$m = $m && !strstr($m, '.') ? $m : $g['sys_module'];
$_m = $m;
$_mod = $mod;
Esempio n. 3
0
<?php

include getLangFile($g['dir_module'] . 'language/', $d['admin']['syslang'], '/lang.admin-theme-default.php');
?>
<div class="rb-root">
	<div id="rb-login">
		<div class="panel panel-default">
			<div class="panel-heading">
				<h1 class="panel-title"><a href="<?php 
echo $g['r'];
?>
/"><i class="kf-bi-01"></i></a> <small>Admin Mode</small></h1>
			</div>
			<div class="panel-body">
				<form class="loginForm" role="form" name="loginform" action="<?php 
echo $g['s'];
?>
/" method="post" onsubmit="return loginCheck(this);">
					<input type="hidden" name="r" value="<?php 
echo $r;
?>
">
					<input type="hidden" name="a" value="login">
					<input type="hidden" name="referer" value="<?php 
echo $referer ? $referer : $_SERVER['HTTP_REFERER'];
?>
">
					<input type="hidden" name="usertype" value="admin">
					<div class="form-group">
						<label for="id" class="control-label">Email or UserID </label>
						<input type="text" name="id"  class="form-control input-lg" id="id" placeholder="" value="<?php 
Esempio n. 4
0
<?php

include getLangFile($g['dir_module'] . 'language/', $d['admin']['syslang'], '/lang.system.php');
?>
<div class="modal-header">
	<button type="button" class="close" onclick="hideModal();">&times;</button>
	<h4 class="modal-title"><i class="fa fa-code fa-lg"></i> <?php 
echo _LANG('sb001', 'site');
?>
</h4>
</div>
<div class="modal-body">
	<textarea id="rb-widget-code-area"></textarea>
</div>
<div class="modal-footer">
	<button type="button" class="btn btn-default" onclick="hideModal();"><?php 
echo _LANG('s0003', 'site');
?>
</button>
	<button type="button" class="btn btn-primary rb-clipboard" data-clipboard-target="rb-widget-code-area" onclick="hideModal();"><?php 
echo _LANG('sb002', 'site');
?>
</button>
</div>


<!-- zero-clipboard -->
<?php 
getImport('zero-clipboard', 'ZeroClipboard.min', false, 'js');
?>
<script>
Esempio n. 5
0
	<div id="rb-widgets-body" class="row">

		<?php 
$_i = 0;
foreach ($d['admwidget'] as $_key => $_val) {
    ?>
		<?php 
    if (!is_file($g['path_module'] . $module . '/widgets/' . $_key . '/main.php')) {
        continue;
    }
    ?>
		<?php 
    if ($_val == 'true') {
        ?>
		<?php 
        include getLangFile($g['path_module'] . $module . '/widgets/' . $_key . '/lang.', $d['admin']['syslang'], '.php');
        ?>
		<?php 
        include $g['path_module'] . $module . '/widgets/' . $_key . '/var.php';
        ?>
		<div class="col-md-<?php 
        echo $d['admdash']['col'];
        ?>
 col-lg-<?php 
        echo $d['admdash']['col'];
        ?>
">
			<link href="<?php 
        echo $g['s'];
        ?>
/modules/<?php 
Esempio n. 6
0
<?php

if (!defined('__KIMS__')) {
    exit;
}
checkAdmin(0);
$memberuid = $my['uid'];
$url = $g['s'] . '/?r=' . $r . '&m=' . $m . '&module=' . $_addmodule . '&front=' . $_addfront;
if (getDbRows($table['s_admpage'], 'memberuid=' . $memberuid . " and url='" . $url . "'")) {
    getLink('', '', _LANG('a3001', 'admin'), '');
}
$maxgid = getDbCnt($table['s_admpage'], 'max(gid)', 'memberuid=' . $memberuid);
$MD = getDbData($table['s_module'], "id='" . $_addmodule . "'", '*');
include getLangFile($g['path_module'] . $_addmodule . '/language/', $d['admin']['syslang'], '/lang.admin-menu.php');
$varfile = $g['path_module'] . $_addmodule . '/admin/var/var.menu.php';
if (is_file($varfile)) {
    include $varfile;
    $name = $MD['name'] . ' - ' . $d['amenu'][$_addfront];
} else {
    $name = $MD['name'];
}
$gid = $maxgid + 1;
getDbInsert($table['s_admpage'], 'memberuid,gid,name,url', "'{$memberuid}','{$gid}','{$name}','{$url}'");
$bookmark_uid = getDbCnt($table['s_admpage'], 'max(uid)', '');
if ($_addmodule == 'admin' && $_addfront == 'bookmark') {
    getLink('reload', 'parent.', '', '');
} else {
    ?>
<script>
parent.getId('_bookmark_star_').className = 'fa fa-lg fa-star rb-star-fill';
parent.getId('_bookmark_notyet_').className = 'btn-group btn-group-sm dropdown hidden';
Esempio n. 7
0
<?php

if (!defined('__KIMS__')) {
    exit;
}
include $g['dir_module'] . 'var/var.search.php';
include $g['dir_module'] . 'var/var.order.php';
$swhere = $swhere ? $swhere : 'all';
$_ResultArray = array();
$_HM['layout'] = $d['search']['layout'];
include getLangFile($g['dir_module'] . 'language/', $_HS['lang'] ? $_HS['lang'] : $d['admin']['syslang'], '/lang.theme-' . $d['search']['theme'] . '.php');
$g['dir_module_skin'] = $g['dir_module'] . '/themes/' . $d['search']['theme'] . '/';
$g['url_module_skin'] = $g['url_module'] . '/themes/' . $d['search']['theme'];
$g['img_module_skin'] = $g['url_module_skin'] . '/images';
$g['dir_module_mode'] = $g['dir_module_skin'] . 'main';
$g['url_module_mode'] = $g['url_module_skin'] . '/main';
$g['url_reset'] = $g['s'] . '/?r=' . $r . '&amp;m=' . $m;
$g['url_where'] = $g['url_reset'] . ($sort ? '&amp;sort=' . $sort : '') . ($orderby ? '&amp;sort=' . $orderby : '') . ($keyword ? '&amp;keyword=' . urlencode($keyword) : '') . '&amp;swhere=';
$g['push_location'] = '<li class="active">' . $_HMD['name'] . '</li>';
$g['main'] = $g['dir_module_mode'] . '.php';
Esempio n. 8
0
" title="<?php 
        echo _LANG('sa011', 'site');
        ?>
" data-tooltip="tooltip" data-placement="left" onclick="return hrefCheck(this,true,'<?php 
        echo _LANG('sa012', 'site');
        ?>
');"><i class="glyphicon glyphicon-trash"></i></a></li>
			<?php 
    }
    ?>
		</ul>

		<div class="tab-content" style="padding-top:12px">
			<div class="tab-pane active" id="code">
				<?php 
    include getLangFile($g['path_widget'] . $swidget . '/lang.', $d['admin']['syslang'], '.php');
    ?>
				<?php 
    include $g['path_widget'] . $swidget . '/admin.php';
    ?>
			</div>
			<div class="tab-pane" id="preview">
				<?php 
    $_widgetPreview = getWidgetPreviewImg($g['path_widget'] . $swidget . '/thumb');
    ?>
				<?php 
    if ($_widgetPreview) {
        ?>
				<a href="<?php 
        echo $_widgetPreview;
        ?>
Esempio n. 9
0
<?php

$g['layoutVarForSite'] = $g['dir_layout'] . '_var/_var.' . $r . '.php';
include is_file($g['layoutVarForSite']) ? $g['layoutVarForSite'] : $g['dir_layout'] . '_var/_var.php';
// 언어셋
include getLangFile($g['dir_layout'] . '_languages/lang.', $_HS['lang'] ? $_HS['lang'] : $d['admin']['syslang'], '.php');
// 레이아웃에 포함된 메인페이지 사용할 경우
if (strstr($g['main'], $g['dir_layout']) && !$prelayout) {
    $d['layout']['php'] = $d['layout']['dir'] . '/home.php';
}
if (isset($layoutPage)) {
    $g['main'] = $g['dir_layout'] . '_pages/' . $layoutPage . '.php';
    if (strpos($layoutPage, 'jax/')) {
        include $g['main'];
        exit;
    } else {
        $g['dir_module_mode'] = $g['dir_layout'] . '_pages/' . $layoutPage;
        $g['url_module_mode'] = $g['url_layout'] . '/_pages/' . $layoutPage;
    }
}
Esempio n. 10
0
function getWidget($widget, $wdgvar)
{
    global $DB_CONNECT, $table, $date, $my, $r, $s, $m, $g, $d, $c, $mod, $_HH, $_HD, $_HS, $_HM, $_HP, $_CA;
    static $wcsswjsc;
    if (!is_file($g['wdgcod']) && !strpos('_' . $wcsswjsc, '[' . $widget . ']')) {
        $wcss = $g['path_widget'] . $widget . '/main.css';
        $wjsc = $g['path_widget'] . $widget . '/main.js';
        if (is_file($wcss)) {
            $g['widget_cssjs'] .= '<link href="' . $g['s'] . '/widgets/' . $widget . '/main.css" rel="stylesheet">' . "\n";
        }
        if (is_file($wjsc)) {
            $g['widget_cssjs'] .= '<script src="' . $g['s'] . '/widgets/' . $widget . '/main.js"></script>' . "\n";
        }
        $wcsswjsc .= '[' . $widget . ']';
    }
    $wdgvar['widget_id'] = str_replace('/', '-', $widget);
    $wdgvar['widgetlang'] = $_HS['lang'] ? $_HS['lang'] : $d['admin']['syslang'];
    include getLangFile($g['path_widget'] . $widget . '/lang.', $wdgvar['widgetlang'], '.php');
    include $g['path_widget'] . $widget . '/main.php';
}
Esempio n. 11
0
    $mod = 'front';
}
$module = $module ? $module : 'admin';
$front = $front ? $front : 'main';
$MD = getDbData($table['s_module'], "id='" . $module . "'", '*');
if (!$MD['id']) {
    getLink($g['s'] . '/?r=' . $r . '&m=admin&module=admin', '', _LANG('ex001', 'admin'), '');
}
if ($my['uid'] != 1 && strpos('_' . $my['adm_view'], '[' . $MD['id'] . ']')) {
    getLink($g['s'] . '/?r=' . $r . '&m=site', '', _LANG('ex002', 'admin'), '');
}
$d['module']['skin'] = $d['admin']['themepc'];
$g['dir_module_skin'] = $g['dir_module'] . 'theme/' . $d['module']['skin'] . '/';
$g['url_module_skin'] = $g['url_module'] . '/theme/' . $d['module']['skin'];
$g['dir_module_admin'] = $g['path_module'] . $module . '/admin/' . $front;
$g['url_module_admin'] = $g['s'] . '/modules/' . $module . '/admin/' . $front;
$g['img_module_admin'] = $g['s'] . '/modules/' . $module . '/admin/images';
$g['adm_module_varmenu'] = $g['path_module'] . $module . '/admin/var/var.menu.php';
$g['adm_module'] = $g['path_module'] . $module . '/admin.php';
$g['img_module_skin'] = $g['url_module_skin'] . '/images';
$g['dir_module_mode'] = $g['dir_module_skin'] . $mod;
$g['url_module_mode'] = $g['url_module_skin'] . '/' . $mod;
$g['adm_href'] = $g['s'] . '/?r=' . $r . '&amp;m=' . $m . '&amp;module=' . $module . '&amp;front=' . $front;
$g['adminlanguage'] = $MD['lang'] ? $MD['lang'] : $d['admin']['syslang'];
include getLangFile($g['path_module'] . $module . '/language/', $g['adminlanguage'], '/lang.admin.php');
include getLangFile($g['path_module'] . $module . '/language/', $g['adminlanguage'], '/lang.admin-menu.php');
if (is_file($g['adm_module_varmenu'])) {
    $d['amenu'] = array();
    include $g['adm_module_varmenu'];
}
$g['main'] = $my['admin'] && $iframe == 'Y' ? $g['adm_module'] : $g['dir_module_mode'] . '.php';
Esempio n. 12
0
	<div style="position:absolute;width:<?php 
    echo $_size[0];
    ?>
;height:<?php 
    echo $_size[1];
    ?>
;top:<?php 
    echo $_size[2];
    ?>
;left:<?php 
    echo $_size[3];
    ?>
;">
	<?php 
    include getLangFile($g['path_widget'] . $wdgvar['widget_path'] . '/lang.', $wdgvar['widgetlang'], '.php');
    ?>
	<?php 
    include $g['path_widget'] . $wdgvar['widget_path'] . '/main.php';
    ?>
	</div>

	<?php 
    $_widgetGroup .= '[' . $wdgvar['widget_path'] . ']';
    ?>
	<?php 
    $i++;
}
?>
</div>
Esempio n. 13
0
    echo $R['name'];
    ?>
<span class="badge"><?php 
    echo $R['id'];
    ?>
</span></a>
		<?php 
}
?>
	</div>
	<div class="content">
		<?php 
if ($smodule) {
    ?>
		<?php 
    include getLangFile($g['path_module'] . $smodule . '/language/', $d['admin']['syslang'], '/lang.joint.php');
    ?>
		<?php 
    include $g['var_joint_file'];
    ?>
		<?php 
} else {
    ?>
		<div class="none">
			<i class="kf kf-module fa-5x"></i><br><br>
			<?php 
    echo _LANG('s6001', 'site');
    ?>
		</div>
		<?php 
}
Esempio n. 14
0
<?php

if (!defined('__KIMS__')) {
    exit;
}
$g['referer'] = $_SERVER['HTTP_REFERER'];
if (!$g['referer'] || !strpos($g['referer'], '&m=admin&')) {
    $_filterSet = array('nic', 'name', 'id');
    foreach ($_filterSet as $_ft) {
        ${$_ft} = preg_replace("(\\.|\\;|\\\\)", '', strip_tags(${$_ft}));
    }
}
if (strpos(',join,', $a)) {
    if (!$g['referer'] || !strpos($g['referer'], $_SERVER['HTTP_HOST'])) {
        exit;
    }
}
$g['act_module0'] = $g['dir_module'] . $a . '.php';
$g['act_module1'] = $g['dir_module'] . 'action/' . (strpos($a, '/') ? str_replace('/', '/a.', $a) : 'a.' . $a) . '.php';
$g['act_module2'] = $g['dir_module'] . 'action/a.' . $a . '.php';
$g['act_module3'] = $g['referer'] && strpos($g['referer'], '&m=admin&') ? $_HMD['lang'] ? $_HMD['lang'] : $d['admin']['syslang'] : ($_HS['lang'] ? $_HS['lang'] : $d['admin']['syslang']);
include getLangFile($g['dir_module'] . 'language/', $g['act_module3'], '/lang.action.php');
if (is_file($g['act_module0'])) {
    include $g['act_module0'];
}
if (is_file($g['act_module1'])) {
    include $g['act_module1'];
}
if (is_file($g['act_module2'])) {
    include $g['act_module2'];
}