-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/lib/sys/CJson.class.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
class CJson {
private static function dq( $txt ) {
# \b Backspace (ascii code 08)
# \f Form feed (ascii code 0C)
# \n New line
# \r Carriage return
# \t Tab
# \" Double quote
# \\ Backslash character
$conv = array(
"\\"=>"\\\\",
"\b"=>"\\b",
"\f"=>"\\f",
"\r"=>"\\r",
"\n"=>"\\n",
"\t"=>"\\t",
"\""=>"\\\"",
);
foreach( $conv as $key => $val ) {
$txt = str_replace( $key, $val, $txt );
}
return '"' . $txt . '"';
}
public static function isList( $ax ) {
$i = 0;
foreach( $ax as $key => $val ) {
if ( is_int( $key ) && ( $key == $i ) ) {
$i++;
} else {
return false;
}
}
return true;
}
private static function json_encode_uu( $ax ) {
$b_list = self::isList( $ax );
$rx = array();
foreach( $ax as $key => $val ) {
$s = $b_list ? "" : ( self::dq( $key ) . ":" );
if ( is_array( $val ) ) {
$s .= self::json_encode_uu( $val );
} else if ( is_int( $val ) || is_float( $val ) ) {
$s .= $val;
} else if ( is_bool( $val ) ) {
$s .= $val ? "true" : "false";
} else {
$s .= self::dq( $val );
}
$rx[] = $s;
}
$s = implode( ",", $rx );
if ( $b_list ) {
$s = "[" . $s . "]";
} else {
$s = "{" . $s . "}";
}
return $s;
}
public static function encode( $x ) {
if ( defined( 'JSON_UNESCAPED_UNICODE' ) ) {
return json_encode( $x, JSON_UNESCAPED_UNICODE );
} else {
return self::json_encode_uu( $x );
}
}
public static function decode( $json ) {
return json_decode( $json, true );
}
}
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/lib/sys/index.inc.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
class CLibAutoloader {
public static function autoloader( $class, $path_dir ) {
$path = "{$path_dir}/{$class}.class.php";
if ( is_file( $path ) ) {
require_once( $path );
}
}
}
function lib_autoloader( $class ) {
CLibAutoloader::autoloader( $class, dirname(__FILE__) );
}
spl_autoload_register("lib_autoloader");
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/lib/sys/CPreProc.class.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
class CPreProc {
public static function getCurrentPageUrl( $http = true ) {
$url = "";
if ( $http ) {
$url .= "http";
$b_https = (( isset( $_SERVER["HTTPS"] ) ) && ( $_SERVER["HTTPS"] == "on" ));
if ( $b_https ) {
$url .= "s";
}
$url .= "://" . $_SERVER["SERVER_NAME"];
if (( $_SERVER["SERVER_PORT"] != "80" ) && !$b_https ) {
$url .= ":" . $_SERVER["SERVER_PORT"];
}
}
//-- $_SERVER["SCRIPT_NAME"] trancates GET params and PathInfo.
$url .= $_SERVER["SCRIPT_NAME"];
return $url;
}
public static function reverseMagicQuote() {
$func = "reverseMagicQuote_stripslashes_deep";
if ( !function_exists( $func ) && get_magic_quotes_gpc() ) {
define( 'REVERSE_MAGIC_QUOTE', $func );
function reverseMagicQuote_stripslashes_deep( $value ) {
$value = is_array( $value ) ?
array_map( REVERSE_MAGIC_QUOTE, $value ) :
stripslashes( $value );
return $value;
}
$_POST = array_map( $func, $_POST );
$_GET = array_map( $func, $_GET );
$_COOKIE = array_map( $func, $_COOKIE );
$_REQUEST = array_map( $func, $_REQUEST );
}
}
public static function checkPhpVersion() {
$ver_req = "5.2";
$ver_cur = phpversion();
if ( strnatcmp( $ver_cur, $ver_req ) >= 0 ) {
# equal or newer
} else {
$err =
"
" .
"This script requires PHP v%ver_req% or later. " .
"Unfortunately, your PHP version is %ver_cur%. " .
"Please upgrade your PHP and try again!" .
"
";
$err = str_replace("%ver_req%", $ver_req, $err);
$err = str_replace("%ver_cur%", $ver_cur, $err);
echo $err;
exit;
}
return true;
}
}
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/lib/sys/CEnv.class.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
class CEnv {
private static $url_root = null;
private static $cfg_app = null;
private static $mx_locale = array();
private static $mx_config = array();
//-- app config
public static function get( $key ) {
if ( !self::$cfg_app ) {
self::$cfg_app = &self::config( "app/app" );
}
return self::$cfg_app[$key];
}
//-- lib
public static function useLib( $lib ) {
include_once( self::pathLib( $lib ) . "index.inc.php" );
}
//-- locale & config files
public static function explodePath( $cname, &$fn, &$path ) {
$px = explode("/",$cname);
if ( count($px) == 1 ) {
$fn = $cname;
$path = "";
} else {
$fn = $px[count($px)-1];
$path = substr($cname,0,-strlen($fn));
}
}
public static function &locale( $lname ) {
if ( isset(self::$mx_locale[$lname]) ) {
return self::$mx_locale[$lname];
} else {
self::$mx_locale[$lname] = array();
$lca =& self::$mx_locale[$lname];
self::explodePath( $lname, $fn, $path );
include( self::pathLocale() . self::get("lc") . "/{$path}locale.{$fn}.inc.php" );
return self::$mx_locale[$lname];
}
}
public static function &config( $cname ) {
if ( isset(self::$mx_config[$cname]) ) {
return self::$mx_config[$cname];
} else {
self::$mx_config[$cname] = array();
$cfg =& self::$mx_config[$cname];
self::explodePath( $cname, $fn, $path );
include( self::pathConfig() . "{$path}config.{$fn}.inc.php" );
return self::$mx_config[$cname];
}
}
//-- path
public static function pathRoot() {
return dirname(dirname(dirname(__FILE__))) . "/";
}
public static function pathConfig() {
return self::pathRoot() . "config/";
}
public static function pathLocale() {
return self::pathRoot() . "locale/";
}
public static function pathLib( $lib = null ) {
$path = self::pathRoot() . "lib/";
if ( !is_null( $lib ) ) {
$path .= $lib . "/";
}
return $path;
}
public static function pathAdmin( $fn = null ) {
$path = self::pathRoot() . self::get("dir-admin") . "/";
if ( !is_null($fn) ) {
$path .= $fn;
}
return $path;
}
public static function pathClient( $fn = null ) {
$path = self::pathRoot() . self::get("dir-client") . "/";
if ( !is_null($fn) ) {
$path .= $fn;
}
return $path;
}
//-- url
public static function setUrlRoot( $url_root ) {
return self::$url_root = $url_root;
}
public static function urlRoot() {
return self::$url_root;
}
public static function urlAdmin() {
return self::urlRoot() . self::get("dir-admin") . "/";
}
public static function urlClient() {
return self::urlRoot() . self::get("dir-client") . "/";
}
}
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/lib/poll/CCMSData.class.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
class CCMSData {}
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/lib/poll/index.inc.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
function lib_autoloader_poll( $class ) {
CLibAutoloader::autoloader( $class, dirname(__FILE__) );
}
spl_autoload_register("lib_autoloader_poll");
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/lib/app/CComponent.class.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
class CComponent {
private static $path_cmp_root;
private static $url_cmp_root;
private static $path_tpl_root;
private static $url_tpl_root;
public static $cmpdb = array();
public static $cmpcfg = array();
private static $spec_file = "spec/main.inc.php";
private static $config_file = "config.inc.php";
private static $def_component = "main";
private static $def_scope = "app";
private static $def_version = 1.0;
private static $instances = array();
private static function compareVersions( $cfg_x, $cfg_y ) {
$ver_x = isset($cfg_x["version"]) ?
$cfg_x["version"] : self::$def_version;
$ver_y = isset($cfg_y["version"]) ?
$cfg_y["version"] : self::$def_version;
return ( $ver_y > $ver_x );
}
private static function loadCmpCfg( $cmpname, $path_fd ) {
self::$cmpcfg[$cmpname] = null;
$path_config = $path_fd . self::$config_file;
if ( file_exists($path_config) ) {
$cfg = array();
include($path_config);
self::$cmpcfg[$cmpname] = $cfg;
}
}
private static function setupFolder( $cmptype, $path_fd, $url_fd ) {
$path_spec = $path_fd . self::$spec_file;
if ( file_exists($path_spec) ) {
$cfg = array();
include($path_spec);
if ( isset($cfg[$cmptype]) ) {
$cfg = $cfg[$cmptype];
if ( isset($cfg["cmpname"]) ) {
$cmpname = $cfg["cmpname"];
$b_insert = ( isset(self::$cmpdb[$cmpname]) ) ?
self::compareVersions( self::$cmpdb[$cmpname], $cfg ) :
true;
if ( $b_insert ) {
$cfg["dir"] = ( isset($cfg["dir"]) ? $cfg["dir"] : "" );
$cfg["path"] = $path_fd . $cfg["dir"];
$cfg["url"] = $url_fd . $cfg["dir"];
self::$cmpdb[$cmpname] = $cfg;
self::loadCmpCfg($cmpname,$path_fd);
}
}
}
}
}
public static function setupCmp( $cmptype ) {
self::$path_cmp_root = CAppPath::pathComponent();
self::$url_cmp_root = CAppPath::urlComponent();
self::$cmpdb = array();
foreach( glob(self::$path_cmp_root."*") as $path_cmp ) {
if ( is_dir($path_cmp) ) {
$path_parts = pathinfo($path_cmp);
$fd = $path_parts["basename"];
if ( substr($fd,0,1) != "_" ) {
self::setupFolder($cmptype,
self::$path_cmp_root.$fd."/",
self::$url_cmp_root.$fd."/");
}
}
}
//-- sort array
ksort(self::$cmpdb);
//-- put the default component on the beginning
$def = self::$def_component;
if ( isset(self::$cmpdb[$def]) ) {
$cfg = self::$cmpdb[$def];
unset(self::$cmpdb[$def]);
self::$cmpdb = array_reverse(self::$cmpdb);
self::$cmpdb[$def] = $cfg;
self::$cmpdb = array_reverse(self::$cmpdb);
}
//-- register pcf
self::registerPcf();
}
public static function setupTpl( $cmptype, $tidx ) {
self::$path_tpl_root = CAppPath::pathTpl();
self::$url_tpl_root = CAppPath::urlTpl();
//-- setup tpl folders
foreach( $tidx as $tid ) {
self::setupFolder($cmptype,
self::$path_tpl_root.$tid."/",
self::$url_tpl_root.$tid."/");
}
//-- register pcf
self::registerPcf();
}
private static function registerPcf() {
foreach( self::$cmpdb as $cmpname=>&$cfg ) {
$path = $cfg["path"] . "pcf/index.inc.php";
if ( file_exists($path) ) { include_once($path); }
}
}
public static function registerPcfClass( $scope, $data ) {
foreach( self::$cmpdb as $cmpname=>$cfg ) {
if ( isset($cfg["pcf"]) && isset($cfg["pcf"][$scope]) ) {
$ls = $cfg["pcf"][$scope];
foreach( $ls as $cname ) {
self::$instances[$cname] = new $cname($data);
}
}
}
}
public static function getPcfClass( $cname ) {
return isset(self::$instances[$cname]) ?
self::$instances[$cname] : null;
}
public static function buildReso( $restype ) {
$rx = array();
foreach( self::$cmpdb as $cmpname => $cfg ) {
if ( isset($cfg[$restype]) ) {
if ( is_array($cfg[$restype]) ) {
foreach( $cfg[$restype] as $resname=>$rescfg ) {
self::createResEntry( $restype, $resname, $rescfg,
$cmpname, $cfg, $rx );
}
}
} else {
$path_res_root = $cfg["path"] . "/{$restype}/";
foreach (glob("{$path_res_root}*") as $path_res ) {
if ( !is_dir($path_res) ) {
$path_parts = pathinfo($path_res);
$resname = $path_parts["basename"];
self::createResEntry( $restype, $resname, null,
$cmpname, $cfg, $rx );
}
}
}
}
return $rx;
}
private static function createResEntry( $restype,
$resname, $rescfg, $cmpname, $cfg, &$rx ) {
//-- comment out
if ( substr($resname,0,1) == "_" ) { return; }
//-- if rescfg is empty set it to default
$rescfg = ( $rescfg ) ? $rescfg : array(
"version"=>self::$def_version,
);
//-- resolve "scope" if not specified
if ( !isset($rescfg["scope"]) ) {
switch( $restype ) {
case "js":
case "css":
$rescfg["scope"] = self::$def_scope;
break;
case "html":
case "img":
$rescfg["scope"] = $cmpname;
break;
}
}
$scope = $rescfg["scope"];
//-- init $rx[$scope]
if ( !isset($rx[$scope]) ) {
$rx[$scope] = array();
}
$ls =& $rx[$scope];
//-- replace or create entry
$b_replace = ( isset($ls[$resname]) ) ?
self::compareVersions($ls[$resname], $rescfg ) :
true;
if ( $b_replace ) {
$rescfg["path"] = $cfg["path"];
$rescfg["url"] = $cfg["url"];
$ls[$resname] = $rescfg;
}
}
public static function jscode( $reso, $scope ) {
$js = "";
if ( isset($reso) && isset($reso[$scope]) ) {
$ls = $reso[$scope];
$sx = array();
foreach( $ls as $jsname=>$cfg ) {
$path = $cfg["path"] . "js/{$jsname}";
if ( file_exists($path) ) {
$sx[] = file_get_contents($path);
}
}
$js = implode("\r\n",$sx);
}
return $js;
}
public static function htmlcode( $reso ) {
$htmlx = array();
if ( isset($reso) ) {
foreach( $reso as $scope=>$fx ) {
$sx = array();
foreach( $fx as $htmlname=>$cfg ) {
$path = $cfg["path"] . "html/{$htmlname}";
if ( file_exists($path) ) {
$txt = file_get_contents($path);
$txt = str_replace("%url-cmp%",$cfg["url"],$txt);
$sx[$htmlname] = $txt;
}
}
$htmlx[$scope] = $sx;
}
}
return $htmlx;
}
public static function csscode( $reso, $scope ) {
$css = "";
if ( isset($reso) && isset($reso[$scope]) ) {
$ls = $reso[$scope];
$sx = array();
foreach( $ls as $cssname=>$cfg ) {
$path = $cfg["path"] . "css/{$cssname}";
if ( file_exists($path) ) {
$txt = file_get_contents($path);
$txt = str_replace("%url-cmp%",$cfg["url"],$txt);
$sx[] = $txt;
}
}
$css = implode("\r\n",$sx);
}
return $css;
}
}
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/lib/app/CAppReq.class.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
class CAppReq {
public static $msg;
public static function checkPhpVersion() {
$ver_req = "5.2";
$ver_cur = phpversion();
if ( strnatcmp( $ver_cur, $ver_req ) >= 0 ) {
# equal or newer
} else {
$lca = CEnv::locale( "app/req" );
$msg = $lca[ "err:php-version" ];
$msg = str_replace( "%ver_req%", $ver_req, $msg );
$msg = str_replace( "%ver_cur%", $ver_cur, $msg );
self::$msg = $msg;
return false;
}
return true;
}
public static function checkMbString() {
if ( !function_exists( "mb_strlen" ) ) {
$lca = CEnv::locale( "app/req" );
$msg = $lca[ "err:mb-string" ];
self::$msg = $msg;
return false;
}
return true;
}
public static function checkGD() {
if ( !function_exists( "imagecreatefromstring" ) ) {
$lca = CEnv::locale( "app/req" );
$msg = $lca[ "err:gd" ];
self::$msg = $msg;
return false;
}
return true;
}
public static function checkPermission( $ptype, $path ) {
$msg = array();
if ( strpos( $ptype, "r" ) !== false ) {
if ( !is_readable( $path ) ) {
$lca = CEnv::locale( "app/req" );
$msg[] = $lca[ "err:cannot-read" ] . " ( {$path} ).";
}
}
if ( strpos( $ptype, "w" ) !== false ) {
if ( !is_writeable( $path ) ) {
$lca = CEnv::locale( "app/req" );
$msg[] = $lca[ "err:cannot-write" ] . " ( {$path} ).";
}
}
if ( count( $msg ) > 0 ) {
$lca = CEnv::locale( "app/req" );
$msg[] = $lca[ "err:fix-permission" ];
self::$msg = implode("
",$msg);
return false;
}
return true;
}
public static function checkBrowserVersion() {
if ( preg_match('/MSIE (.*?);/', $_SERVER["HTTP_USER_AGENT"], $matches) ) {
$ver = $matches[1];
if ( $ver < 9 ) {
$lca = CEnv::locale("app/req");
self::$msg = str_replace("%ie-ver%",$ver,$lca["err:old-ie"]);
return false;
}
}
return true;
}
public static function check() {
return
self::checkPhpVersion() &&
self::checkMbString() &&
self::checkBrowserVersion();
}
public static function showErrMsgBox() {
echo "";
echo self::$msg;
echo "
";
}
}
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/lib/app/index.inc.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
function lib_autoloader_app( $class ) {
CLibAutoloader::autoloader( $class, dirname(__FILE__) );
}
spl_autoload_register("lib_autoloader_app");
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/lib/app/CTplLoader.class.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
class CTplLoader {
public static $tid;
public static $css_ctar;
public static $path_tpl;
public static $url_tpl;
public static $tpl_first_key = null;
public static function setupTid( $tid ) {
self::$tid = $tid;
self::$css_ctar = "aiin-css-{$tid}";
self::$path_tpl = CAppPath::pathTpl($tid);
self::$url_tpl = CAppPath::urlTpl($tid);
}
public static function getCssCtarSig() {
return self::$css_ctar;
}
public static function loadAllFiles( $fd ) {
$path_fd = self::$path_tpl.$fd."/";
$fx = array();
foreach (glob("{$path_fd}*") as $path_file) {
$path_parts_file = pathinfo($path_file);
$fn = $path_parts_file["basename"];
if ( substr($fn,0,1) != "_" ) {
if ( !is_dir($path_file) ) {
$txt = file_get_contents($path_file);
if ( $fn == "tpl.html" ) {
$txt = "{$txt}
";
}
$txt = str_replace("%css-ctar%",self::$css_ctar,$txt);
$txt = str_replace("%url-tpl%",self::$url_tpl,$txt);
$fx[$fn] = $txt;
}
}
}
return $fx;
}
public static function getAllTplNames( &$tpls ) {
$path_tpl = CAppPath::pathTpl();
$tpls = array();
foreach (glob("{$path_tpl}*") as $path) {
if ( is_dir($path) && ( substr($path,0,1) != "_" )) {
$path_parts = pathinfo( $path );
$tid = $path_parts["basename"];
$path_cfg = $path . "/config.inc.php";
if ( file_exists($path_cfg) ) {
self::setupTid($tid);
$cfg = array();
include($path_cfg);
$tpls[$tid] = array(
"html"=>self::loadAllFiles("html"),
"css"=>self::loadAllFiles("css"),
);
if ( !self::$tpl_first_key ) {
self::$tpl_first_key = $tid;
}
}
}
}
ksort($tpls);
}
}
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/lib/app/CValiMacro.class.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
class CValiMacro {
private static $fm;
private static $vx;
private static $lca;
public static function setup( &$data, &$lca ) {
self::$fm =& $data->fm;
self::$vx =& $data->vx;
self::$lca =& $lca;
}
public static function setup2( &$fm, &$vx, &$lca ) {
self::$fm =& $fm;
self::$vx =& $vx;
self::$lca =& $lca;
}
public static function isValidDateTime( $v ) {
$t = strtotime($v);
return !(( $t === false ) || ( strlen($v) <=1 ));
}
public static function isValidEmailAddr( $v ) {
$s = trim( $v );
if ( $s != "" ) {
$p1 = mb_strpos( $s, "@" );
$p2 = mb_strrpos( $s, "." );
if (
( $p1 <= 0 ) ||
( mb_strlen( $s )-1 <= $p2 ) ||
( $p2 - $p1 <= 1 ) ||
( mb_strpos($s ," " ) !== false )
) {
return false;
}
}
return true;
}
public static function isValidInt( $v ) {
return ( preg_match('/^[0-9]*$/', $v) == true );
}
public static function isValidFloat( $v ) {
return ( preg_match('/^[0-9]*(\.[0-9]*)?$/', $v) == true );
}
public static function isValidURL( $v ) {
return ( preg_match('/^(http:\/\/|https:\/\/).{1}/', $v) == true );
}
public static function copy( $key ) {
if ( empty(self::$fm[$key]) ) {
self::clear($key);
} else {
self::$vx[$key] = self::$fm[$key];
}
}
public static function clear( $key ) {
self::$vx[$key] = null;
}
public static function vCheckbox( $key, $b_assign = true ) {
$val = ( intval(self::$fm[$key]) == 1 ) ? 1 : 0;
if ( $b_assign ) {
self::$vx[$key] = $val;
}
return $val;
}
public static function vStr( $key, $b_required = true, $b_assign = true ) {
if ( empty(self::$fm[$key]) ) {
if ( $b_required ) {
CFRes::setES($key);
CFRes::addEA(self::$lca["err:empty:{$key}"]);
}
}
if ( $b_assign ) {
self::copy($key);
}
}
public static function vInt( $key, $b_required = true, $b_assign = true ) {
if ( trim(self::$fm[$key]) == "" ) {
if ( $b_required ) {
CFRes::setES($key);
CFRes::addEA(self::$lca["err:empty:{$key}"]);
}
} else if ( !self::isValidInt(self::$fm[$key]) ) {
CFRes::setES($key);
CFRes::addEA(self::$lca["err:invalid:{$key}"]);
}
if ( $b_assign ) {
self::$vx[$key] = intval(trim(self::$fm[$key]));
}
}
public static function vFloat( $key, $b_required = true, $b_assign = true ) {
if ( trim(self::$fm[$key]) == "" ) {
if ( $b_required ) {
CFRes::setES($key);
CFRes::addEA(self::$lca["err:empty:{$key}"]);
}
} else if ( !self::isValidFloat(self::$fm[$key]) ) {
CFRes::setES($key);
CFRes::addEA(self::$lca["err:invalid:{$key}"]);
}
if ( $b_assign ) {
self::$vx[$key] = floatval(trim(self::$fm[$key]));
}
}
public static function vDateTime( $key, $b_required = true, $b_assign = true ) {
if ( empty(self::$fm[$key]) ) {
if ( $b_required ) {
CFRes::setES($key);
CFRes::addEA(self::$lca["err:empty:{$key}"]);
}
} else if ( !self::isValidDateTime(self::$fm[$key]) ) {
CFRes::setES($key);
CFRes::addEA(self::$lca["err:invalid:{$key}"]);
}
if ( $b_assign ) {
self::copy($key);
}
}
public static function vEmail( $key, $b_required = true, $b_assign = true ) {
if ( empty(self::$fm[$key]) ) {
if ( $b_required ) {
CFRes::setES($key);
CFRes::addEA(self::$lca["err:empty:{$key}"]);
}
} else if ( !self::isValidEmailAddr(self::$fm[$key]) ) {
CFRes::setES($key);
CFRes::addEA(self::$lca["err:invalid:{$key}"]);
}
if ( $b_assign ) {
self::copy($key);
}
}
public static function vURL( $key, $b_required = true, $b_assign = true ) {
if ( empty(self::$fm[$key]) ) {
if ( $b_required ) {
CFRes::setES($key);
CFRes::addEA(self::$lca["err:empty:{$key}"]);
}
} else if ( !self::isValidURL(self::$fm[$key]) ) {
CFRes::setES($key);
CFRes::addEA(self::$lca["err:invalid:{$key}"]);
}
if ( $b_assign ) {
self::copy($key);
}
}
public static function v01( $key, $b_required = true, $b_assign = true ) {
if ( isset(self::$fm[$key]) ) {
$val = self::$fm[$key];
if (( $val === "0" ) || ( $val === 0 )) {
$val = 0;
} else if (( $val === "1" ) || ( $val === 1 )) {
$val = 1;
} else {
$val = null;
}
} else {
$val = null;
}
if ( $b_required && ( is_null($val) )) {
CFRes::setES($key);
CFRes::addEA(self::$lca["err:empty:{$key}"]);
}
if ( $b_assign ) {
self::$vx[$key] = $val;
}
}
public static function vStrConf( $key ) {
if ( empty(self::$fm["{$key}_conf"]) ) {
//-- conf
CFRes::setES("{$key}_conf");
CFRes::addEA(self::$lca["err:empty:{$key}_conf"]);
} else if ( self::$fm[$key] != self::$fm["{$key}_conf"] ) {
//-- match
CFRes::setES($key);
CFRes::setES("{$key}_conf");
CFRes::addEA(self::$lca["err:cannot-confirm:{$key}"]);
}
}
}
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/lib/app/CCompact.class.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
class CCompact {
public static function js( $txt ) {
$txt = preg_replace('/(\/\*(.*?)\*\/)/s',"",$txt);
$txt = preg_replace('/(\/\/\-\-(.*)\n)/',"",$txt);
$txt = preg_replace('/([\r\n\t]+)/',"",$txt);
return $txt;
}
public static function css( $txt ) {
return self::js($txt);
}
public static function html( $txt ) {
$txt = preg_replace('/(\<\!\-\-(.*)\-\-\>)/',"",$txt);
$txt = preg_replace('/([\r\n\t]+)/',"",$txt);
return $txt;
}
}
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/lib/app/CAppPath.class.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
class CAppPath {
public static function pathComponent( $component = null ) {
$path = CEnv::pathRoot() . CEnv::get("dir-component") . "/";
if ( !is_null( $component ) ) {
$path .= $component . "/";
}
return $path;
}
public static function urlComponent( $component = null ) {
$url = CEnv::urlRoot() . CEnv::get("dir-component") . "/";
if ( !is_null( $component ) ) {
$url .= $component . "/";
}
return $url;
}
public static function pathTpl( $tid = null ) {
$path = CEnv::pathRoot() . CEnv::get("dir-tpl") . "/";
if ( !is_null( $tid ) ) {
$path .= $tid . "/";
}
return $path;
}
public static function urlTpl( $tid = null ) {
$url = CEnv::urlRoot() . CEnv::get("dir-tpl") . "/";
if ( !is_null( $tid ) ) {
$url .= $tid . "/";
}
return $url;
}
}
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/lib/app/CUtil.class.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
class CUtil {
public static function getRandomStr($n) {
$text = "";
$possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
for( $i=0; $i<$n; $i++) {
$text .= substr($possible,rand(0,strlen($possible)-1),1);
}
return $text;
}
public static function strtotime_utc( $utc_tstr ) {
$dt = new DateTime( $utc_tstr, new DateTimeZone("UTC") );
return $dt->format("U");
}
}
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/lib/client/CAjaxTool.class.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
class CAjaxTool {
public static function printHeader() {
header("Content-Type: application/javascript");
}
public static function returnAjax( $json ) {
if ( isset($_GET["callback"]) ) {
echo $_GET["callback"] . "(" . json_encode( $json ) . ");";
} else {
echo json_encode( $json );
}
}
public static function obStart() {
ob_start();
}
public static function obEnd() {
$html = ob_get_contents();
if ( !empty($html) ) {
ob_end_clean();
}
return $html;
}
public static function getConfig( $px ) {
return CJson::encode($px);
}
public static function pathMinJs( $path, $fn ) {
return ( file_exists($path . $fn) ) ?
($path . $fn) :
($path . str_replace(".min","",$fn));
}
public static function urlMinJs( $path, $url, $fn ) {
return ( file_exists($path . $fn) ) ?
($url . $fn) :
($url . str_replace(".min","",$fn));
}
}
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/lib/client/index.inc.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
function lib_autoloader_client( $class ) {
CLibAutoloader::autoloader( $class, dirname(__FILE__) );
}
spl_autoload_register("lib_autoloader_client");
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/lib/db/CCfgDb.class.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
class CCfgDb {
public static function get( $ckey ) {
CDb::open();
$rs = CTable::findById( "cfgdb", "ckey", $ckey, array("cval") );
if ( $rs ) {
$cval = $rs["cval"];
if ( $cval ) {
return CJson::decode($cval);
}
}
return array();
}
public static function set( $ckey, $cval ) {
CDb::open();
CTable::updateById( "cfgdb", "ckey", $ckey, array(
"cval"=>CJson::encode($cval) ) );
}
}
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/lib/db/index.inc.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
function lib_autoloader_db( $class ) {
CLibAutoloader::autoloader( $class, dirname(__FILE__) );
}
spl_autoload_register("lib_autoloader_db");
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/lib/db/CDb.class.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
class CDb {
public static $conn = null;
public static $tbl_prefix = null;
public static $b_mysqli;
public static function open( $dbs = null ) {
$ret = 0;
if ( self::$conn ) { return $ret; }
if ( function_exists( 'mysqli_connect' ) ) {
self::$b_mysqli = true;
} else if ( function_exists( 'mysql_connect' ) ) {
self::$b_mysqli = false;
} else {
echo "missing database interface: " .
"no mysqli_connect/mysql_connect";
exit;
}
if ( !$dbs ) {
$dbs = CEnv::config("db");
}
if ( self::$b_mysqli ) {
self::$conn = @mysqli_connect(
$dbs[ 'db-hostname' ],
$dbs[ 'db-username' ],
$dbs[ 'db-password' ],
$dbs[ 'db-database' ]
);
if ( !self::$conn ) {
$ret = mysqli_connect_errno();
}
} else {
self::$conn = @mysql_connect(
$dbs[ 'db-hostname' ],
$dbs[ 'db-username' ],
$dbs[ 'db-password' ]
);
if ( !self::$conn ) {
$ret = -1;
} else {
@mysql_select_db( $dbs[ 'db-database' ], self::$conn );
$ret = mysql_errno( self::$conn );
}
}
self::$tbl_prefix = $dbs['db-tbl-prefix'];
if ( $ret == 0 ) {
self::query("SET NAMES utf8");
}
return $ret;
}
public static function close() {
if ( self::$b_mysqli ) {
mysqli_close( self::$conn );
} else {
mysql_close( self::$conn );
}
}
public static function tblname( $name ) {
return self::$tbl_prefix . $name;
}
public static function query( $sql ) {
if ( function_exists("_alog") ) {
_alog($sql);
}
if ( self::$b_mysqli ) {
return mysqli_query( self::$conn, $sql );
} else {
return mysql_query( $sql, self::$conn );
}
}
public static function connectError() {
if ( self::$b_mysqli ) {
return mysqli_connect_error();
} else {
return mysql_error();
}
}
public static function error() {
if ( self::$b_mysqli ) {
return mysqli_error( self::$conn );
} else {
return mysql_error( self::$conn );
}
}
public static function errno() {
if ( self::$b_mysqli ) {
return mysqli_errno( self::$conn );
} else {
return mysql_errno( self::$conn );
}
}
public static function affectedRows() {
if ( self::$b_mysqli ) {
return mysqli_affected_rows( self::$conn );
} else {
return mysql_affected_rows( self::$conn );
}
}
public static function getRowCount( $result ) {
if ( self::$b_mysqli ) {
return mysqli_num_rows( $result );
} else {
return mysql_num_rows( $result );
}
}
public static function getRowA( $result ) {
if ( self::$b_mysqli ) {
return mysqli_fetch_array( $result, MYSQLI_ASSOC );
} else {
return mysql_fetch_array( $result, MYSQL_ASSOC );
}
}
public static function getInsertID() {
if ( self::$b_mysqli ) {
return mysqli_insert_id( self::$conn );
} else {
return mysql_insert_id( self::$conn );
}
}
public static function freeResult( $result ) {
if ( self::$b_mysqli ) {
return mysqli_free_result( $result );
} else {
return mysql_free_result( $result );
}
}
public static function sani( $s ) {
if ( self::$b_mysqli ) {
return mysqli_real_escape_string( self::$conn, $s );
} else {
return mysql_real_escape_string( $s, self::$conn );
}
}
}
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/lib/db/CTable.class.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
class CTable {
public static function findByID( $tbl, $tbl_id, $tbl_id_val, $sx ) {
//-- build clauses
$clx = array();
//-- select clause
$clx[] = CSql::clSelect($sx);
//-- from
$clx[] = CSql::clFrom($tbl);
//-- where clause
$cond = array();
$cond[] = CSql::clCond($tbl_id,"=",$tbl_id_val);
if ( count($cond) > 0 ) {
$clx[] = CSql::clWhere("AND",$cond);
}
//-- run query
$result = CSql::query($clx);
if (!( $rs = CDb::getRowA( $result ) )) {
$rs = null;
}
//-- free result
CDb::freeResult( $result );
//-- return
return $rs;
}
public static function selectByID( $tbl, $tbl_id, $tbl_id_val, $sx, $orderby = null ) {
//-- build clauses
$clx = array();
//-- select clause
$clx[] = CSql::clSelect($sx);
//-- from
$clx[] = CSql::clFrom($tbl);
//-- where clause
$cond = array();
$cond[] = CSql::clCond($tbl_id,"=",$tbl_id_val);
if ( count($cond) > 0 ) {
$clx[] = CSql::clWhere("AND",$cond);
}
//-- order by
if ( $orderby ) {
$clx[] = $orderby;
}
//-- run query
$rsx = array();
$result = CSql::query($clx);
while ( $rs = CDb::getRowA( $result ) ) {
$rsx[] = $rs;
}
//-- free result
CDb::freeResult( $result );
//-- return
return $rsx;
}
public static function selectRec( $tbl, $sx, $cond = null, $orderby = null ) {
//-- build clauses
$clx = array();
//-- select clause
$clx[] = CSql::clSelect($sx);
//-- from
$clx[] = CSql::clFrom($tbl);
//-- where clause
if ( !empty($cond) ) {
$clx[] = CSql::clWhere("AND",$cond);
}
//-- order by
if ( $orderby ) {
$clx[] = $orderby;
}
//-- run query
$rsx = array();
$result = CSql::query($clx);
while ( $rs = CDb::getRowA( $result ) ) {
$rsx[] = $rs;
}
//-- free result
CDb::freeResult( $result );
//-- return
return $rsx;
}
public static function insertRec( $tbl, $vx ) {
$clx = array();
//-- insert clause
$clx[] = CSql::clInsert($tbl, $vx);
//-- run query
CSql::query($clx);
return CDb::getInsertID();
}
public static function updateByID( $tbl, $tbl_id, $tbl_id_val, $vx ) {
//-- build clauses
$clx = array();
//-- update clause
$clx[] = CSql::clUpdate($tbl,$vx);
//-- where clause
$cond = array();
$cond[] = CSql::clCond($tbl_id,"=",$tbl_id_val);
if ( count($cond) > 0 ) {
$clx[] = CSql::clWhere("AND",$cond);
}
//-- run query
CSql::query($clx);
}
public static function deleteByID( $tbl, $tbl_id, $tbl_id_val ) {
$clx = array();
$clx[] = CSql::clDelete($tbl);
$cond = array();
$cond[] = CSql::clCond($tbl_id,"=",$tbl_id_val);
$clx[] = CSql::clWhere("AND",$cond);
CSql::query($clx);
}
}
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/lib/db/CSql.class.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
class CSql {
public static function query( $sql ) {
if ( is_array($sql) ) {
$sql = implode(" ",$sql);
}
return CDb::query($sql);
}
public static function getTotalRec( $sql ) {
if ( is_array($sql) ) {
$sql = implode(" ",$sql);
}
$sql = "SELECT COUNT(*) AS _TOTAL_FIELD_ FROM ({$sql}) AS _TABLE_";
$result = CDb::query($sql);
$rs = CDb::getRowA( $result );
$total = $rs["_TOTAL_FIELD_"];
CDb::freeResult($result);
return $total;
}
public static function rpTable( $sql, $tblx ) {
foreach( $tblx as $tbl ) {
$sql = str_replace("%{$tbl}%","`".CDb::tblname($tbl)."`",$sql);
}
return $sql;
}
public static function qtField( $f ) {
$str = "";
$fx = explode(".",$f);
if ( count($fx) > 1 ) {
$str .= "`". CDb::tblname($fx[0]) . "`.";
$fn = $fx[1];
} else {
$fn = $fx[0];
}
if ( $fn == "*" ) {
$str .= $fn;
} else {
$str .= "`". $fn . "`";
}
return $str;
}
public static function expOrderBy( $obx ) {
$rx = array();
foreach( $obx as $f => $dir ) {
$rx[] = self::qtField($f) . " " . strtoupper($dir);
}
return implode(", ", $rx);
}
public static function clSelect( $sx ) {
if ( !empty( $sx ) ) {
$fx = array();
foreach( $sx as $key => $field ) {
if ( is_int( $key ) ) {
$fx[] = self::qtField( $field );
} else {
$fx[] = $key . " AS `" . $field . "`";
}
}
$ret = implode( ", ", $fx );
} else {
$ret = '*';
}
return "SELECT " . $ret;
}
public static function clFrom( $tbl, $alias=null ) {
if ( strpos( $tbl, " " ) !== false ) {
return "FROM " . $tbl;
} else {
return "FROM " . "`" . CDb::tblname($tbl) . "`"
. ($alias ? " AS {$alias}" : "");
}
}
public static function clLeftJoin( $tbl1, $key1, $tbl2, $key2 ) {
$tbl1 = CDb::tblname($tbl1);
$tbl2 = CDb::tblname($tbl2);
return "LEFT JOIN `{$tbl1}` " .
"ON `{$tbl1}`.`{$key1}` = `{$tbl2}`.`{$key2}`";
}
public static function clSubQuery( $field, $tbl1, $key1, $tbl2, $key2 ) {
$tbl1 = CDb::tblname($tbl1);
$tbl2 = CDb::tblname($tbl2);
$f = ( strpos( $field, "(" ) !== false ) ? $field : "`{$field}`";
return "(SELECT {$f} FROM `$tbl1` " .
"WHERE `{$tbl1}`.`{$key1}` = `{$tbl2}`.`{$key1}`)";
}
public static function clCond( $f, $op, $v ) {
$field = self::qtField( $f );
if ( $op == 'L%%' ) {
return "({$field} LIKE '%" . CDb::sani($v) . "%')";
} else if ( $op == 'in' ) {
$rx = array();
foreach( $v as $vi ) {
$rx[] = "'" . CDb::sani($vi) . "'";
}
return "({$field} IN (" . implode(",",$rx) . "))";
} else {
return "({$field} {$op} " .
( is_null($v) ? 'NULL' : "'" . CDb::sani($v) . "'" )
. ")";
}
}
public static function clCondOp( $op, $cond ) {
$len = count($cond);
if ( $len == 0 ) {
return "0";
} else if ( $len == 1 ) {
return $cond[0];
} else {
return "(" . implode(" {$op} ", $cond ) . ")";
}
}
public static function clWhere( $op, $cond ) {
$cond = self::clCondOp( $op, $cond );
if ( !empty($cond) ) {
return "WHERE " . $cond;
} else {
return "";
}
}
public static function clInsert( $tbl, $dx ) {
$fx = array();
$vx = array();
foreach( $dx as $key => $val ) {
$fx[] = "`" . $key . "`";
$vx[] = is_null($val) ? 'NULL' :
"'" . CDb::sani($val) . "'";
}
return "INSERT INTO `" . CDb::tblname($tbl) . "` " .
"(" . implode( ", ", $fx ) . ") VALUES " .
"(" . implode( ", ", $vx ) . ")";
}
public static function clUpdate( $tbl, $dx ) {
$sx = array();
foreach( $dx as $key => $val ) {
if ( is_int( $key ) ) {
$sx[] = $val;
} else {
$sx[] = "`" . $key . "`" . " = " .
( is_null($val) ? 'NULL' :
"'" . CDb::sani( $val ) . "'" );
}
}
return "UPDATE `" . CDb::tblname($tbl) . "` " .
"SET " . implode( ", ", $sx );
}
public static function clDelete( $tbl ) {
return "DELETE FROM " . "`" . CDb::tblname($tbl) . "`";
}
}
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/lib/admin/index.inc.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
function lib_autoloader_admin( $class ) {
CLibAutoloader::autoloader( $class, dirname(__FILE__) );
}
spl_autoload_register("lib_autoloader_admin");
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/locale/en/inppvbtn/locale.dlgpvbtn.inc.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
$lca["title:tpl"] = "Select Template";
$lca["alt:close"] = "Close";
$lca["label:ok"] = "OK";
$lca["label:cancel"] = "Cancel";
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/locale/en/util/locale.msgbox.inc.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
$lca["alt:close"] = "Close";
$lca["label:ok"] = "OK";
$lca["label:cancel"] = "Cancel";
$lca["label:yes"] = "Yes";
$lca["label:no"] = "No";
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/locale/en/app/locale.req.inc.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
$lca["err:fix-permission"] =
"Please correct folder permissions and reload this page.";
$lca["err:cannot-read"] = "Read access Denied: Doesn't have read permission";
$lca["err:cannot-write"] = "Write access Denied: Doesn't have write permission";
$lca["err:php-version"] =
"This script requires PHP v%ver_req% or later.\r\n" .
"Unfortunately, your PHP version is %ver_cur%.\r\n" .
"Please upgrade your PHP and try again!";
$lca["err:mb-string"] =
"This script requires Multibyte Support (mbstring) extension.\r\n" .
"Unfortunately, it's not installed in your PHP.\r\n" .
"Please install it and try again!";
$lca["err:gd"] =
"This script requires GD extension.\r\n" .
"Unfortunately, it's not installed in your PHP.\r\n" .
"Please install it and try again!";
//-- browser
$lca["err:old-ie"] =
"Your browser (IE v%ie-ver%) is not supported. Please use IE v9.0 or later.";
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/locale/en/app/locale.css.inc.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
$lca["global-css"] =<<<_EOM_
.ajax-iine .aiin-css,
.ajax-iine .aiin-css input,
.ajax-iine .aiin-css select,
.ajax-iine .aiin-css textarea,
.ajax-iine .aiin-css button {
font-family:"Helvetica Neue",Helvetica,Georgia,Verdana,Arial,sans-serif;
}
_EOM_;
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/locale/en/app/locale.info.inc.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
$lca["app:name"] = "AjaxLikeButton";
$lca["app:version"] = "v2.23";
$lca["app:name-version"] = $lca[ "app:name" ] . " " . $lca[ "app:version" ];
$lca["app:home:name"] = "www.phpkobo.com";
$lca["app:home:url"] = "http://www.phpkobo.com/ajax-like-button";
$lca["site:name"] = "phpkobo";
$lca["site:url"] = "http://www.phpkobo.com/";
$lca["app:pid"] = "LKBNX-223";
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/locale/en/inpcopy2clip/locale.inp.inc.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
$lca["text:success"] = "Copied!";
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/locale/en/inpcopy2clip/locale.dlg.inc.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
$lca["title:dialog"] = "Copy to Clipboard";
$lca["alt:close"] = "Close";
$lca["label:close"] = "Close";
$lca["text:how-to-copy"] = "Press CTRL+C/CMD-C to copy the code below";
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/locale/en/install/locale.page.dbsetup.inc.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
$lca["page:title"] = "Database Settings";
$lca["text:inst"] = "Please fill out the form below and then click Next.";
$lca["label:back"] = "Back";
$lca["label:next"] = "Next";
$lca["label:db-hostname"] = "Host Name";
$lca["plh:db-hostname"] = "Enter the hostname where your database resides";
$lca["label:db-database"] = "Database Name";
$lca["plh:db-database"] = "Enter the name of your database";
$lca["label:db-username"] = "Username";
$lca["plh:db-username"] = "Enter the username to access your database";
$lca["label:db-password"] = "Password";
$lca["plh:db-password"] = "Enter the password to access your database";
$lca["label:advanced-options"] = "» Advanced Options";
$lca["label:db-tbl-prefix"] = "Table Prefix";
$lca["plh:db-tbl-prefix"] = "Enter a table prefix (e.g.) 'tbl_'";
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/locale/en/install/locale.page.permcheck.inc.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
$lca["page:title"] = "Setting up File Permissions";
$lca["text:inst"] = "Checking file/folder permissions...";
$lca["label:back"] = "Back";
$lca["label:next"] = "Next";
$lca["text:readable"] = "Readable";
$lca["text:not-readable"] = "Not Readable";
$lca["text:writable"] = "Writable";
$lca["text:not-writable"] = "Not Writable";
$lca["label:file"] = "FILE";
$lca["label:folder"] = "FOLDER";
$lca["text:success"] = "Success!";
$lca["text:success-inst"] = "Click Next to proceed";
$lca["text:error"] = "Error%s%";
$lca["text:error-inst"] = "Please ensure that you have the appropriate permissions on " .
"the above files/folders, and then click Retest below:";
$lca["label:reload"] = "Retest file/folder permissions";
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/locale/en/install/locale.install.inc.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
$lca["installation"] = "Installation";
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/locale/en/install/locale.validate.inc.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
$lca["err:invalid:email"] = "Email Address : Invalid Format";
$lca["err:empty:db-hostname"] = "Hostname is required";
$lca["err:empty:db-database"] = "Database Name is required";
$lca["err:empty:db-username"] = "Username is required";
$lca["err:empty:db-password"] = "Password is required";
$lca["err:empty:db-tbl-prefix"] = "Table Prefix is required";
$lca["err:cannot-connect-to-db"] = "Can not connect to database server [%hostname%]";
$lca["err:table-already-exists"] = "Table already exists";
$lca["err:can-not-write-config-db-file"] =<<<_EOM_
Could not read and/or write config/config.db.inc.php
Please give READ & WRITE permissions to config/config.db.inc.php
and try again.
_EOM_;
$lca["err:invalid-config-db-file"] =
"Malformed configuration file : config/config.db.inc.php
" .
"The file could be corrupted.";
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/locale/en/install/locale.page.start.inc.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
$lca["click-start"] = "Click Start to start the " .
"%app-name% installation.";
$lca["btn-start"] = "Start";
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/locale/en/install/locale.page.done.inc.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
$lca["inst-success"] = "The installation has been done successfully!";
$lca["important-title"] = "IMPORTANT!";
$lca["important-message"] = "Please remove install folder " .
"from your web site to avoid a security risk!";
$lca["log-in-to-admin"] = "After removing the install folder, click " .
"" .
"HERE to move to the %app-name% Code Generator page where ".
"you can easily generate code for %app-name%.";
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/locale/en/codegen/locale.reminder.inc.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
$lca["text:enter-key-here"] = "REMINDER:Write-Key-Here";
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/locale/en/codegen/locale.code.inc.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
$lca["label:goback"] = "Back";
$lca["msg:success"] = "The code has been generated!";
$lca["text:intro"] = "Follow the steps below to put your like button on a webpage.";
$lca["title:put-script"] = "Put <script>";
$lca["text:put-script"] = "Copy the following line and ".
"put it on your webpage.";
$lca["text:put-script-suggestion"] = "It works wherever you put it on the webpage but script tags are ".
"normally put between <head> and </head> like shown below.";
$lca["text:put-script-note"] = "Put this <script> only once per page. ".
"Even if you plan to put more than one like buttons on the page, you only need to put ".
"<script> once.";
$lca["label:copy-to-clip"] = " ".
"Copy to clipboard";
$lca["title:put-div"] = "Put <div>";
$lca["text:put-div"] = "Copy the following line and ".
"put it in your webpage where you want the like button to appear. ";
$lca["text:put-div-loc"] = "The like button will be shown inside the div tag. ".
"( Note: you can use span or td instead of div ".
"if it's convenient for you. )";
$lca["text:put-div-done"] = "The installation of the like button is now completed.";
$lca["title:appendix"] = "Reference";
$lca["text:appendix"] = "The HTML code shown below is a minimalist example of how to display the like button on a webpage.";
$lca["label:run-demo"] = "Open it in a new tab";
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/locale/en/codegen/locale.validate.inc.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
$lca["err:empty:pid"] = "Please enter Key";
$lca["err:empty:tid"] = "Please select Template";
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/locale/en/codegen/locale.form.inc.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
$lca["text:subtitle"] = "Code Generator";
$lca["text:intro"] = "Please follow the steps below to generate code ".
"for a like button.";
$lca["title:enter-key"] = "Specify Key";
$lca["text:enter-key"] = "Enter a key for your like button. " .
"Key is like the name of the like button.";
$lca["label:key"] = "Key";
$lca["ph:key"] = "(e.g.) abcdef123456";
$lca["label:random-key"] = "Generate a key randomly";
$lca["text:enter-key:inst1"] =
"Key will be associated with the vote count of the like button in the database, so " .
"the buttons with the same key will display the same vote count.";
$lca["text:remainder"] =
"If you want to specify Key when putting the button on a webpage, " .
"click the button below to enter a reminder.";
$lca["label:remainder"] = "Put a reminder";
$lca["title:select-tpl"] = "Select Template";
$lca["text:select-tpl"] = "Click Select Template to select " .
"a template for your like button.";
$lca["label:select-tpl"] = "Select Template";
$lca["title:generate-code"] = "Generate code";
$lca["text:generate-code"] = "Click Generate code to generate ".
"code for your like button.";
$lca["label:generate-code"] = "Generate code";
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/locale/en/codegen/locale.menu.inc.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
$lca["label:home"] = "Home";
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/locale/jp/inppvbtn/locale.dlgpvbtn.inc.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
$lca["title:tpl"] = "テンプレートの選択";
$lca["alt:close"] = "閉じる";
$lca["label:ok"] = "OK";
$lca["label:cancel"] = "キャンセル";
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/locale/jp/util/locale.msgbox.inc.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
$lca["alt:close"] = "閉じる";
$lca["label:ok"] = "OK";
$lca["label:cancel"] = "キャンセル";
$lca["label:yes"] = "はい";
$lca["label:no"] = "いいえ";
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/locale/jp/app/locale.req.inc.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
$lca["err:fix-permission"] = "上記のパスのアクセス・パーミッションを修正して、" .
"このページを再読み込みしてください";
$lca["err:cannot-read"] = "アクセスが拒否されました: 読み込み許可がありません";
$lca["err:cannot-write"] = "アクセスが拒否されました: 書き込み許可がありません";
$lca["err:php-version"] =
"このプログラムは PHP %ver_req% か新しいバージョンが必要です。\r\n" .
"お使いのPHPのバージョンは %ver_cur% です。\r\n" .
"PHPをアップグレードしてご使用ください。";
$lca["err:mb-string"] =
"このプログラムは マルチバイト (mbstring) エクステンションが必要です。\r\n" .
"お使いのPHPにはインストールされていません。\r\n" .
"マルチバイト (mbstring) エクステンションをインストールしてご使用ください。";
$lca["err:gd"] =
"このプログラムは GD (gd2) エクステンションが必要です。\r\n" .
"お使いのPHPにはインストールされていません。\r\n" .
" GD (gd2) エクステンションをインストールしてご使用ください。";
//-- browser
$lca["err:old-ie"] =
"このブラウザ(IE v%ie-ver%)はサポートされていません。最新のブラウザにアップデートしてください。";
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/locale/jp/app/locale.css.inc.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
$lca["global-css"] =<<<_EOM_
.ajax-iine .aiin-css,
.ajax-iine .aiin-css input,
.ajax-iine .aiin-css select,
.ajax-iine .aiin-css textarea,
.ajax-iine .aiin-css button {
font-family:"Hiragino Kaku Gothic ProN",Meiryo,"MS PGothic","Lucida Grande","sans-serif";
}
_EOM_;
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/locale/jp/app/locale.info.inc.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
$lca["app:name"] = "Ajaxいいねボタン";
$lca["app:version"] = "v2.23";
$lca["app:name-version"] = $lca[ "app:name" ] . " " . $lca[ "app:version" ];
$lca["app:home:name"] = "jpn.phpkobo.com";
$lca["app:home:url"] = "http://jpn.phpkobo.com/ajax-iine-button";
$lca["site:name"] = "phpkobo";
$lca["site:url"] = "http://jpn.phpkobo.com/";
$lca["app:pid"] = "LKBNX-223J";
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/locale/jp/inpcopy2clip/locale.inp.inc.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
$lca["text:success"] = "コピー完了";
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/locale/jp/inpcopy2clip/locale.dlg.inc.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
$lca["title:dialog"] = "クリップボードにコピー";
$lca["alt:close"] = "閉じる";
$lca["label:close"] = "閉じる";
$lca["text:how-to-copy"] = "CTRL+C/CMD-Cでコピーしてください";
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/locale/jp/install/locale.page.dbsetup.inc.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
$lca["page:title"] = "データベースの設定";
$lca["text:inst"] = "下のフォームを記入して次へをクリックしてください。";
$lca["label:back"] = "戻る";
$lca["label:next"] = "次へ";
$lca["label:db-hostname"] = "ホスト名";
$lca["plh:db-hostname"] = "データベースのホスト名を入力する";
$lca["label:db-database"] = "データベース名";
$lca["plh:db-database"] = "データベースの名前を入力する";
$lca["label:db-username"] = "ユーザー名";
$lca["plh:db-username"] = "データベースにアクセスするためのユーザー名を入力する";
$lca["label:db-password"] = "パスワード";
$lca["plh:db-password"] = "データベースにアクセスするためのパスワードを入力する";
$lca["label:advanced-options"] = "» 高度なオプション";
$lca["label:db-tbl-prefix"] = "テーブルの接頭辞";
$lca["plh:db-tbl-prefix"] = "テーブルの接頭辞を入力する";
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/locale/jp/install/locale.page.permcheck.inc.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
$lca["page:title"] = "ファイル・パーミッションの検査";
$lca["text:inst"] = "ファイル/フォルダのパーミッションを検査中...";
$lca["label:back"] = "前へ";
$lca["label:next"] = "次へ";
$lca["text:readable"] = "読み込み許可あり";
$lca["text:not-readable"] = "読み込み許可無し";
$lca["text:writable"] = "書き込み許可あり";
$lca["text:not-writable"] = "書き込み許可無し";
$lca["label:file"] = "ファイル";
$lca["label:folder"] = "フォルダ";
$lca["text:success"] = "成功!";
$lca["text:success-inst"] = "次へをクリックしてください";
$lca["text:error"] = "エラー";
$lca["text:error-inst"] = "上記のファイル/フォルダに適切なパーミッションを与えた後、" .
"下の再検査ボタンをクリックしてください。";
$lca["label:reload"] = "ファイル/フォルダのパーミッションを再検査";
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/locale/jp/install/locale.install.inc.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
$lca["installation"] = "インストレーション";
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/locale/jp/install/locale.validate.inc.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
$lca["err:invalid:email"] = "Eメール・アドレスの書式が正しくありません";
$lca["err:empty:db-hostname"] = "ホスト名を入力してください";
$lca["err:empty:db-database"] = "データベース名を入力してください";
$lca["err:empty:db-username"] = "ユーザー名を入力してください";
$lca["err:empty:db-password"] = "パスワードを入力してください";
$lca["err:empty:db-tbl-prefix"] = "テーブルの接頭辞を入力してください";
$lca["err:cannot-connect-to-db"] = "データベース・サーバーに接続できません [%hostname%]";
$lca["err:table-already-exists"] = "データベース内にテーブルが既に存在します";
$lca["err:can-not-write-config-db-file"] =<<<_EOM_
config/config.db.inc.phpに読み込み・書き込みができませんでした。
config/config.db.inc.phpに読み込み・書き込みの許可を与えた後、もう一度、「次へ」のボタンをクリックしてください。
_EOM_;
$lca["err:invalid-config-db-file"] =
"設定ファイルの書式が不正です : config/config.db.inc.php
" .
"ファイルが破損している可能性があります。";
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/locale/jp/install/locale.page.start.inc.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
$lca["click-start"] = "下のスタートボタンをクリックして、" .
"%app-name%のインストレーションを開始してください。";
$lca["btn-start"] = "スタート";
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/locale/jp/install/locale.page.done.inc.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
$lca["inst-success"] = "インストレーションが完了いたしました";
$lca["important-title"] = "重要";
$lca["important-message"] = "「install」フォルダを残しておくと、" .
"セキュリティ・ホールになるので、
Webサイトから削除しておいてください。";
$lca["log-in-to-admin"] = "「install」フォルダを削除後、" .
"" .
"貼付け用コード生成ページへ移動してください。";
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/locale/jp/codegen/locale.reminder.inc.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
$lca["text:enter-key-here"] = "備忘録:Keyをここに書き込む";
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/locale/jp/codegen/locale.code.inc.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
$lca["label:goback"] = "戻る";
$lca["msg:success"] = "貼り付け用コードが生成されました!";
$lca["text:intro"] = "以下の手順に従って、いいねボタンをウエブページに貼り付けてください。";
$lca["title:put-script"] = "<script>タグを貼り付ける";
$lca["text:put-script"] = "以下の一行をコピーして、".
"ホストページ(貼り付け先のページ)に追加してください。";
$lca["text:put-script-suggestion"] = "ページのどこに置いても動作するのですが、".
"下のように<head>タグの間にいれると、".
"ロード時の体感スピードが向上します。";
$lca["text:put-script-note"] = "※ この<script>タグの貼り付けは、".
"一ページあたり一回のみ行います。".
"たとえ複数のいいねボタンを一ページに貼り付ける場合でも、".
"<script>タグはひとつしか必要ありません。";
$lca["label:copy-to-clip"] = " ".
"クリップボードにコピー";
$lca["title:put-div"] = "<div>タグを貼り付ける";
$lca["text:put-div"] = "以下の一行をコピーして、".
"ホストページの中で、いいねボタンを表示したい所に挿入してください。";
$lca["text:put-div-loc"] = "いいねボタンは、このdivタグの間に表示されます。".
"( divをspanやtdに変更しても動作します。都合のよいタグをご使用ください。)";
$lca["text:put-div-done"] = "これでいいねボタンの貼り付けが完了いたしました。";
$lca["title:appendix"] = "参考";
$lca["text:appendix"] = "以下に、このいいねボタンを表示するもっともコンパクトなウェブページのソースコードを示します。";
$lca["label:run-demo"] = "上記のHTMLを別タブで表示してみる";
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/locale/jp/codegen/locale.validate.inc.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
$lca["err:empty:pid"] = "Keyが入力されていません";
$lca["err:empty:tid"] = "テンプレートが選択されていません";
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/locale/jp/codegen/locale.form.inc.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
$lca["text:subtitle"] = "貼り付け用コード生成ページ";
$lca["text:intro"] = "このページは、いいねボタンの貼り付け用コードを生成します。".
"以下の手順に従って、いいねボタンのコードを生成してください。";
$lca["title:enter-key"] = "いいねボタンのKeyを指定する";
$lca["text:enter-key"] = "いいねボタンのKeyを入力してください。" .
"Keyはいいねボタンの名前のようなものです。" .
"ユニークな文字列ならば、なんでもかまいません。";
$lca["label:key"] = "Key";
$lca["ph:key"] = "(例) abcdef123456";
$lca["label:random-key"] = "ランダムにKeyを生成する";
$lca["text:enter-key:inst1"] =
"Keyは、いいねボタンの投票数と関連付けて、データベースに記録されます。" .
"従って、同じKeyを持ついいねボタンは同じ投票数を表示します。";
$lca["text:remainder"] =
"今ではなく、ウエブページに貼り付ける時に、Keyを指定してもかまいません。" .
"その場合は下のボタンをクリックして備忘録を入力しておいてください。";
$lca["label:remainder"] = "備忘録を入力しておく";
$lca["title:select-tpl"] = "テンプレートを選択する";
$lca["text:select-tpl"] = "テンプレートの選択をクリックして、" .
"いいねボタンのテンプレートを選択してください。";
$lca["label:select-tpl"] = "テンプレートの選択";
$lca["title:generate-code"] = "貼り付け用コードを生成する";
$lca["text:generate-code"] = "下の貼り付け用コードの生成をクリックして、".
"いいねボタンのコードを生成してください。";
$lca["label:generate-code"] = "貼り付け用コードの生成";
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/locale/jp/codegen/locale.menu.inc.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
$lca["label:home"] = "ホーム";
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/components/ddriver/spec/main.inc.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
$cfg["client"] = array(
"cmpname"=>"ddriver",
"version"=>1.0,
);
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/components/ddriver/pcf/CIpSig.class.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
class CIpSig {
public function getVal() {
return "192.168.131.12";
$ip = isset($_SERVER["REMOTE_ADDR"]) ? $_SERVER["REMOTE_ADDR"] : "";
if ( filter_var($ip, FILTER_VALIDATE_IP) === false ) {
$ip = null;
}
return $ip;
}
}
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/components/ddriver/pcf/CTblPoll.class.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
class CTblPoll extends CTblBase {
const TBL_NAME = "poll";
const ID_NAME = "poll_id";
public function __construct( $prt ) {
parent::__construct( $prt );
}
public function makePidMap( $data ) {
$pidx = $data->pidx;
$pmap = array();
//-- build clauses
$clx = array();
//-- select clause
$clx[] = CSql::clSelect(array(
self::ID_NAME,
"pid",
));
//-- from
$clx[] = CSql::clFrom(self::TBL_NAME);
//-- cond
$cond = array();
$cond2 = array();
foreach( $pidx as $pid ) {
$cond2[] = CSql::clCond( "pid", "=", $pid );
}
$cond[] = CSql::clCondOp( "OR", $cond2 );
//-- where clause
if ( !empty($cond) ) {
$clx[] = CSql::clWhere("AND",$cond);
}
//-- run query
$result = CSql::query($clx);
while ( $rs = CDb::getRowA( $result ) ) {
$pmap[$rs[self::ID_NAME]] = $rs["pid"];
}
//-- free result
CDb::freeResult($result);
$data->pmap = $pmap;
}
public function getPollInfo( $data ) {
$this->findPollID($data);
if ( !$data->poll_id ) {
$data->poll_id = $this->makeRecord($data->requ["pid"]);
}
}
private function findPollID( $data ) {
$data->poll_id = 0;
//-- build clauses
$clx = array();
//-- select clause
$clx[] = CSql::clSelect(array(
self::ID_NAME,
));
//-- from
$clx[] = CSql::clFrom(self::TBL_NAME);
//-- cond
$cond = array();
$cond[] = CSql::clCond( "pid", "=", $data->requ["pid"] );
//-- where clause
if ( !empty($cond) ) {
$clx[] = CSql::clWhere("AND",$cond);
}
//-- limite clause
$clx[] = "LIMIT 1";
//-- run query
$result = CSql::query($clx);
if ( $rs = CDb::getRowA( $result ) ) {
$data->poll_id = $rs[self::ID_NAME];
}
//-- free result
CDb::freeResult( $result );
}
private function makeRecord( $pid ) {
$vx = array();
$vx["dt_create"] = $this->prt->getDateTimeStr();
$vx["pid"] = $pid;
return CTable::insertRec( self::TBL_NAME, $vx );
}
}
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/components/ddriver/pcf/index.inc.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
function autoloader_pcf_ddrive( $class ) {
CIncAutoloader::autoloader( $class, dirname(__FILE__) );
}
spl_autoload_register("autoloader_pcf_ddrive");
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/components/ddriver/pcf/CCkSig.class.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
class CCkSig {
protected function createRandomString( $n ) {
$s = "";
for ( $i = 0; $i < $n; $i++ ) {
if ( rand( 1, 2 ) == 1 ) {
$s .= chr(rand(97, 122));
} else {
$s .= chr(rand(65, 90));
}
}
return $s;
}
protected function createVal() {
return $this->createRandomString(20);
}
protected function getCookieKey() {
$cfg = CEnv::config("poll/sig");
return $cfg["voter-cookie-key"];
}
protected function getMaxCookieExpTime() {
if ( PHP_INT_SIZE == 4 ) {// 32 bits PHP
//-- 2147483647 = 2^31-1 = 2038-01-18 19:14:07
return 2147483647;
} else {// 64 bits PHP
//-- 10 years
return time() + (10 * 365 * 24 * 60 * 60);
}
}
protected function getCookieUrl() {
return dirname(dirname($_SERVER["SCRIPT_NAME"]));
}
public function setVal( $val ) {
$key = $this->getCookieKey();
$t = $this->getMaxCookieExpTime();
$url = $this->getCookieUrl();
setcookie( $key, $val, $t, $url );
$_COOKIE[$key] = $val;
}
public function getVal( $b_create = false ) {
$key = $this->getCookieKey();
if ( isset($_COOKIE[$key]) ) {
return $_COOKIE[$key];
} else if ( $b_create ) {
$val = $this->createVal();
$this->setVal( $val );
return $val;
} else {
return null;
}
}
}
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/components/ddriver/pcf/CTblBase.class.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
class CTblBase {
public function __construct( $prt ) {
$this->prt = $prt;
}
}
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/components/ddriver/pcf/CDDriver.class.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
class CDDriver {
public function __construct() {
$this->tbl_btn = new CTblBtn($this);
$this->tbl_poll = new CTblPoll($this);
$this->tbl_voter = new CTblVoter($this);
$this->tbl_hist = new CTblHist($this);
CEnv::useLib("db");
$this->open_status = CDb::open();
}
public function load( $data ) {
$this->tbl_poll->makePidMap($data);
$this->tbl_btn->loadVcntsx($data);
$this->tbl_voter->getVoterInfo($data);
$this->tbl_hist->loadSelsx($data);
}
public function hist( $data ) {
$this->tbl_poll->getPollInfo($data);
$this->tbl_voter->getVoterInfo($data);
$this->tbl_hist->getBtnType($data);
}
public function update( $data ) {
$this->tbl_voter->update($data);
$this->tbl_btn->update($data);
$this->tbl_hist->update($data);
$this->tbl_btn->loadVcnts($data);
$this->tbl_hist->loadSels($data);
}
public function expire( $data ) {
$this->tbl_hist->expire($data);
}
public function edit( $data ) {
$this->tbl_poll->getPollInfo($data);
$this->tbl_btn->edit($data);
}
public function getDateTime( $t = false ) {
if ( $t === false ) {
return gmdate("U");
} else {
return gmdate("U",$t);
}
}
public function getDateTimeStr( $t = false ) {
if ( $t === false ) {
return gmdate("Y-m-d H:i:s");
} else {
return gmdate("Y-m-d H:i:s",$t);
}
}
}
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/components/ddriver/pcf/CTblBtn.class.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
class CTblBtn extends CTblBase {
const TBL_NAME = "btn";
const ID_NAME = "btn_id";
public function __construct( $prt ) {
parent::__construct( $prt );
$this->b_read_all = true;
}
public function loadVcntsx( $data ) {
$rx = array();
$pmap = $data->pmap;
if ( count($pmap) ) {
//-- build clauses
$clx = array();
//-- select clause
$clx[] = CSql::clSelect(array(
"poll_id",
"bid",
"vcnt",
));
//-- from
$clx[] = CSql::clFrom(self::TBL_NAME);
//-- cond
$cond = array();
$cond2 = array();
foreach( $pmap as $poll_id=>$pid ) {
$cond2[] = CSql::clCond( "poll_id", "=", $poll_id );
}
$cond[] = CSql::clCondOp( "OR", $cond2 );
//-- where clause
if ( !empty($cond) ) {
$clx[] = CSql::clWhere("AND",$cond);
}
//-- run query
$result = CSql::query($clx);
while ( $rs = CDb::getRowA( $result ) ) {
$pid = $pmap[$rs["poll_id"]];
if ( !isset($rx[$pid]) ) {
$rx[$pid] = array();
}
$rx[$pid][$rs["bid"]] = intval($rs["vcnt"]);
}
//-- free result
CDb::freeResult($result);
}
//-- assing
$data->resp["vcntsx"] = $rx;
}
public function update( $data ) {
foreach( $data->update_btn as $update ) {
$this->updateOne($data,$update);
}
}
private function updateOne( $data, $update ) {
//-- build clauses
$clx = array();
//-- select clause
$clx[] = CSql::clSelect(array(
self::ID_NAME,
));
//-- from
$clx[] = CSql::clFrom(self::TBL_NAME);
//-- cond
$cond = array();
$cond[] = CSql::clCond( "poll_id", "=", $data->poll_id );
$cond[] = CSql::clCond( "bid", "=", $update["bid"] );
//-- where clause
if ( !empty($cond) ) {
$clx[] = CSql::clWhere("AND",$cond);
}
//-- limite clause
$clx[] = "LIMIT 1";
//-- run query
$btn_id = 0;
$result = CSql::query($clx);
if ( $rs = CDb::getRowA( $result ) ) {
$btn_id = $rs[self::ID_NAME];
}
//-- free result
CDb::freeResult( $result );
$vx = array();
if ( $btn_id ) {
$vx[] = "vcnt=GREATEST(0,vcnt+(".$update["change"]."))";
CTable::updateByID( self::TBL_NAME, self::ID_NAME, $btn_id, $vx );
} else {
$vx["poll_id"] = $data->poll_id;
$vx["bid"] = $update["bid"];
$vx["vcnt"] = max(0,$update["change"]);
CTable::insertRec( self::TBL_NAME, $vx );
}
}
public function loadVcnts( $data ) {
$vcnts = array();
//-- build clauses
$clx = array();
//-- select clause
$clx[] = CSql::clSelect(array(
self::ID_NAME,
"bid",
"vcnt",
));
//-- from
$clx[] = CSql::clFrom(self::TBL_NAME);
//-- cond
$cond = array();
$cond[] = CSql::clCond( "poll_id", "=", $data->poll_id );
$cond2 = array();
foreach( $data->update_vcnt as $bid=>$sel ) {
$cond2[] = CSql::clCond( "bid", "=", $bid );
}
$cond[] = CSql::clCondOp( "OR", $cond2 );
//-- where clause
if ( !empty($cond) ) {
$clx[] = CSql::clWhere("AND",$cond);
}
//-- run query
$result = CSql::query($clx);
while ( $rs = CDb::getRowA( $result ) ) {
$vcnts[$rs["bid"]] = intval($rs["vcnt"]);
}
//-- free result
CDb::freeResult( $result );
//-- set resp
$data->resp["vcnts"] = $vcnts;
}
private function findRec( $data, &$vcnt ) {
//-- build clauses
$clx = array();
//-- select clause
$clx[] = CSql::clSelect(array(
self::ID_NAME,
"vcnt",
));
//-- from
$clx[] = CSql::clFrom(self::TBL_NAME);
//-- cond
$cond = array();
$cond[] = CSql::clCond( "poll_id", "=", $data->poll_id );
$cond[] = CSql::clCond( "bid", "=", $data->requ["bid"] );
//-- where clause
if ( !empty($cond) ) {
$clx[] = CSql::clWhere("AND",$cond);
}
//-- limite clause
$clx[] = "LIMIT 1";
//-- run query
$btn_id = null;
$vcnt = null;
$result = CSql::query($clx);
if ( $rs = CDb::getRowA( $result ) ) {
$btn_id = $rs[self::ID_NAME];
$vcnt = intval($rs["vcnt"]);
}
//-- free result
CDb::freeResult( $result );
return $btn_id;
}
public function edit( $data ) {
$vx = array();
$vx["vcnt"] = $data->requ["vcnt"];
if ( $btn_id = $this->findRec( $data, $vcnt ) ) {
CTable::updateByID( self::TBL_NAME, self::ID_NAME, $btn_id, $vx );
} else {
$vx["poll_id"] = $data->poll_id;
$vx["bid"] = $data->requ["bid"];
CTable::insertRec( self::TBL_NAME, $vx );
}
$data->resp["vcnts"] = array();
if ( $this->findRec( $data, $vcnt ) ) {
$data->resp["vcnts"][$data->requ["bid"]] = $vcnt;
}
}
}
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/components/ddriver/pcf/CTblHist.class.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
class CTblHist extends CTblBase {
const TBL_NAME = "hist";
const ID_NAME = "hist_id";
public function __construct( $prt ) {
parent::__construct( $prt );
$cfg = CEnv::config("poll/block");
$this->sig_expire = $this->getSigExpire($cfg);
}
private function getSigExpire( $cfg ) {
if ( empty($cfg["sig-expire"]) ) { return 0; }
$days = $cfg["sig-expire"];
return ( substr($days,-1) == "s" ) ?
intval(substr($days,0,-1)) :
intval($days)*(60*60*24);
}
public function loadSelsx( $data ) {
//-- build clauses
$clx = array();
//-- select clause
$clx[] = CSql::clSelect(array(
"voter_id",
"poll_id",
"bid",
));
//-- from
$clx[] = CSql::clFrom(self::TBL_NAME);
//-- cond
$cond = array();
$cond[] = CSql::clCond( "voter_id", "=", $data->voter_id );
$cond2 = array();
foreach( $data->pmap as $poll_id=>$pid ) {
$cond2[] = CSql::clCond( "poll_id", "=", $poll_id );
}
$cond[] = CSql::clCondOp( "OR", $cond2 );
//-- where clause
if ( !empty($cond) ) {
$clx[] = CSql::clWhere("AND",$cond);
}
//-- run query
$selsx = array();
$result = CSql::query($clx);
while ( $rs = CDb::getRowA( $result ) ) {
$pid = $data->pmap[$rs["poll_id"]];
if ( !isset($selsx[$pid]) ) {
$selsx[$pid] = array();
}
$selsx[$pid][$rs["bid"]] = 1;
}
//-- free result
CDb::freeResult($result);
//-- assign
$data->resp["selsx"] = $selsx;
}
public function loadSels( $data ) {
//-- build clauses
$clx = array();
//-- select clause
$clx[] = CSql::clSelect(array(
"bid",
));
//-- from
$clx[] = CSql::clFrom(self::TBL_NAME);
//-- cond
$cond = array();
$cond[] = CSql::clCond( "voter_id", "=", $data->voter_id );
$cond[] = CSql::clCond( "poll_id", "=", $data->poll_id );
//-- where clause
if ( !empty($cond) ) {
$clx[] = CSql::clWhere("AND",$cond);
}
//-- run query
$sels = array();
$result = CSql::query($clx);
while ( $rs = CDb::getRowA( $result ) ) {
$sels[$rs["bid"]] = 1;
}
//-- free result
CDb::freeResult($result);
//-- assign
$data->resp["sels"] = $sels;
}
public function getBtnType( $data ) {
$data->hist_id = 0;
$data->bid = "";
//-- build clauses
$clx = array();
//-- select clause
$clx[] = CSql::clSelect(array(
self::ID_NAME,
"bid",
));
//-- from
$clx[] = CSql::clFrom(self::TBL_NAME);
//-- cond
$cond = array();
$cond[] = CSql::clCond( "poll_id", "=", $data->poll_id );
$cond[] = CSql::clCond( "voter_id", "=", $data->voter_id );
//-- where clause
if ( !empty($cond) ) {
$clx[] = CSql::clWhere("AND",$cond);
}
//-- order by
$clx[] = "ORDER BY hist_id ASC";
//-- limit clause
$clx[] = "LIMIT 1";
//-- run query
$result = CSql::query($clx);
if ( $rs = CDb::getRowA( $result ) ) {
$data->hist_id = $rs[self::ID_NAME];
$data->bid = $rs["bid"];
}
//-- free result
CDb::freeResult( $result );
}
public function update( $data ) {
foreach( $data->update_hist as $update ) {
$this->updateOne($data,$update);
}
}
private function updateOne( $data, $update ) {
switch( $update["cmd"] ) {
case "delete":
CTable::deleteByID( self::TBL_NAME, "hist_id", $update["hist_id"] );
break;
case "insert":
if ( $data->voter_id ) {
$vx["dt_create"] = $this->prt->getDateTimeStr();
$vx["voter_id"] = $data->voter_id;
$vx["poll_id"] = $data->poll_id;
$vx["bid"] = $update["bid"];
CTable::insertRec( self::TBL_NAME, $vx );
}
break;
}
}
public function expire( $data ) {
if ( $this->sig_expire <= 0 ) { return; }
$now = $this->prt->getDateTime();
$str_limit = $this->prt->getDateTimeStr($now-$this->sig_expire);
//-- delete expired records
$clx = array();
$clx[] = CSql::clDelete(self::TBL_NAME);
$cond = array();
$cond[] = CSql::clCond("dt_create","<",$str_limit);
$clx[] = CSql::clWhere("AND",$cond);
CSql::query($clx);
}
}
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/components/ddriver/pcf/CTblVoter.class.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
class CTblVoter extends CTblBase {
const TBL_NAME = "voter";
const ID_NAME = "voter_id";
public function __construct( $prt ) {
parent::__construct( $prt );
$cfg = CEnv::config("poll/block");
$this->b_ipsig = $cfg["b-ipsig"];
$this->b_cksig = $cfg["b-cksig"];
$this->v_ipsig = null;
$this->v_cksig = null;
$this->ipsig = new CIpSig();
$this->cksig = new CCkSig();
}
private function findVoter( $fdname, $fdval ) {
if ( empty($fdval) ) { return 0; }
//-- build clauses
$clx = array();
//-- select clause
$clx[] = CSql::clSelect(array(
self::ID_NAME,
"dt_create",
$fdname,
));
//-- from
$clx[] = CSql::clFrom(self::TBL_NAME);
//-- cond
$cond = array();
$cond[] = CSql::clCond( $fdname, "=", $fdval );
//-- where clause
if ( !empty($cond) ) {
$clx[] = CSql::clWhere("AND",$cond);
}
//-- ordery by clause
$clx[] = "ORDER BY voter_id ASC";
//-- limite clause
$clx[] = "LIMIT 1";
//-- run query
$voter_id = 0;
$result = CSql::query($clx);
if ( $rs = CDb::getRowA( $result ) ) {
$voter_id = $rs[self::ID_NAME];
if ( $fdname == "ipsig" ) {
$this->v_ipsig = $rs["ipsig"];
}
if ( $fdname == "cksig" ) {
$this->v_cksig = $rs["cksig"];
}
}
//-- free result
CDb::freeResult( $result );
return $voter_id;
}
public function getVoterInfo( $data ) {
$voter_id = 0;
if ( $this->b_ipsig && !$voter_id ) {
if ( $ipsig = $this->ipsig->getVal() ) {
if ( $id = $this->findVoter("ipsig",$ipsig) ) {
$voter_id = $id;
}
}
}
if ( $this->b_cksig && !$voter_id ) {
if ( $cksig = $this->cksig->getVal() ) {
if ( $id = $this->findVoter("cksig",$cksig) ) {
$voter_id = $id;
}
}
}
$data->voter_id = $voter_id;
}
public function update( $data ) {
if ( $this->b_ipsig || $this->b_cksig ) {
if ( $data->voter_id ) {
$vx = array();
if ( $this->b_ipsig ) {
if ( empty($this->v_ipsig) ) {
$this->v_ipsig = $this->ipsig->getVal();
}
if ( !empty($this->v_ipsig) ) {
$vx["ipsig"] = $this->v_ipsig;
}
}
if ( $this->b_cksig ) {
if ( empty($this->v_cksig) ) {
$this->v_cksig = $this->cksig->getVal(true);
}
if ( !empty($this->v_cksig) ) {
$vx["cksig"] = $this->v_cksig;
$this->cksig->setVal($this->v_cksig);
}
}
$vx["dt_create"] = $this->prt->getDateTimeStr();
CTable::updateByID(self::TBL_NAME,self::ID_NAME,
$data->voter_id,$vx);
} else {
$vx = array();
if ( $this->b_ipsig ) {
$this->v_ipsig = $this->ipsig->getVal();
if ( !empty($this->v_ipsig) ) {
$vx["ipsig"] = $this->v_ipsig;
}
}
if ( $this->b_cksig ) {
$this->v_cksig = $this->cksig->getVal(true);
if ( !empty($this->v_cksig) ) {
$vx["cksig"] = $this->v_cksig;
$this->cksig->setVal($this->v_cksig);
}
}
$vx["dt_create"] = $this->prt->getDateTimeStr();
CTable::insertRec(self::TBL_NAME,$vx);
}
$this->getVoterInfo($data);
}
}
}
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/components/main/js/CUtil.js
-----------------------------------------------------------------
/*js
//==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
*/
var CUtil = this.CUtil = {
printError : function( msg ) {
console.log( msg );
},
hsc : function( s ) {
return $("").text(s).html();
},
recalcStyle : function( jqo ) {
var dummy = jqo.get(0).offsetWidth;
},
jsShallowCopy : function( obj ) {
return $.extend({},obj);
},
jsDeepCopy : function( obj ) {
return $.extend(true,{},obj);
},
getFilenameFromUrl : function( url ) {
return url.substring(url.lastIndexOf('/')+1);
},
isIE7or8 : function() {
return (navigator.appVersion.indexOf("MSIE 7.")!=-1) ||
(navigator.appVersion.indexOf("MSIE 8.")!=-1);
},
canCssAnim : function() {
return ( document.createElement("div")
.style.animationName !== undefined );
},
isTouchDevice : function() {
return (("ontouchstart" in window) ||
(navigator.MaxTouchPoints > 0) ||
(navigator.msMaxTouchPoints > 0));
},
shuffleArray : function(ax) {
var tmp, idx;
var i = ax.length;
while (0 !== i) {
idx = Math.floor(Math.random() * i);
i -= 1;
tmp = ax[i];
ax[i] = ax[idx];
ax[idx] = tmp;
}
return ax;
},
ensureArray : function( s ) {
if ( s == undefined ) {
return [];
} else if ( Array.isArray(s) ) {
return s;
} else {
s = s.trim();
if ( s ) {
var sx = s.split(",");
for( var i=0; i
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
*/
function CCMS( classname ) {
this.classname = classname;
this.binding = {};
};
CCMS.prototype = {
trigger : function( ename, data, ref ) {
if ( this.binding[ename] ) {
if ( data == undefined ) { data = {}; }
data.ename = ename;
var b_skip = (ref?true:false);
var ls = this.binding[ename];
for( var i=0; i 0 ) {
var ename = sx[0];
var bindex = 0;
if ( sx.length > 1 ) {
bindex = sx[1];
if ( bindex == "begin" ) {
bindex = -100;
} else if ( bindex == "end" ) {
bindex = 100;
} else {
bindex = parseFloat(sx[1]);
if ( isNaN(bindex) ) {
bindex = 0;
}
}
}
if (!( ename in this.binding )) {
this.binding[ename] = [];
}
var insert = {
bindex:bindex,
obj:obj,
func:func
};
var ls = this.binding[ename];
var b_inserted = false;
for ( var j=0; j>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
*/
var CCmp = this.CCmp = {
scopes:[],
register : function( scope, cmp ) {
if ( !this.scopes[scope] ) {
this.scopes[scope] = [];
}
this.scopes[scope].push(cmp);
},
load : function( scope ) {
var ls = this.scopes[scope];
for( var i=0; i>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
*/
var CHeadReso = this.CHeadReso = {
removeCss : function( id ) {
if ( $("#"+id).length ) {
$("#"+id).remove();
}
return id;
},
insertCss : function( id, txt ) {
this.removeCss(id);
var style = document.createElement("style");
style.type = "text/css";
style.id = id;
if (style.styleSheet){
style.styleSheet.cssText = txt;
} else {
style.appendChild(document.createTextNode(txt));
}
document.getElementsByTagName("head")[0].appendChild(style);
},
removeJs : function( id ) {
if ( $("#"+id).length ) {
$("#"+id).remove();
}
return id;
},
insertJs : function( id, txt ) {
this.removeJs(id);
var script = document.createElement("script");
script.type = "text/javascript";
script.id = id;
if ( CUtil.isIE7or8() ) {
script.text = txt;
} else {
script.appendChild(document.createTextNode(txt));
}
document.getElementsByTagName("head")[0].appendChild(script);
}
};
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/components/main/js/CGate.js
-----------------------------------------------------------------
/*js
//==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
*/
/*
= destroy old gate and create a new one
this.gate = CGate.create(this.gate);
= execute function if gate is open
this.gate.check(function(){
..................
})
= close gate
if ( this.gate ) { this.gate.close(); }
= pause gate
this.gate.pause();
= resume gate
if ( this.gate.resume() ) {
..................
}
*/
var CGate = this.CGate = {
init : function() {
this.b_paused = false;
this.b_closed = false;
this.flags = {};
},
create : function( obj ) {
if ( obj ) { obj.close(); }
obj = {};
for( var p in this ) { obj[p] = this[p]; }
obj.init();
return obj;
},
check : function( f, caller ) {
var _this = this;
return function(){
if ( _this.b_closed ) { return; }
f.call(caller ? caller : this);
}
},
isOpen : function( str ) {
if ( this.b_paused ) {
return false;
} else {
if ( str ) {
return this.checkFlag(str);
} else {
return true;
}
}
},
pause : function() {
this.b_paused = true;
},
resume : function() {
if ( this.b_paused ) {
this.b_paused = false;
return true;
} else {
return false;
}
},
close : function() {
this.b_closed = true;
},
checkFlag : function( str ) {
var fx = str.split(",");
for( var i=0; i>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
*/
var CApp = this.CApp = {
init : function() {
CAppCMS.bind("app-bind",this,function(){
CAppCMS.bind("app-setup",this,this.setup);
CAppCMS.bind("app-start",this,this.start);
CAppCMS.bind("app-init-done",this,this.init_done);
});
},
wid:0,
wmap:{},
pmap:{},
getCssId : function( key ) {
return appcfg.prefix_css + key;
},
getJsId : function( key ) {
return appcfg.prefix_js + key;
},
run : function() {
//-- load app components
CCmp.load("app");
CAppCMS.trigger("app-bind");
CAppCMS.trigger("app-setup");
CAppCMS.trigger("app-start");
},
setup : function() {
var _this = this;
$("."+appcfg.cls_selector).each(function(){
_this.setupInstance($(this));
});
},
start : function() {
this.requestToServer();
},
ajax : function( requ, obj, func ) {
$.ajax({
type:"POST",
url:appcfg.url_server,
data:"requ="+encodeURIComponent(JSON.stringify(requ)),
dataType:"json",
success:function(resp){
func.call(obj,resp);
},
error:function( jqXHR, textStatus, errorThrown ){
var s = "[$.ajax.error]\n";
s += jqXHR.responseText+"\n";
s += textStatus+"\n";
s += errorThrown;
CUtil.printError(s);
}
});
},
ajaxSend : function( requ, obj, func ) {
this.ajax(requ,obj,function(resp){
if ( resp.result == "OK" ) {
func.call(obj,resp);
} else {
var s = "[non-OK] " + resp.result;
CUtil.printError( s );
}
});
},
getParams : function( wid ) {
return this.wmap[wid];
},
normalizeParam : function( jqo, key ) {
var ret = jqo.attr("data-"+key);
if ( !ret ) { ret = jqo.attr(key); }
if ( !ret ) { ret = ""; }
var re = new RegExp('\\\/');
ret = ret.replace(re,'_');
return ret;
},
setupInstance : function( jqo_host ) {
if ( parseInt(jqo_host.attr("data-wid")) ) {
return;
}
this.wid++;
var wid = this.wid;
jqo_host.attr("data-wid",wid);
var pid = this.normalizeParam(jqo_host,"pid");
if ( !pid ) { return; }
var tid = this.normalizeParam(jqo_host,"tid");
if ( !tid ) { return; }
var rec = {
jqo_host:jqo_host,
wid:wid,
pid:pid,
tid:tid
};
this.wmap[wid] = rec;
if ( !this.pmap[pid] ) {
this.pmap[pid] = [];
}
this.pmap[pid].push(rec);
},
requestToServer : function() {
var pollx = [];
for( var wid in this.wmap ) {
var rec = this.wmap[wid];
if ( !rec.done ) {
var rx = {
wid:rec.wid,
pid:rec.pid,
tid:rec.tid
};
if ( rec.iid ) { rx.iid = rec.iid }
if ( rec.pswitch && rec.pswitch.length ) {
rx.pswitch = rec.pswitch
}
pollx.push(rx);
}
}
if ( pollx.length ) {
var requ = {
"cmd":"init",
"pollx":pollx
};
CAppCMS.trigger("app-init-data",{requ:requ});
this.ajaxSend(requ,this,function(resp){
CAppCMS.trigger("app-init-done",{resp:resp});
});
}
},
init_done : function( data ) {
this.inidata = data.resp;
var resp = data.resp;
for( var key in resp.cssx ) {
CHeadReso.insertCss(this.getCssId(key),resp.cssx[key]);
}
for( var key in resp.jsx ) {
CHeadReso.insertJs(this.getJsId(key),resp.jsx[key]);
}
//-- load app components
CCmp.load("poll");
//-- trigger poll events
this.poll_typex = [];
CAppCMS.trigger("poll-bind",data);
CAppCMS.trigger("poll-register",data);
CAppCMS.trigger("poll-setup",data);
},
getInitData : function() {
return this.inidata;
},
setPollTypeObj : function( type, obj ) {
this.poll_typex[type] = obj;
},
getPollTypeObj : function( type ) {
return this.poll_typex[type];
},
getPollTypeObjByTid : function( tid ) {
return this.getPollTypeObj(this.inidata.tplx[tid].type);
}
};
CCmp.register("app",CApp);
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/components/main/js/functions.js
-----------------------------------------------------------------
/*js
//==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
*/
//-- pollyfill for "toFixed"
if (!Number.prototype.toFixed) {
Number.prototype.toFixed = function(decimals) {
return Math.round(this * Math.pow(10, decimals)) / (Math.pow(10, decimals));
};
}
//-- pollyfill for "isArray"
if (!Array.isArray) {
Array.isArray = function(arg) {
return Object.prototype.toString.call(arg) === '[object Array]';
};
}
//-- pollyfill for "includes"
if (!Array.prototype.includes) {
Array.prototype.includes = function( findme ) {
for( var i=0; i") == -1 ) {
return this.toString();
} else {
return this
.replace(//g,'')
.replace(/<\/sb>/g,'');
}
};
}
//-- polyfill for JSON
if (!window.JSON) {
window.JSON = {
parse: function(sJSON) { return eval('(' + sJSON + ')'); },
stringify: (function () {
var toString = Object.prototype.toString;
var isArray = Array.isArray || function (a) { return toString.call(a) === '[object Array]'; };
var escMap = {'"': '\\"', '\\': '\\\\', '\b': '\\b', '\f': '\\f', '\n': '\\n', '\r': '\\r', '\t': '\\t'};
var escFunc = function (m) { return escMap[m] ||
'\\u' + (m.charCodeAt(0) + 0x10000).toString(16).substr(1); };
var escRE = /[\\"\u0000-\u001F\u2028\u2029]/g;
return function stringify(value) {
if (value == null) {
return 'null';
} else if (typeof value === 'number') {
return isFinite(value) ? value.toString() : 'null';
} else if (typeof value === 'boolean') {
return value.toString();
} else if (typeof value === 'object') {
if (typeof value.toJSON === 'function') {
return stringify(value.toJSON());
} else if (isArray(value)) {
var res = '[';
for (var i = 0; i < value.length; i++) {
res += (i ? ', ' : '') + stringify(value[i]);
}
return res + ']';
} else if (toString.call(value) === '[object Object]') {
var tmp = [];
for (var k in value) {
if (value.hasOwnProperty(k)) {
tmp.push(stringify(k) + ': ' + stringify(value[k]));
}
}
return '{' + tmp.join(', ') + '}';
}
}
return '"' + value.toString().replace(escRE, escFunc) + '"';
};
})()
};
}
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/components/main/js/CPoll.js
-----------------------------------------------------------------
/*js
//==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
*/
var CPoll = this.CPoll = {
type : "def",
init : function() {
CAppCMS.bind("poll-bind",this,function(){
CAppCMS.bind("poll-register:begin",this,this.register);
CAppCMS.bind("poll-setup:end",this,this.setup);
CAppCMS.bind("poll-vote",this,this.vote);
CAppCMS.bind("poll-vote-done",this,this.vote_done);
});
},
register : function( data ) {
CApp.setPollTypeObj(this.type,this);
},
setup : function( data ) {
var tplx = data.resp.tplx;
var typex = data.resp.typex;
for( var type in typex ) {
var rec = typex[type];
var ls = rec.list;
for( var i=0; i1 ) ? jqo_btns.filter(
"[data-bid='"+bid+"']") : jqo_btns;
jqo_btn.attr("data-vcnt",vcnt.toString());
var jqo_vcnt = jqo_btn.find(".aiin-vcnt");
jqo_vcnt.html(this.formatVcnt(vcnt,format));
},
setupPoll : function( data, tpl ) {
var ls = tpl.list;
for( var i=0; i>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
$cfg["client"] = array(
"cmpname"=>"main",
"version"=>1.0,
"pcf"=>array(
"app"=>array(
"CApp",
),
"poll"=>array(
"CPoll",
),
),
"js"=>array(
/* base */
"functions.js"=>array("scope"=>"base"),
"CUtil.js"=>array("scope"=>"base"),
"CCmp.js"=>array("scope"=>"base"),
"CCMS.js"=>array("scope"=>"base"),
"CGate.js"=>array("scope"=>"base"),
"CHeadReso.js"=>array("scope"=>"base"),
/* app */
"CApp.js"=>array("scope"=>"app"),
"CPoll.js"=>array("scope"=>"app"),
),
);
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/components/main/css/style.css
-----------------------------------------------------------------
/*css
//==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
*/
.ajax-iine * {
box-sizing:border-box;
}
.ajax-iine table,
.ajax-iine tbody,
.ajax-iine tfoot,
.ajax-iine thead,
.ajax-iine tr,
.ajax-iine th,
.ajax-iine td {
margin:0;
padding:0;
border:0;
font-size:100%;
vertical-align:top;
background-color:transparent;
box-shadow:none;
}
.ajax-iine img {
margin:0;
padding:0;
border:0;
background-color:transparent;
box-shadow:none;
}
.ajax-iine table {
border-collapse:collapse;
border-spacing:0;
}
.ajax-iine .aiin-css {
position:relative;
display:inline-block;
}
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/components/main/pcf/CData.class.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
class CData {
private static $css = array();
public static function setResult( $data, $msg ) {
$data->resp["result"] = $msg;
}
public static function makeTpl( $data ) {
$tid = $data->requ["tid"];
$path = CAppPath::pathTpl($tid)."config.inc.php";
if ( file_exists($path) ) {
$cfg =& $data->requ;
include($path);
}
}
public static function makeDataStruct( $data ) {
$pidx = array();
$tplx = array();
foreach( $data->requ["pollx"] as $poll ) {
$tid = $poll["tid"];
$pidx[] = $poll["pid"];
if ( !isset($tplx[$tid]) ) {
$path = CAppPath::pathTpl($tid)."config.inc.php";
if ( file_exists($path) ) {
$cfg = array();
include($path);
if ( !isset($cfg["type"]) ) {
$cfg["type"] = "def";
}
$cfg["list"] = array();
$tplx[$tid] = $cfg;
}
}
if ( isset($tplx[$tid]) ) {
$tplx[$tid]["list"][] = $poll;
}
}
$data->pidx = $pidx;
$data->resp["tplx"] = $tplx;
}
public static function sani( $v, $b_slash = true ) {
if ( is_string($v) ) {
if ( $b_slash ) {
$v = preg_replace('/[\/\\\\]/', '_', $v);
}
}
return $v;
}
public static function sanitizeCmd( $data ) {
$data->requ["cmd"] = preg_replace("/[^a-zA-Z0-9]+/", "",
isset($data->requ["cmd"])?$data->requ["cmd"]:"");
return $data->requ["cmd"];
}
public static function validateID( $data, $idnamex ) {
foreach( $idnamex as $idname ) {
switch( $idname ) {
case "wid": $id = CData::sanitizeWid($data); break;
case "bid": $id = CData::sanitizeBid($data); break;
case "pid": $id = CData::sanitizePid($data); break;
case "tid": $id = CData::sanitizeTid($data); break;
}
if ( empty($id) ) {
CData::setResult($data,"missing {$idname}");
return false;
}
$data->resp[$idname] = $id;
}
return true;
}
public static function sanitizeID( $data, $idname, $b_slash = false ) {
$data->requ[$idname] = self::sani(
isset($data->requ[$idname])?$data->requ[$idname]:"",
$b_slash);
return $data->requ[$idname];
}
public static function sanitizeWid( $data ) {
return self::sanitizeID($data,"wid");
}
public static function sanitizeBid( $data ) {
return self::sanitizeID($data,"bid");
}
public static function sanitizePid( $data ) {
return self::sanitizeID($data,"pid",true);
}
public static function sanitizeTid( $data ) {
return self::sanitizeID($data,"tid",true);
}
public static function sanitizeTids( $data ) {
foreach( $data->requ["pollx"] as &$poll ) {
$poll["tid"] = self::sani($poll["tid"]);
}
}
public static function addCss( $css ) {
if ( is_array($css) ) {
self::$css[] = implode("",$css);
} else {
self::$css[] = $css;
}
}
public static function packCss( $data ) {
//-- compact css in components & templates
$txt = implode("",self::$css);
$data->resp["cssx"]["all"] = CCompact::css($txt);
}
public static function packHtml( $data ) {
//-- compact htmls in components
foreach( $data->resp["htmlx"] as $name=>&$html ) {
$html = CCompact::html($html);
}
//-- compact htmls in templates
foreach( $data->resp["tplx"] as $tid=>&$tpl ) {
if ( isset($tpl["html"]) ) {
foreach( $tpl["html"] as $fn=>&$html ) {
$html = CCompact::html($html);
}
}
}
}
public static function loadTplCfg( $data ) {
$path = CAppPath::pathTpl($data->requ["tid"])."config.inc.php";
if ( file_exists($path) ) {
$cfg = array();
include($path);
$data->cfg_tpl = $cfg;
}
}
}
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/components/main/pcf/CCMS.class.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
class CCMS {
public static $binding = array();
public static function trigger( $ename, $data = null, $ref = null ) {
if ( isset(self::$binding[$ename]) ) {
if ( !$data ) { $data = new CCMSData(); }
$data->ename = $ename;
$b_skip = ($ref?true:false);
$ls = self::$binding[$ename];
for( $i=0; $i 0 ) {
$ename = $sx[0];
$bindex = 0;
if ( count($sx) > 1 ) {
$bindex = $sx[1];
if ( $bindex == "begin" ) {
$bindex = -100;
} else if ( $bindex == "end" ) {
$bindex = 100;
} else {
if ( is_numeric($bindex) ) {
$bindex = floatval($sx[1]);
} else {
$bindex = 0;
}
}
}
if ( !isset(self::$binding[$ename]) ) {
self::$binding[$ename] = array();
}
$insert = array(
"bindex"=>$bindex,
"obj"=>$obj,
"func"=>$func
);
$ls =& self::$binding[$ename];
$b_inserted = false;
for( $j=0; $j
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/components/main/pcf/CPoll.class.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
class CPoll {
public function __construct( $data ) {
CCMS::bind("poll-bind",$this,"bind");
}
public function bind( $data ) {
CCMS::bind("poll-load:begin",$this,"load");
CCMS::bind("poll-type:begin",$this,"type");
CCMS::bind("poll-pack",$this,"pack");
CCMS::bind("poll-vote",$this,"vote");
CCMS::bind("poll-vote-process:end",$this,"vote_process");
}
public function load( $data ) {
foreach( $data->resp["tplx"] as $tid=>&$tpl ) {
CTplLoader::setupTid($tid);
if ( $tpl["load-resource"] ) {
$tpl["html"] = CTplLoader::loadAllFiles("html");
CData::addCss(CTplLoader::loadAllFiles("css"));
}
}
}
public function type( $data ) {
$typex = array();
foreach( $data->resp["tplx"] as $tid => $tpl ) {
if ( isset($tpl["type"]) ) {
$type = $tpl["type"];
if ( !isset($typex[$type]) ) {
$typex[$type] = array(
"list"=>array()
);
}
$typex[$type]["list"][] = $tid;
}
}
$data->resp["typex"] = $typex;
}
public function pack( $data ) {
CData::packCss($data);
CData::packHtml($data);
}
public function vote( $data ) {
CData::loadTplCfg( $data );
CCMS::trigger("poll-vote-process",$data);
}
public function vote_process( $data ) {
//-- get history data
$data->ddriver->hist($data);
//-- init arrays
$data->update_btn = array();
$data->update_hist = array();
$data->update_vcnt = array();
$data->resp["change"] = 0;
if ( $data->bid == "" ) {
//-- change
$data->resp["change"] = 1;
//-- increment the new bid
$data->update_btn[] = array(
"bid"=>$data->requ["bid"],
"change"=>1,
);
//-- insert the new hist
$data->update_hist[] = array(
"cmd"=>"insert",
"bid"=>$data->requ["bid"],
);
//-- update the new vcnt
$data->update_vcnt[$data->requ["bid"]] = 1;
} else {
if ( $data->cfg_tpl["enable-undo"] ) {
if ( $data->requ["bid"] == $data->bid ) {
//-- change
$data->resp["change"] = -1;
//-- decrement the prev bid
$data->update_btn[] = array(
"bid"=>$data->requ["bid"],
"change"=>-1,
);
//-- delete the prev hist
$data->update_hist[] = array(
"cmd"=>"delete",
"hist_id"=>$data->hist_id,
);
//-- update the prev vcnt
$data->update_vcnt[$data->requ["bid"]] = 0;
} else {
//-- change
$data->resp["change"] = 0;
//-- shouldn't happend but delete hist anyway
$data->update_hist[] = array(
"cmd"=>"delete",
"hist_id"=>$data->hist_id,
);
}
}
}
//-- update
$data->ddriver->update($data);
}
}
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/components/main/pcf/CApp.class.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
class CApp {
public function __construct( $data ) {
CCMS::bind("app-bind",$this,"bind");
}
public function bind( $data ) {
CCMS::bind("app-ddriver",$this,"ddriver");
CCMS::bind("app-dispatch",$this,"dispatch");
CCMS::bind("app-cmd-init",$this,"cmd_init");
CCMS::bind("app-cmd-vote",$this,"cmd_vote");
CCMS::bind("app-output",$this,"output");
}
public function dispatch( $data ) {
$data->cmd = CData::sanitizeCmd( $data );
if ( empty($data->cmd) ) {
CData::setResult($data,"missing cmd");
return;
}
CCMS::trigger("app-cmd-".$data->cmd,$data);
}
public function ddriver( $data ) {
$data->ddriver = new CDDriver();
}
public function cmd_init( $data ) {
if ( empty($data->requ["pollx"]) ) {
return;
}
//-- init
CData::sanitizeTids($data);
CData::makeDataStruct($data);
//-- html
$data->resp["htmlx"] = CComponent::htmlcode(
CComponent::buildReso("html"),"app");
//-- css
$data->resp["cssx"] = array();
$lca = CEnv::locale("app/css");
CData::addCss($lca["global-css"]);
CData::addCss(CComponent::csscode(
CComponent::buildReso("css"),"app"));
//-- data driver
CCMS::trigger("app-ddriver",$data);
if ( $data->ddriver->open_status ) {
CData::setResult($data,"database error [".
$data->ddriver->open_status . "]" );
return;
}
$data->ddriver->load($data);
//-- run poll classes
CComponent::registerPcfClass("poll",$data);
CCMS::trigger("poll-bind",$data);
CCMS::trigger("poll-load",$data);
CCMS::trigger("poll-type",$data);
CCMS::trigger("poll-pack",$data);
}
public function cmd_vote( $data ) {
//-- init
if ( !CData::validateID($data,
array("wid","pid","tid","bid")) ) {
return;
}
//-- setup tpl and type
CData::makeTpl($data);
$data->resp["type"] = isset($data->requ["type"]) ?
$data->requ["type"] : "def";
//-- data driver
CCMS::trigger("app-ddriver",$data);
//-- expire voters
$data->ddriver->expire($data);
//-- run poll classes
CComponent::registerPcfClass("poll",$data);
CCMS::trigger("poll-bind",$data);
CCMS::trigger("poll-vote",$data);
}
public function output( $data ) {
echo CJson::encode($data->resp);
}
public function run( $data ) {
CCMS::trigger("app-bind",$data);
CCMS::trigger("app-dispatch",$data);
CCMS::trigger("app-output",$data);
}
}
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/components/main/pcf/index.inc.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
function autoloader_pcf_main( $class ) {
CIncAutoloader::autoloader( $class, dirname(__FILE__) );
}
spl_autoload_register("autoloader_pcf_main");
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/cn/startup.inc.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
include_once( dirname(dirname(__FILE__)) . "/config/config.env.inc.php" );
include_once( dirname(dirname(__FILE__)) . "/lib/sys/index.inc.php" );
include_once( dirname(__FILE__) . "/include/index.inc.php" );
CEnv::useLib("app");
CEnv::useLib("client");
CEnv::useLib("poll");
CPreProc::reverseMagicQuote();
CEnv::setUrlRoot( dirname(dirname(CPreProc::getCurrentPageUrl())) . "/" );
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/cn/cn.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
include_once( dirname(__FILE__) . "/startup.inc.php" );
CLoader::run();
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/cn/include/CClient.class.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
class CClient {
private static function obStart() {
ob_start();
}
private static function obEnd() {
$s = ob_get_contents();
if ( !empty($s) ) {
ob_end_clean();
}
return $s;
}
private static function makeSource( $js ) { ?>
"use strict";
window.runAjaxIineButton = function( $, appcfg ) {
var CAppCMS = this.CAppCMS = new CCMS("CAppCMS");
$(document).ready(function(){
CApp.run();
});
};
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/cn/include/index.inc.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
class CIncAutoloader {
public static function autoloader( $class, $path_dir ) {
$path = "{$path_dir}/{$class}.class.php";
if ( is_file( $path ) ) {
require_once( $path );
}
}
}
function inc_autoloader( $class ) {
CIncAutoloader::autoloader( $class, dirname(__FILE__) );
}
spl_autoload_register("inc_autoloader");
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/cn/include/CLoader.class.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
class CLoader {
private static function printLoader( $cfg ) {
$lca = CEnv::locale("app/info");
echo "/* ".$lca["app:name-version"] . " */\r\n";
echo "(function( cfg ){";
include(CAjaxTool::pathMinJs(
dirname(dirname(__FILE__))."/js/",
"loader.min.js")
);
echo "}(" . CAjaxTool::getConfig($cfg) . "));";
}
public static function run() {
CAjaxTool::printHeader();
//-- load ajax config
$cfg = CEnv::config("client/ajax");
$cfg["appcfg"] = array_merge(
$cfg["appcfg"],
array(
"url_server"=>CEnv::urlClient() . "server.php",
)
);
//-- min.js or .js
if ( !isset($cfg["url_js2"]) ) {
$cfg["url_js2"] = CAjaxTool::urlMinJs(
CEnv::pathClient()."js/",
CEnv::urlClient()."js/",
$cfg["fn_js2"]);
}
//-- send loader
self::printLoader($cfg);
}
}
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/cn/include/CServer.class.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
class CServer {
public static function run() {
CComponent::setupCmp("client");
$requ = CJson::decode($_REQUEST["requ"]);
$resp = array("result"=>"OK");
$data = new CCMSData();
$data->requ =& $requ;
$data->resp =& $resp;
CComponent::registerPcfClass("app",$data);
$app = CComponent::getPcfClass("CApp");
$app->run($data);
}
}
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/cn/js/loader.js
-----------------------------------------------------------------
/*js
//==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
*/
"use strict";
function getVerN( ver ){
var vx = ver.split(".");
var cof = 1.0;
var total = 0.0;
for( var i=0; i getVerN(cfg.jq_max_ver) ) {
b_load_jq = true;
}
}
}
return b_load_jq;
};
function loadScript(url, callback){
if ( !url ) {
callback( false );
return;
}
var script = document.createElement("script");
script.type = "text/javascript";
if (script.readyState){/*IE*/
script.onreadystatechange = function(){
if (script.readyState == "loaded" ||
script.readyState == "complete"){
script.onreadystatechange = null;
callback( true );
}
};
} else {/*Others*/
script.onload = function(){
callback( true );
};
}
script.src = url;
/*-- document.head.appendChild(script); --*/
/*-- document.head isn't available to IE<9. Just use --*/
document.getElementsByTagName("head")[0].appendChild(script);
};
var loader = {
jQuery:null,
app_main:null
};
function runApp(loader) {
var b = (loader.jQuery && loader.app_main);
if (b) {
window[loader.app_main](loader.jQuery,cfg.appcfg);
}
return b;
};
function main() {
/*-- load jQuery --*/
var url_js1 = shouldLoadJq(cfg) ? cfg.url_js1 : null;
loadScript(url_js1,function(b_loaded){
loader.jQuery = window.jQuery;
if (b_loaded) {
window.jQuery.noConflict(true);
}
runApp(loader);
});
/*-- load App --*/
loadScript(cfg.url_js2,function(b_loaded){
loader.app_main = cfg.app_main;
runApp(loader);
});
};
main();
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/cn/server.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
include_once( dirname(__FILE__) . "/startup.inc.php" );
CServer::run();
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/cn/client.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
include_once( dirname(__FILE__) . "/startup.inc.php" );
CClient::run();
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/install/startup.inc.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
include_once( dirname(dirname(__FILE__)) . "/config/config.env.inc.php" );
include_once( dirname(dirname(__FILE__)) . "/lib/sys/index.inc.php" );
include_once( dirname(__FILE__) . "/include/index.inc.php" );
CEnv::useLib("app");
CEnv::useLib("db");
CPreProc::checkPhpVersion();
CPreProc::reverseMagicQuote();
CEnv::setUrlRoot( dirname(dirname(CPreProc::getCurrentPageUrl())) . "/" );
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/install/include/index.inc.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
include( CEnv::pathAdmin() . "include/index.inc.php" );
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/install/mod/index.inc.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
class CAutoloader {
//-- connect module
public static function connect( $dir ) {
include_once( dirname(__FILE__) . '/' . $dir . '/index.inc.php' );
}
//-- proc_autoloader
public static function autoloader( $class, $path_dir ) {
$path = "{$path_dir}/{$class}.class.php";
if ( is_file( $path ) ) {
require_once( $path );
}
}
}
CAutoloader::connect("base");
CModule::setup($_rtc);
CApp::run($_rtc);
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/install/mod/base/index.inc.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
include( CEnv::pathAdmin() . "mod/base/index.inc.php" );
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/install/mod/setup/tpl.body.header.inc.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/install/mod/setup/tpl.body.footer.inc.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/install/mod/setup/CDBInstaller.class.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
class CDBInstaller {
private static function runSqlText( $px, $sql ) {
$sql = str_replace(
" `tbl_",
" `" . $px["db-tbl-prefix"],
$sql );
//-- [BEGIN] Split Sql Text
$sql = str_replace( "\r", "", $sql );
$ax = explode( "\n", $sql );
$bx = array();
$cx = array();
foreach( $ax as $s ) {
if ( substr( $s, 0, 2 ) != "--" ) {
$s = trim( $s );
$bx[] = $s;
if (( strlen( $s ) > 0 ) && ( substr( $s, -1 ) == ";" )) {
$cx[] = implode( "\n", $bx );
$bx = array();
}
}
}
//-- [END] Split Sql Text
foreach( $cx as $s ) {
if ( !( $result = CDb::query( $s ) ) ) {
return false;
}
}
return true;
}
public static function run( &$px, $path_sql, &$errmsg ) {
$lca = CEnv::locale("install/validate");
//-- check connection error
if ( $errno = CDb::open($px) ) {
$msg = $lca["err:cannot-connect-to-db"];
$msg = str_replace("%hostname%", $px["db-hostname"], $msg);
$msg .= " : ";
$msg .= CDb::connectError();
$msg .= " ({$errno})";
$errmsg = $msg;
return false;
}
$sql = file_get_contents( $path_sql );
if ( !self::runSqlText($px, $sql) ) {
$msg = "";
$errno = CDb::errno();
// 1050 : Table already exists
// 1062 : key for a record already exists
if (( $errno == 1050 ) || ( $errno == 1062 )) {
$msg .= $lca["err:table-already-exists"];
$msg .= " : ";
}
$msg .= CDb::error();
$msg .= " ({$errno})";
$errmsg = $msg;
return false;
}
return true;
}
}
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/install/mod/setup/tpl.page.start.inc.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
$lca_ai = CEnv::locale("app/info");
$lca = CEnv::locale("install/page.start");
$msg = str_replace( "%app-name%", $lca_ai["app:name"], $lca["click-start"] );
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/install/mod/setup/CAction_setup.class.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
class CAction_setup extends CAction {
public function main() {
if ( self::isFend() ) {
self::load(array(
"btpl/CBaseTpl",
"fbc/CFend",
"~/CFend_setup",
"btpl/CSPage",
));
} else {
self::load(array(
"fbc",
"~/CBend_setup",
"fbc/CSAjax",
));
}
}
}
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/install/mod/setup/tpl.page.dbsetup.inc.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
$cfg = CEnv::config("install/page.dbsetup");
$lca = CEnv::locale("install/page.dbsetup");
$req = _req();
$rs["db-hostname"] = $cfg["def-db-hostname"];
$rs["db-database"] = "";
$rs["db-username"] = "";
$rs["db-password"] = "";
$rs["db-tbl-prefix"] = $cfg["def-db-tbl-prefix"];
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/install/mod/setup/CFend_setup.class.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
class CFend_setup extends CObject {
public function init() {
$this->unbind("CBaseTpl","hd_BodyHeader");
$this->unbind("CBaseTpl","hd_BodyFooter");
$this->unbind("CBaseTpl","hd_Body");
$this->bind("hd_HtmlHead");
$this->bind("hd_BodyHeader");
$this->bind("hd_BodyFooter");
$this->bind("hd_Body");
}
public function hd_HtmlHead() {
$url_mod = $this->urlMod();
$lca_ai = CEnv::locale("app/info");
$lca_inst = CEnv::locale("install/install");
$this->title = $lca_ai["app:name-version"] . " " . $lca_inst["installation"];
include( dirname(__FILE__) . "/tpl.html.head.inc.php" );
}
public function hd_BodyHeader( $prt ) {
$lca_ai = CEnv::locale("app/info");
$lca = CEnv::locale("install/install");
$title = $lca_ai["app:name"] . " " .
'' . $lca_ai["app:version"] . " " .
$lca["installation"];
include( dirname(__FILE__) . "/tpl.body.header.inc.php" );
}
public function hd_Body( $prt ) {
if ( !CAppReq::check() ) {
CAppReq::showErrMsgBox();
exit;
}
include( dirname(__FILE__) . "/tpl.page.start.inc.php" );
}
public function hd_BodyFooter( $prt ) {
$lca_ai = CEnv::locale("app/info");
include( dirname(__FILE__) . "/tpl.body.footer.inc.php" );
}
}
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/install/mod/setup/index.inc.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
function autoloader_setup( $class ) {
CAutoloader::autoloader( $class, dirname(__FILE__) );
}
spl_autoload_register("autoloader_setup");
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/install/mod/setup/CDBSetup.class.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
class CDBSetup {
private static function validate( $data ) {
//-- locale
$lca = CEnv::locale( "install/validate" );
//-- vali macro
CValiMacro::setup($data, $lca);
CValiMacro::vStr("db-hostname");
CValiMacro::vStr("db-database");
CValiMacro::vStr("db-username");
CValiMacro::vStr("db-password");
CValiMacro::vStr("db-tbl-prefix");
}
private static function setup( $data ) {
//-- locale
$lca = CEnv::locale( "install/validate" );
if ( !CConfigDbFile::checkPermission() ) {
CFRes::addEA( $lca["err:can-not-write-config-db-file"] );
return false;
}
//if ( !CConfigDbFile::load($px) ) {
// CFRes::addEA( $lca["err:invalid-config-db-file"] );
// return false;
//}
$px = array();
$px["db-hostname"] = $data->vx["db-hostname"];
$px["db-database"] = $data->vx["db-database"];
$px["db-username"] = $data->vx["db-username"];
$px["db-password"] = $data->vx["db-password"];
$px["db-tbl-prefix"] = $data->vx["db-tbl-prefix"];
$path_sql = $data->path_sql;
if ( !CDBInstaller::run( $px, $path_sql, $errmsg ) ) {
CFRes::addEA( $errmsg );
return false;
}
//-- save config file
CConfigDbFile::save($px);
return true;
}
public static function process( $data ) {
$data->vx = array();
$data->fm = $data->requ["form"];
//-- validate
self::validate( $data );
if ( !CFRes::isValidated() ) {
return false;
}
//-- setup
if ( !self::setup( $data ) ) {
return false;
}
return true;
}
}
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/install/mod/setup/tpl.page.permcheck.inc.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
$flist = array();
//-- [BEGIN] flist
$flist[] = array(
"type"=>"file",
"path"=>CEnv::pathConfig() . "config.db.inc.php",
"access"=>"rw",
);
//-- [END] flist
CPermCheck::setupAccessFileList($flist);
$lca = CEnv::locale("install/page.permcheck");
$b_print_idx = false;
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/install/mod/setup/sql/sql.txt
-----------------------------------------------------------------
-- --------------------------------------------------------
--
-- Table structure for table `tbl_btn`
--
CREATE TABLE `tbl_btn` (
`btn_id` int(11) NOT NULL AUTO_INCREMENT,
`poll_id` int(11) NOT NULL DEFAULT '0',
`bid` varchar(100) DEFAULT NULL,
`vcnt` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`btn_id`),
KEY `poll_id` (`poll_id`),
KEY `bid` (`bid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1001;
-- --------------------------------------------------------
--
-- Table structure for table `tbl_hist`
--
CREATE TABLE `tbl_hist` (
`hist_id` int(11) NOT NULL AUTO_INCREMENT,
`dt_create` datetime NOT NULL,
`voter_id` int(11) NOT NULL,
`poll_id` int(11) NOT NULL,
`bid` varchar(100) DEFAULT NULL,
PRIMARY KEY (`hist_id`),
KEY `dt_create` (`dt_create`),
KEY `voter_id` (`voter_id`),
KEY `poll_id` (`poll_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1001;
-- --------------------------------------------------------
--
-- Table structure for table `tbl_poll`
--
CREATE TABLE `tbl_poll` (
`poll_id` int(11) NOT NULL AUTO_INCREMENT,
`dt_create` datetime NOT NULL,
`pid` varchar(100) DEFAULT NULL,
PRIMARY KEY (`poll_id`),
KEY `pid` (`pid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1001;
-- --------------------------------------------------------
--
-- Table structure for table `tbl_voter`
--
CREATE TABLE `tbl_voter` (
`voter_id` int(11) NOT NULL AUTO_INCREMENT,
`dt_create` datetime NOT NULL,
`ipsig` varchar(100) DEFAULT NULL,
`cksig` varchar(100) DEFAULT NULL,
PRIMARY KEY (`voter_id`),
KEY `dt_create` (`dt_create`),
KEY `ipsig` (`ipsig`),
KEY `cksig` (`cksig`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1001;
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/install/mod/setup/CBend_setup.class.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
class CBend_setup extends CBend_crud {
public function init() {
$this->bind("hd_goto_page2");
$this->bind("hd_goto_page3");
$this->bind("hd_goto_page4");
}
private function outputPageTpl( $data, $tpl ) {
self::obStart();
include( $this->pathMod() . "tpl.page.{$tpl}.inc.php" );
$html = self::obEnd();
//-- resp
$data->resp["html"] = $html;
$this->ret($data);
}
public function hd_goto_page2( $data ) {
$this->outputPageTpl( $data, "permcheck" );
}
public function hd_goto_page3( $data ) {
$this->outputPageTpl( $data, "dbsetup" );
}
public function hd_goto_page4( $data ) {
//-- CDBSetup
$data->path_sql = self::pathMod() . "sql/sql.txt";
if ( !CDBSetup::process( $data ) ) {
$this->ret($data);
return;
}
//-- application setup
CAppSetup::run($data);
//-- output template
$this->outputPageTpl( $data, "done" );
}
}
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/install/mod/setup/tpl.page.done.inc.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
$lca_ai = CEnv::locale("app/info");
$lca = CEnv::locale("install/page.done");
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/install/mod/setup/js/CSetup.js
-----------------------------------------------------------------
/*js
//==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
*/
(function($){
CSetup = {
jqo_page : {},
init : function( opt ) {
for ( var key in opt ) { this[key] = opt[key]; }
var _this = this;
this.jqo_page[1] = this.jqo_page1;
this.jqo_btn_start = this.jqo_page[1].find(".btn-start");
this.cajax = new CCAjax();
this.jms = new CJMS();
//-- start
this.jqo_btn_start.click( function(e){
e.preventDefault();
_this.pc_goto_page(2);
});
},
form2wdata : function( idx ) {
var form = CForm.get(this.jqo_page[idx]);
var page_key = this.jqo_page[idx].find("input[name='page-key']").val();
var json = JSON.parse($("#wdata").val());
json[page_key] = form;
$("#wdata").val(JSON.stringify(json));
return form;
},
wdata2form : function( idx ) {
var form = null;
var page_key = this.jqo_page[idx].find("input[name='page-key']").val();
var json = JSON.parse($("#wdata").val());
if ( page_key in json ) {
form = json[page_key];
CForm.set(this.jqo_page[idx],form);
}
return form;
},
pc_goto_page : function( idx ) {
var form = this.form2wdata(idx-1);
var requ = {
cmd:"goto_page"+idx,
form:form,
wdata:$("#wdata").val()
};
this.cajax.send(requ,this,function(resp){
if ( CFRes.execute(resp,this.jqo_page[idx-1]) ) {
if ( this.jqo_page[idx] ) {
this.jqo_page[idx].remove();
}
this.jqo_page[idx] = $("")
.attr("class","page"+idx)
.html(resp.html);
this.jqo_page[idx-1]
.after(this.jqo_page[idx])
.hide();
var _this = this;
this.jqo_page[idx].find(".btn-back").click( function(e){
e.preventDefault();
_this.pc_backto_page(idx-1);
});
this.jqo_page[idx].find(".btn-next").click( function(e){
e.preventDefault();
_this.pc_goto_page(idx+1);
});
this.jqo_page[idx].find(".btn-reload").click( function(e){
e.preventDefault();
_this.pc_goto_page(idx);
});
this.wdata2form(idx);
}
});
},
pc_backto_page : function( idx ) {
this.form2wdata(idx+1);
this.jqo_page[idx].show();
this.jqo_page[idx+1].hide();
}
};
$(document).ready(function(){
CSetup.init({ jqo_page1: $(".page1") });
});
}(jQuery));
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/install/mod/setup/CAppSetup.class.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
class CAppSetup {
private static function e2n($s) {
return empty($s) ? null : $s;
}
public static function run($data) {
}
}
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/install/mod/setup/css/CDone.css
-----------------------------------------------------------------
/*css
//==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
*/
.psect-done {
margin:30px auto 30px auto;
max-width:800px;
}
.psect-done .inst-done {
margin:15px 0 25px 0;
text-align:center;
font-size:160%;
font-weight:bold;
color:#000;
}
.psect-done .important-box {
margin:0 10px;
padding:10px;
color:#800000;
text-align:center;
background-color:#fee;
border:1px solid #fcc;
border-radius: 3px;
}
.psect-done .important {
margin:0 10px 10px 0;
padding:0 15px;
font-size:80%;
line-height:160%;
font-weight:bold;
color:white;
background-color:red;
border-radius: 6px;
}
.psect-done .login-info-box {
margin:20px auto;
padding:20px;
width: 300px;
text-align:center;
border:1px solid #ccf;
-moz-border-radius: 6px;
-webkit-border-radius: 6px;
-khtml-border-radius: 6px;
border-radius: 6px;
}
.psect-done .key {
width:150px;
font-size:90%;
color:#888;
text-align:right;
}
.psect-done .val {
padding-left:5px;
width:150px;
font-size:110%;
font-style:italic;
font-weight:bold;
text-align:left;
color:#333;
}
.psect-done .link-box {
margin:0 auto;
width:200px;
padding:4px 0;
border:1px solid #e0e0ff;
border-width: 0 0 5px 0;
}
.psect-done .link {
font-size:110%;
color:#44f;
text-decoration:none;
}
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/install/mod/setup/css/CSetup.css
-----------------------------------------------------------------
/*css
//==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
*/
body {
background-color:#ffffff;
padding-top: 0px;
}
body > main {
min-height:500px;
}
@media (min-width:640px) {
body > main {
border:0px solid #ffffff;
}
}
body > main .homebtn {
display:none;
position:static;
margin:80px auto 20px auto;
width:60px;
height:60px;
border:1px solid transparent;
border-left-color:#286090;
border-right-color:#286090;
font-size:30px;
line-height:60px;
text-align:center;
cursor:pointer;
opacity:0.2;
/*ie7*/
*zoom:1;
*filter: alpha(opacity=20);
-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=20)";
}
@media (min-width:640px) {
body > main .homebtn {
position:fixed;
bottom:100px;
right:100px;
}
body > main .homebtn:hover {
opacity:1.0;
border-color:transparent;
border-top-color:#286090;
border-bottom-color:#286090;
}
}
body > main .homebtn span {
color:#265AC5;
}
body > header {
padding:40px;
color:white;
/* for webkit browsers */
background: -webkit-gradient(linear, left top, left bottom, from(#265AC5), to(#ffffff));
/* for firefox 3.6+ */
background: -moz-linear-gradient(top, #265AC5, #ffffff);
/* for IE */
background: -ms-linear-gradient(top, #265AC5, #ffffff);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#265AC5', endColorstr='#ffffff');
/* for opera */
background-image: -o-linear-gradient(-90deg, #265AC5, #ffffff);
/* catch all */
background-color:#265AC5;
}
body > header > .title {
font-size:30px;
font-weight:normal;
}
body > footer {
background-color:#286090;
text-align:center;
}
body > footer .site-name-container {
display:inline-block;
*zoom:1;
*display:inline;
margin:5px 0;
}
body > footer .site-name {
font-family:"Arial Black","Arial";
font-size:14px;
font-weight:normal;
color:#eee;
}
/*-- shared style --*/
.instruction {
margin:20px 0px;
font-size:140%;
}
.btn-start {
max-width:320px;
width:100%;
padding:40px 0;
font-size:100%;
}
.btn-start:hover {
opacity:0.8;
}
@media (min-width:640px) {
main .instruction {
margin:40px 20px;
}
main .btn-start {
padding:60px 0;
}
}
.task-title {
margin:20px 0px;
padding:10px 15px;
font-size:140%;
color:#31708f;
border:0px solid #31708f;
border-width:0 0 1px 20px;
}
.task-inst {
margin-bottom:20px;
padding-left:20px;
font-size:100%;
color:#31708f;
}
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/install/mod/setup/css/CPermCheck.css
-----------------------------------------------------------------
/*css
//==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
*/
.pentry {
display:table;
width:100%;
}
.pentry-row {
display:table-row;
width:100%;
}
.pentry-cell {
display:table-cell;
vertical-align:middle;
text-align:left;
}
.pentry-cell-idx {
width:40px;
text-align:left;
}
.pentry-cell-type {
width:90px;
text-align:left;
}
.pentry-cell-path {
word-break:break-all;
font-style:italic;
}
.label-step {
display:inline-block;
padding:7px;
width:30px;
height:30px;
font-size:16px;
line-height:16px;
font-weight:bold;
text-align:center;
color:white;
background-color:#aaa;
border-radius:50%;
}
.label-type {
display:inline-block;
padding:2px 0;
width:80px;
font-size:12px;
font-weight:bold;
text-align:center;
color:white;
background-color:#888;
}
.label-rw {
padding:2px 10px;
margin-bottom:1px;
font-size:14px;
}
.label-error {
animation-name:kf-label-error;
animation-duration:1s;
animation-timing-function:ease;
animation-iteration-count:infinite;
}
@keyframes kf-label-error {
0% {
opacity:0;
}
50% {
opacity:1;
}
100% {
opacity:0;
}
}
.result-ctar-frame {
perspective:1000px;
}
.result-ctar {
animation-duration:1s;
animation-name:kf-result-ctar;
animation-timing-function:linear;
animation-iteration-count:1;
}
@keyframes kf-result-ctar {
0% {
transform: rotateX(90deg);
}
100% {
transform: rotateX(0deg);
}
}
.success-ctar {
padding:10px;
text-align:center;
color:white;
background-color:#5cb85c;
border-radius:4px;
}
.success-msg {
margin-bottom:5px;
font-weight:bold;
font-size:24px;
}
.success-inst {
font-size:15px;
}
.error-ctar {
margin-bottom:10px;
padding:10px;
text-align:center;
color:white;
background-color:#c53430;
border-radius:4px;
}
.error-msg {
margin-bottom:5px;
font-weight:bold;
font-size:24px;
}
.error-inst {
font-size:15px;
}
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/install/mod/setup/tpl.navi.inc.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/install/mod/setup/tpl.html.head.inc.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/install/mod/setup/CConfigDbFile.class.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
class CConfigDbFile {
private static $flist = array(
"db-hostname",
"db-database",
"db-username",
"db-password",
"db-tbl-prefix",
);
private static function pathFile() {
return CEnv::pathConfig() . "config.db.inc.php";
}
private static function readCfg( $ln, $key ) {
$key = str_replace("-","\-",$key);
$double_quoted_string = '"(?:[^"]|\\")*?"';
$single_quoted_string = "'(?:[^']|\\')*?'";
$string = "{$double_quoted_string}|{$single_quoted_string}";
$white_space = '\s*';
$pat = '/'
. '\$cfg'
. '
'
. '\['
. '[\"\']'
. $key
. '[\'\"]'
. ''
. '\]'
. ''
. '='
. ''
. '()'
. ''
. '\;'
. '/';
$pat = str_replace( "", $white_space, $pat );
$pat = str_replace( "", $string, $pat );
if ( preg_match( $pat, $ln, $mx ) ) {
$s = $mx[1];
return substr( $s, 1, strlen($s)-2 );
}
return null;
}
public static function checkPermission() {
$path = self::pathFile();
return is_readable( $path ) && is_writeable( $path );
}
public static function load( &$px ) {
$path = self::pathFile();
$txt = file_get_contents($path);
foreach( self::$flist as $key ) {
$val = self::readCfg( $txt, $key );
if (( $key == "db-tbl-prefix" ) && is_null($val) ) {
return false;
}
$px[$key] = $val;
}
return true;
}
public static function save( $px ) {
$sx = array();
$sx[] = "";
$txt = implode("\r\n",$sx);
$path = self::pathFile();
file_put_contents($path,$txt);
}
}
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/install/mod/setup/CPermCheck.class.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
class CPermCheck {
private static $idx = 0;
private static $errcnt = 0;
public static function getErrCnt() {
return self::$errcnt;
}
public static function setupAccessFileList( &$flist ) {
foreach( $flist as &$rs ) {
if ( strpos($rs["access"],"r") !== false ) {
$b = is_readable($rs["path"]);
$rs["r"] = $b;
if ( !$b ) { self::$errcnt++; }
}
if ( strpos($rs["access"],"w") !== false ) {
$b = is_writable($rs["path"]);
$rs["w"] = $b;
if ( !$b ) { self::$errcnt++; }
}
}
}
public static function printRWLabel( $lca, $access, $b ) {
$txt = ( $b ? "" :
"" ) . " ";
switch( $access ) {
case "r":
$txt .= $lca["text:" . ( $b ? "readable" : "not-readable" )];
break;
case "w":
$txt .= $lca["text:" . ( $b ? "writable" : "not-writable" )];
break;
}
$cls = $b ? "label-success" : "label-danger label-error";
echo "{$txt} ";
}
public static function printRWLabels( $lca, $rs ) {
if ( isset($rs["r"]) ) {
self::printRWLabel( $lca, "r", $rs["r"] );
}
if ( isset($rs["w"]) ) {
self::printRWLabel( $lca, "w", $rs["w"] );
}
}
public static function printIdxLabel() {
self::$idx++;
$idx = self::$idx;
echo "{$idx}
";
}
public static function printTypeLabel( $lca, $rs ) {
$txt = $lca["label:" . $rs["type"] ];
echo "{$txt}
";
}
}
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/install/mod/mod.inc.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
$mods = array();
$mods["setup"] = array(
"vrtp"=>"/^$/",
);
$mods["btpl"] = array(
"dir"=>"../../" . CEnv::get("dir-admin") . "/mod/btpl",
);
$mods["fbc"] = array(
"dir"=>"../../" . CEnv::get("dir-admin") . "/mod/fbc",
);
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/install/config/route.inc.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
$rtes["/^(.*)$/"] = array(
"index"=>"index.inc.php",
"rel_url"=>"",
"rel_path"=>"mod/",
"cca"=>false,
);
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/install/index.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
include_once( dirname(__FILE__) . "/startup.inc.php" );
//-- routing
$_rtc = array();
CSRouter::setupRtc($_rtc,__FILE__);
if ( !CSRouter::main($_rtc) ) {
C404Page::main();
header("HTTP/1.0 404 Not Found");
exit();
}
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/templates/tpl-sb-goodjob/config.inc.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// このファイルはAjaxいいねボタンv2.23用のボタンテンプレート設定ファイルです。
//
// このファイルのガイドは以下のURLでご覧になれます。
// http://jpn.phpkobo.com/ajax-iine-button/v2.23/button-template-config-file
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
$cfg["vcnt-format"] = "c3";
$cfg["enable-undo"] = 1;
$cfg["indicate-voted"] = 1;
$cfg["load-resource"] = 1;
//-----------------------------------------------------------------
// END OF FILE
//-----------------------------------------------------------------
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/templates/tpl-sb-goodjob/css/tpl.css
-----------------------------------------------------------------
.%css-ctar% .aiin-btn {
position:relative;
display:inline-block;
padding:5px 15px;
font-size:18px;
color:#b24267;
background-color:#fff;
border-style:solid;
border-color:#b24267;
border-width:1px;
border-radius:3px;
cursor:pointer;
user-select:none;
transition:color 0.5s,background-color 0.5s;
}
.%css-ctar% .aiin-btn.aiin-sel {
color:#fff;
background-color:#b24267;
}
.%css-ctar% .aiin-btn.aiin-not-allowed {
cursor:not-allowed;
}
.%css-ctar% .aiin-label,
.%css-ctar% .aiin-vcnt {
position:relative;
display:inline-block;
vertical-align:middle;
}
.%css-ctar% .aiin-label {
margin-right:5px;
}
.%css-ctar% .aiin-vcnt {
text-align:right;
min-width:15px;
}
.%css-ctar% .aiin-postfix {
position:relative;
top:2px;
left:2px;
font-size:15px;
}
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/templates/tpl-sb-blue-m/config.inc.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// このファイルはAjaxいいねボタンv2.23用のボタンテンプレート設定ファイルです。
//
// このファイルのガイドは以下のURLでご覧になれます。
// http://jpn.phpkobo.com/ajax-iine-button/v2.23/button-template-config-file
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
$cfg["vcnt-format"] = "c3";
$cfg["enable-undo"] = 1;
$cfg["indicate-voted"] = 1;
$cfg["load-resource"] = 1;
//-----------------------------------------------------------------
// END OF FILE
//-----------------------------------------------------------------
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/templates/tpl-sb-blue-m/css/tpl.css
-----------------------------------------------------------------
.%css-ctar% .aiin-btn {
position:relative;
display:inline-block;
padding:5px 15px;
font-size:18px;
color:#888;
border-style:solid;
border-width:3px 0 3px 0;
border-color:#888;
cursor:pointer;
user-select:none;
}
.%css-ctar% .aiin-btn.aiin-sel {
color:#f80;
border-color:#f80;
}
.%css-ctar% .aiin-btn.aiin-not-allowed {
cursor:not-allowed;
}
.%css-ctar% .aiin-label,
.%css-ctar% .aiin-vcnt {
position:relative;
display:inline-block;
vertical-align:middle;
}
.%css-ctar% .aiin-label {
margin-right:5px;
}
.%css-ctar% .aiin-vcnt {
text-align:right;
min-width:15px;
}
.%css-ctar% .aiin-postfix {
position:relative;
top:2px;
left:2px;
font-size:15px;
}
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/templates/tpl-sb-top/config.inc.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// このファイルはAjaxいいねボタンv2.23用のボタンテンプレート設定ファイルです。
//
// このファイルのガイドは以下のURLでご覧になれます。
// http://jpn.phpkobo.com/ajax-iine-button/v2.23/button-template-config-file
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
$cfg["vcnt-format"] = "c3";
$cfg["enable-undo"] = 1;
$cfg["indicate-voted"] = 1;
$cfg["load-resource"] = 1;
//-----------------------------------------------------------------
// END OF FILE
//-----------------------------------------------------------------
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/templates/tpl-sb-top/css/tpl.css
-----------------------------------------------------------------
.%css-ctar% .aiin-btn {
position:relative;
display:inline-block;
padding:3px 10px;
color:#888;
border-width:1px;
border-style:solid;
border-color:transparent;
border-radius:3px;
cursor:pointer;
user-select:none;
}
.%css-ctar% .aiin-btn.aiin-sel {
border-color:#888;
}
.%css-ctar% .aiin-btn.aiin-not-allowed {
cursor:not-allowed;
}
.%css-ctar% .aiin-icon,
.%css-ctar% .aiin-label,
.%css-ctar% .aiin-vcnt {
position:relative;
display:inline-block;
vertical-align:middle;
}
.%css-ctar% .aiin-icon {
margin-right:5px;
width:32px;
height:32px;
background:url("%url-tpl%img/icon.png");
background-size:100% 100%;
}
.%css-ctar% .aiin-label {
margin-right:5px;
font-size:25px;
}
.%css-ctar% .aiin-vcnt {
font-size:25px;
text-align:right;
min-width:15px;
}
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/config/poll/config.block.inc.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
//-- IP番号で二重投票を禁止する。( 1:禁止する, 0:禁止しない )
$cfg["b-ipsig"] = 1;
//-- クッキーで二重投票を禁止する。( 1:禁止する, 0:禁止しない )
$cfg["b-cksig"] = 1;
//-- 二重投票禁止の有効期限日数
//-- 【例1】 365 : 365日間(ディフォルト)
//-- 【例2】 3 : 3日間
//-- 【例3】 0 : 無期限
$cfg["sig-expire"] = 365;
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/config/poll/config.sig.inc.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
//-- cookie key
$cfg["voter-cookie-key"] = "_lkbnx_vck";
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/config/app/config.app.inc.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
//-- locale code
$cfg["lc"] = "jp";
//-- path to app root folder
$cfg["path-root"] = dirname(dirname(dirname(__FILE__))) . "/";
//-- admin folder
$cfg["dir-admin"] = "codegen";
//-- client folder
$cfg["dir-client"] = "cn";
//-- component folder
$cfg["dir-component"] = "components";
//-- template folder
$cfg["dir-tpl"] = "templates";
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/config/config.db.inc.php
-----------------------------------------------------------------
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/config/install/config.page.dbsetup.inc.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
//-- default hostname
$cfg["def-db-hostname"] = "localhost";
//-- default table prefix
$cfg["def-db-tbl-prefix"] = "tbl_";
?>
-----------------------------------------------------------------
/var/www/html/phpkobo/tools/text-tools/concat-files/work-area/iine/config/client/config.ajax.inc.php
-----------------------------------------------------------------
>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajaxいいねボタン v2.23 [ GPL ]
// Copyright (c) phpkobo.com ( http://jpn.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : LKBNX-223J
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<
$cfg["appcfg"] = array(
//-- script version
"version" => "2.23",
//-- the class name of a instance
"cls_selector" => "ajax-iine",
//-- the id prefix for