'',
'checked' => array(),
);
$ss_id = $_COOKIE[$key];
if (! $ss_id) {
return $result;
}
$database = yaml_parse_file($yml);
$hash = $database[$env];
$mysql = mysql_connect($hash['host'], $hash['username'], $hash['password']);
if (! $mysql) {
return $result;
}
mysql_select_db($hash['database']);
mysql_query('SET NAMES utf8');
$ss_id = mysql_real_escape_string($ss_id);
$pref = mysql_query(
"SELECT * FROM `preferences` WHERE `key` = '$ss_id';"
);
if (! $pref || mysql_num_rows($pref) == 0) {
return $result;
}
$row = mysql_fetch_assoc($pref);
$result['user_name'] = $_COOKIE[$alive] ? $row['user_name'] : '';
$result['checked'] = syck_load($row['checked']);
}
return $result;
}
}
$i = fetch_rails_info();
if (! empty($i['checked'])) {
?>
The MTPaginate tag only works within PHP documents!
Make sure that the document extension is .php and that your server supports PHP documents.
1)
$paginate_current_page = 1;
$paginate_sections = array( 0
, 1);
$paginate_top_section = $paginate_sections[$paginate_current_page-1]+1;
$paginate_bottom_section = $paginate_sections[$paginate_current_page];
} else {
$paginate_top_section = 1;
$paginate_bottom_section = 1;
}
if(isset($_SERVER['QUERY_STRING'])) {
$paginate_self = '&' . $_SERVER['QUERY_STRING'] . '&';
$paginate_self = preg_replace("/&page=[^&]*&/", "&", $paginate_self);
$paginate_self = preg_replace("/&page_section=[^&]*&/", "&", $paginate_self);
$paginate_self = substr($paginate_self, 1, strlen($paginate_self) - 1);
if($paginate_self == '&')
$paginate_self = '';
else
$paginate_self = htmlentities($paginate_self);
} else {
$paginate_self = '';
}
$paginate_self = basename($_SERVER['PHP_SELF']) . "?${paginate_self}page";
?>
2016年10月03日
「もくロック」という木製のブロック玩具をご存知だろうか。
無印良品や、雑貨店、インターネットなどで一度は見たことがある人も多いのではないかと思う。
…