$_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); } if (!$_HS['lang']) { $_HS['lang'] = $g['sys_lang']; } require $g['path_var'] . 'language/' . $_HS['lang'] . '/_sys.lang.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['sys_selectlang'] = $_HS['lang']; $g['location'] = '<a href="' . RW(0) . '">HOME</a>'; $g['browtitle'] = $_HS['title']; $g['meta_sbj'] = $_HS['title']; $g['meta_key'] = $_HS['title']; $g['sys_module'] = 'site'; $g['sys_action'] = $a && !$c ? true : false; $m = $m && !strstr($m, '.') ? $m : $g['sys_module']; $_m = $m; $_mod = $mod; if (!$g['sys_action'] && !$system) { if ($c) {
exit; } $iswpiinstall = false; $wpivfile = './wpi.var.php'; if (file_exists($wpivfile)) { $iswpiinstall = true; include_once $wpivfile; } $moduledir = array(); $_oldtable = array(); $_tmptable = array(); $_tmpdfile = $g['path_var'] . 'db.info.php'; $_tmptfile = $g['path_var'] . 'table.info.php'; include_once $g['path_core'] . 'function/sys.func.php'; include_once $g['path_core'] . 'function/db.mysql.func.php'; $date = getVDate(0); if (is_file($_tmpdfile)) { getLink('./', '', '', ''); } $DB_CONNECT = @mysql_connect($dbhost . ':' . $dbport, $dbuser, $dbpass); if (!$DB_CONNECT) { echo '<script type="text/javascript">parent.isSubmit=false;parent.goStep(2);</script>'; getLink('', '', 'DB접속 유저네임이나 패스워드 혹은 포트가 정확하지 않습니다.', ''); } $DB_SELECT = @mysql_select_db($dbname, $DB_CONNECT); if (!$DB_SELECT) { echo '<script type="text/javascript">parent.isSubmit=false;parent.goStep(2);parent.procForm.dbname.focus();</script>'; getLink('', '', 'DB네임이 정확하지 않습니다.', ''); } $ISRBDB = db_fetch_array(db_query('select count(*) from ' . $dbhead . '_s_module', $DB_CONNECT)); if ($ISRBDB[0]) {
| | Here is where you can register all of the routes for an application. | It's a breeze. Simply tell Laravel the URIs it should respond to | and give it the controller to call when that URI is requested. | */ Route::get('/', function () { return redirect('vacation'); }); Route::get('vacation', function () { $id = Input::get('u'); $idSelected = true; if ($id == null) { $idSelected = false; } $VDate = getVDate(); $myApplies = getMyApplies($id); $users = getUsersSimple(); $user = findUser($users, $id); return view('vacation', ['h1' => "내 휴가 현황", 'h1_small' => "내 남은 휴가와 휴가 사용내용을 확인합니다.", 'pagetype' => "user", 'vdate' => $VDate, 'myApplies' => $myApplies, 'users' => $users, 'user' => $user, 'id' => $id, 'idSelected' => $idSelected]); }); Route::get('admin', function () { $appies = getApplies(); return view('admin', ['h1' => "휴가 관리", 'h1_small' => "전 직원의 휴가신청서를 조회합니다.", 'pagetype' => "admin", 'applies' => $appies]); }); Route::get('apply', function () { $users = getUsersSimple(); return view('apply', ['pagetype' => "admin", 'users' => $users]); }); Route::post('apply', function (\Illuminate\Http\Request $request) { // dd($request->all());