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
<?php | |
/** | |
* Define: FILE_ROOT_PATH | |
* Set Value: $lang | |
* Create an ini file: i18n/lang.ini | |
* Call function: _gettext("Homepage") or someelse string | |
**/ | |
function _gettext($text) { | |
global $lang; | |
$langs = parse_ini_file(FILE_ROOT_PATH . "i18n/lang.ini", true); |
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
<?php | |
# Demo: http://mt.aa.am/dataurl.php | |
# data:[<MIME-type>][;charset=<encoding>][;base64],<data> | |
if(isset($_GET['uri']) || isset($_POST['uri']) || isset($_GET['file'])) { | |
if(isset($_GET['uri'])) $uri = $_GET['uri']; | |
else if(isset($_POST['uri'])) $uri = $_POST['uri']; | |
else if(isset($_GET['file'])) { | |
$file = $_GET['file']; | |
if(!(strtolower(substr($file, 0, 7)) == "http://" || strtolower(substr($file, 0, 8)) == "https://")) |
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
function 檢查姓名(byval 姓名 as string) as boolean | |
dim 檢查 as boolean | |
for i as integer = 1 to len(姓名) | |
檢查 = false | |
select case lcase(mid(姓名, i, 1)) | |
case "0" | |
case "1" | |
case "2" | |
case "3" | |
case "4" |
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
<?php | |
$cls = true; | |
$use_same_db = false; | |
$old = true; | |
define("MT_TIMEOUT", 10); | |
function video_id($url) { | |
$parse_url = parse_url($url); | |
$query = array(); |
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
Open Source | |
You can use these code if you want to. | |
Please note that it is not allowed to use on commercial. |
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
<html> | |
<center> | |
<head> | |
<meta http-equiv="content-type" content="text/html; charset=UTF-8" /> | |
<title>註冊 - 網址方盒 - 為縮短網址而誕生的網站!!</title> | |
<script src="/js/jquery.js" type="text/javascript"></script> | |
<script src="/js/jquery.validate.js" type="text/javascript"></script> | |
<script src="/js/cmxforms.js" type="text/javascript"></script> | |
<script src="/js/load.js" type="text/javascript"></script> | |
<link rel="shortcut icon" href="/favicon.ico"> |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <math.h> | |
void loadmap(char *, int **, int *, int *, int *, int *); | |
void gomap(int *, int *, int *, int, int, int); | |
void backmap(int *, int *, int *, int *, int, int); | |
int summap(int *, int); |
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
#include <stdio.h> | |
#include <stdlib.h> | |
void p(double *); | |
int main() | |
{ | |
int n; //層數 | |
int i, j; //迴圈用變數 | |
double d[500]; |
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
#include <AT89X51.H> | |
#include <stdio.h> | |
void delay(int ms); | |
main() | |
{ | |
int i = 0; | |
int btnL, btnR; |
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
#include <stdio.h> | |
#include <stdlib.h> | |
struct Data | |
{ | |
int value; | |
struct Data *next; | |
}; | |
struct LinkList |
OlderNewer