lint
This commit is contained in:
parent
ca5de66bb5
commit
4558d805b1
16 changed files with 91 additions and 78 deletions
|
|
@ -1 +1,2 @@
|
||||||
<?php
|
<?php
|
||||||
|
include_once "../../../../common.php";
|
||||||
|
|
|
||||||
|
|
@ -67,4 +67,4 @@ function che_replace_filename($filename){
|
||||||
$file_arr = explode('_', $filename);
|
$file_arr = explode('_', $filename);
|
||||||
|
|
||||||
return $file_arr[0].'_'.$passname.'_'.$random_str.'.'.$ext;
|
return $file_arr[0].'_'.$passname.'_'.$random_str.'.'.$ext;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -48,4 +48,4 @@ if (file_exists($filepath)) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
echo $r ? true : false;
|
echo $r ? true : false;
|
||||||
|
|
|
||||||
|
|
@ -151,4 +151,4 @@ $rdata = sprintf(
|
||||||
$filesize
|
$filesize
|
||||||
);
|
);
|
||||||
|
|
||||||
echo $rdata;
|
echo $rdata;
|
||||||
|
|
|
||||||
|
|
@ -1 +1,2 @@
|
||||||
<?php
|
<?php
|
||||||
|
include_once "../../../../../common.php";
|
||||||
|
|
|
||||||
|
|
@ -1 +1,2 @@
|
||||||
<?php
|
<?php
|
||||||
|
include_once "../../common.php";
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
include_once "_common.php";
|
||||||
|
include_once "captcha.lib.php";
|
||||||
|
|
||||||
$captcha = new KCAPTCHA();
|
$captcha = new KCAPTCHA();
|
||||||
$ss_captcha_key = get_session("ss_captcha_key");
|
$ss_captcha_key = get_session("ss_captcha_key");
|
||||||
|
|
@ -11,4 +13,4 @@ if( $ss_captcha_key && !preg_match('/^[0-9]/', $ss_captcha_key) && function_exis
|
||||||
if(! $ss_captcha_key_decrypt) $ss_captcha_key_decrypt = $ss_captcha_key;
|
if(! $ss_captcha_key_decrypt) $ss_captcha_key_decrypt = $ss_captcha_key;
|
||||||
$captcha->setKeyString($ss_captcha_key_decrypt);
|
$captcha->setKeyString($ss_captcha_key_decrypt);
|
||||||
$captcha->getKeyString();
|
$captcha->getKeyString();
|
||||||
$captcha->image();
|
$captcha->image();
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
|
include_once "_common.php";
|
||||||
|
|
||||||
function make_mp3()
|
function make_mp3()
|
||||||
{
|
{
|
||||||
|
|
@ -45,4 +46,4 @@ function make_mp3()
|
||||||
return G5_DATA_URL.'/'.$mp3_file;
|
return G5_DATA_URL.'/'.$mp3_file;
|
||||||
}
|
}
|
||||||
|
|
||||||
echo make_mp3();
|
echo make_mp3();
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
// 캡챠 세션값과 비교하여 맞는지? 틀린지? 결과값을 출력합니다.
|
// 캡챠 세션값과 비교하여 맞는지? 틀린지? 결과값을 출력합니다.
|
||||||
|
include_once "_common.php";
|
||||||
|
|
||||||
$captcha_key = isset($_POST['captcha_key']) ? $_POST['captcha_key'] : '';
|
$captcha_key = isset($_POST['captcha_key']) ? $_POST['captcha_key'] : '';
|
||||||
|
|
||||||
|
|
@ -14,4 +15,4 @@ if ($count >= 5) { // 설정값 이상이면 자동등록방지 입력 문자가
|
||||||
$captcha_key = get_string_encrypt($ip.$captcha_key);
|
$captcha_key = get_string_encrypt($ip.$captcha_key);
|
||||||
}
|
}
|
||||||
echo (get_session("ss_captcha_key") === $captcha_key) ? true : false;
|
echo (get_session("ss_captcha_key") === $captcha_key) ? true : false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
include_once "_common.php";
|
||||||
include_once(dirname(__FILE__).'/kcaptcha_config.php');
|
include_once(dirname(__FILE__).'/kcaptcha_config.php');
|
||||||
|
include_once "captcha.lib.php";
|
||||||
|
|
||||||
while(true){
|
while(true){
|
||||||
$keystring='';
|
$keystring='';
|
||||||
|
|
@ -17,4 +19,4 @@ if( $keystring && function_exists('get_string_encrypt') ){
|
||||||
set_session("ss_captcha_count", 0);
|
set_session("ss_captcha_count", 0);
|
||||||
set_session("ss_captcha_key", $keystring);
|
set_session("ss_captcha_key", $keystring);
|
||||||
$captcha = new KCAPTCHA();
|
$captcha = new KCAPTCHA();
|
||||||
$captcha->setKeyString(get_session("ss_captcha_key"));
|
$captcha->setKeyString(get_session("ss_captcha_key"));
|
||||||
|
|
|
||||||
|
|
@ -1,2 +1,2 @@
|
||||||
<?php
|
<?php
|
||||||
include_once "../../common.php";
|
include_once "../../common.php";
|
||||||
|
|
|
||||||
|
|
@ -1 +1,2 @@
|
||||||
<?php
|
<?php
|
||||||
|
include_once "../../../common.php";
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
|
include_once "./_common.php";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @file
|
* @file
|
||||||
|
|
@ -83,4 +84,4 @@ EOT;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
include_once(G5_PATH.'/tail.sub.php');
|
include_once(G5_PATH.'/tail.sub.php');
|
||||||
|
|
|
||||||
|
|
@ -1,68 +1,68 @@
|
||||||
<?php
|
<?php
|
||||||
include_once "./_common.php";
|
include_once "./_common.php";
|
||||||
|
|
||||||
if (!$board['bo_use_sns']) return;
|
if (!$board['bo_use_sns']) return;
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<ul id="bo_vc_sns">
|
<ul id="bo_vc_sns">
|
||||||
<?php
|
<?php
|
||||||
//============================================================================
|
//============================================================================
|
||||||
// 트위터
|
// 트위터
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
if ($config['cf_twitter_key']) {
|
if ($config['cf_twitter_key']) {
|
||||||
$twitter_user = get_session("ss_twitter_user");
|
$twitter_user = get_session("ss_twitter_user");
|
||||||
if (!$twitter_user) {
|
if (!$twitter_user) {
|
||||||
include_once(G5_SNS_PATH."/twitter/twitteroauth/twitteroauth.php");
|
include_once(G5_SNS_PATH."/twitter/twitteroauth/twitteroauth.php");
|
||||||
include_once(G5_SNS_PATH."/twitter/twitterconfig.php");
|
include_once(G5_SNS_PATH."/twitter/twitterconfig.php");
|
||||||
|
|
||||||
$twitter_user = false;
|
$twitter_user = false;
|
||||||
/*
|
/*
|
||||||
if (empty($_SESSION['access_token']) || empty($_SESSION['access_token']['oauth_token']) || empty($_SESSION['access_token']['oauth_token_secret'])) {
|
if (empty($_SESSION['access_token']) || empty($_SESSION['access_token']['oauth_token']) || empty($_SESSION['access_token']['oauth_token_secret'])) {
|
||||||
$twitter_url = G5_SNS_URL."/twitter/redirect.php";
|
$twitter_url = G5_SNS_URL."/twitter/redirect.php";
|
||||||
} else {
|
} else {
|
||||||
$access_token = $_SESSION['access_token'];
|
$access_token = $_SESSION['access_token'];
|
||||||
$connection = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET, $access_token['oauth_token'], $access_token['oauth_token_secret']);
|
$connection = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET, $access_token['oauth_token'], $access_token['oauth_token_secret']);
|
||||||
$content = $connection->get('account/verify_credentials');
|
$content = $connection->get('account/verify_credentials');
|
||||||
|
|
||||||
switch ($connection->http_code) {
|
switch ($connection->http_code) {
|
||||||
case 200:
|
case 200:
|
||||||
$twitter_user = true;
|
$twitter_user = true;
|
||||||
$twitter_url = $connection->getAuthorizeURL($token);
|
$twitter_url = $connection->getAuthorizeURL($token);
|
||||||
break;
|
break;
|
||||||
default :
|
default :
|
||||||
$twitter_url = G5_SNS_URL."/twitter/redirect.php";
|
$twitter_url = G5_SNS_URL."/twitter/redirect.php";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
$access_token = get_session('access_token');
|
$access_token = get_session('access_token');
|
||||||
$access_oauth_token = isset($access_token['oauth_token']) ? $access_token['oauth_token'] : '';
|
$access_oauth_token = isset($access_token['oauth_token']) ? $access_token['oauth_token'] : '';
|
||||||
$access_oauth_token_secret = isset($access_token['oauth_token_secret']) ? $access_token['oauth_token_secret'] : '';
|
$access_oauth_token_secret = isset($access_token['oauth_token_secret']) ? $access_token['oauth_token_secret'] : '';
|
||||||
$connection = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET, $access_oauth_token, $access_oauth_token_secret);
|
$connection = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET, $access_oauth_token, $access_oauth_token_secret);
|
||||||
$content = $connection->get('account/verify_credentials');
|
$content = $connection->get('account/verify_credentials');
|
||||||
|
|
||||||
switch ($connection->http_code) {
|
switch ($connection->http_code) {
|
||||||
case 200:
|
case 200:
|
||||||
$twitter_user = true;
|
$twitter_user = true;
|
||||||
$twitter_url = $connection->getAuthorizeURL($token);
|
$twitter_url = $connection->getAuthorizeURL($token);
|
||||||
break;
|
break;
|
||||||
default :
|
default :
|
||||||
$twitter_url = G5_SNS_URL."/twitter/redirect.php";
|
$twitter_url = G5_SNS_URL."/twitter/redirect.php";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
echo '<li class="sns_li_t '.($twitter_user?'':'sns_li_off').'">';
|
echo '<li class="sns_li_t '.($twitter_user?'':'sns_li_off').'">';
|
||||||
if ($twitter_user) {
|
if ($twitter_user) {
|
||||||
echo '<img src="'.G5_SNS_URL.'/icon/twitter.png" id="twitter_icon">';
|
echo '<img src="'.G5_SNS_URL.'/icon/twitter.png" id="twitter_icon">';
|
||||||
echo '<label for="" class="sound_only">트위터 동시 등록</label>';
|
echo '<label for="" class="sound_only">트위터 동시 등록</label>';
|
||||||
echo '<input type="checkbox" name="twitter_checked" id="twitter_checked" '.(get_cookie('ck_twitter_checked')?'checked':'').' value="1">';
|
echo '<input type="checkbox" name="twitter_checked" id="twitter_checked" '.(get_cookie('ck_twitter_checked')?'checked':'').' value="1">';
|
||||||
} else {
|
} else {
|
||||||
echo '<label for="" class="sound_only">트위터 동시 등록</label>';
|
echo '<label for="" class="sound_only">트위터 동시 등록</label>';
|
||||||
echo '<input type="checkbox" name="twitter_checked" id="twitter_checked" disabled value="1">';
|
echo '<input type="checkbox" name="twitter_checked" id="twitter_checked" disabled value="1">';
|
||||||
echo '<a href="'.$twitter_url.'" id="twitter_url" onclick="return false;" "><img src="'.G5_SNS_URL.'/icon/twitter.png" id="twitter_icon" width="20"></a>';
|
echo '<a href="'.$twitter_url.'" id="twitter_url" onclick="return false;" "><img src="'.G5_SNS_URL.'/icon/twitter.png" id="twitter_icon" width="20"></a>';
|
||||||
echo '<script>$(function(){ $(document).on("click", "#twitter_url", function(){ window.open(this.href, "twitter_url", "width=600,height=250"); }); });</script>';
|
echo '<script>$(function(){ $(document).on("click", "#twitter_url", function(){ window.open(this.href, "twitter_url", "width=600,height=250"); }); });</script>';
|
||||||
}
|
}
|
||||||
echo '</li>';
|
echo '</li>';
|
||||||
}
|
}
|
||||||
//============================================================================
|
//============================================================================
|
||||||
?>
|
?>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
|
||||||
|
|
@ -1 +1,2 @@
|
||||||
<?php
|
<?php
|
||||||
|
include_once "../../common.php";
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
|
include_once "./_common.php";
|
||||||
|
|
||||||
if (!$write)
|
if (!$write)
|
||||||
die("게시글이 없습니다.");
|
die("게시글이 없습니다.");
|
||||||
|
|
@ -60,4 +61,4 @@ echo "<entry>\n";
|
||||||
echo "<summary type=\"text\"><![CDATA[{$summary}]]></summary>\n";
|
echo "<summary type=\"text\"><![CDATA[{$summary}]]></summary>\n";
|
||||||
echo "<category term=\"{$bo_table}\" label=\"{$link_title}\" />\n";
|
echo "<category term=\"{$bo_table}\" label=\"{$link_title}\" />\n";
|
||||||
echo "</entry>\n";
|
echo "</entry>\n";
|
||||||
echo "</feed>";
|
echo "</feed>";
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue