forked from Prev/engine-pmc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
placeholderjs 적용 liejs 업데이트 sso 관련 버그 픽스
- Loading branch information
Showing
8 changed files
with
90 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,7 @@ | |
/** | ||
* Define PMC version | ||
*/ | ||
define('PMC_VERSION', '0.4.9'); | ||
define('PMC_VERSION', '0.5.0'); | ||
|
||
|
||
/** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,47 @@ | ||
<?php | ||
|
||
function printError($message) { | ||
$obj = new StdClass(); | ||
$obj->result = 'fail'; | ||
$obj->error = new StdClass(); | ||
$obj->error->message = $message; | ||
|
||
echo json_encode($obj); | ||
exit; | ||
} | ||
|
||
function execQuery($query) { | ||
$query = join($GLOBALS['db_prefix'], explode('(#)', $query)); | ||
$result = mysql_query($query, $GLOBALS['db']); | ||
|
||
if ($result === false) return NULL; | ||
if (mysql_num_rows($result) === NULL) return $result; | ||
|
||
$arr = array(); | ||
|
||
while ($fetch = mysql_fetch_object($result)) | ||
array_push($arr, $fetch); | ||
|
||
return $arr; | ||
} | ||
|
||
function execQueryOne($query) { | ||
$result = execQuery($query); | ||
if (is_array($result) && count($result) !== 0) | ||
return $result[0]; | ||
else | ||
return $result; | ||
<?php | ||
|
||
function printError($message) { | ||
$obj = new StdClass(); | ||
$obj->result = 'fail'; | ||
$obj->error = new StdClass(); | ||
$obj->error->message = $message; | ||
|
||
echo json_encode($obj); | ||
exit; | ||
} | ||
|
||
function execQuery($query, $fetchType='object') { | ||
$query = join($GLOBALS['db_prefix'], explode('(#)', $query)); | ||
$result = mysql_query($query, $GLOBALS['db']); | ||
|
||
if (!$result || $result === true) return NULL; | ||
if (mysql_num_rows($result) === NULL) return $result; | ||
|
||
$arr = array(); | ||
|
||
switch ($fetchType) { | ||
case 'object': | ||
while ($fetch = mysql_fetch_object($result)) | ||
array_push($arr, $fetch); | ||
break; | ||
|
||
case 'array': | ||
while ($fetch = mysql_fetch_array($result)) | ||
array_push($arr, $fetch); | ||
break; | ||
|
||
case 'row' : | ||
while ($fetch = mysql_fetch_row($result)) | ||
array_push($arr, $fetch); | ||
break; | ||
} | ||
return $arr; | ||
} | ||
|
||
function execQueryOne($query, $fetchType='object') { | ||
$result = execQuery($query, $fetchType); | ||
if (is_array($result) && count($result) !== 0) | ||
return $result[0]; | ||
else | ||
return $result; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.