HEX
Server: Apache
System: Linux 4485441ca2e2 6.8.0-1039-aws #41~22.04.1-Ubuntu SMP Thu Sep 11 11:03:07 UTC 2025 aarch64
User: (1000)
PHP: 8.2.24
Disabled: NONE
Upload Files
File: /var/www/html/wp-content/plugins/ganryu_shop/ganryu_shop.php
<?php
/*
Plugin Name: Ganryu Shop
Plugin URI: http://ganryujima.jp
Description: Garyujima Shopping Plugin.
Version: 1.0
Author: Yusuke
Author URI: http://ganryujima.jp
*/

define('GANRYU_SHOP_ROOT', dirname(__FILE__));
require_once GANRYU_SHOP_ROOT.'/boot/grys_func.php';
require_once GANRYU_SHOP_ROOT.'/boot/boot.php';
$grys_boot = new ganryu_shop_boot_Boot();
$grys_boot->initialize();

require_once GANRYU_SHOP_ROOT.'/boot/install.php';
$grys_inst = new ganryu_shop_boot_Install();
$grys_inst->prepareHook(__FILE__);

/*

add_action('admin_menu', 'ganryu_shop_admin_init');
register_activation_hook(__FILE__, 'ganryu_shop_boot_install');

function ganryu_shop_admin_init(){
	add_menu_page('ganryu shop', 'ganryu shop', 'read', "ganryu_shop", "ganryu_shop_dashboard", null, '1.05');
	add_submenu_page("ganryu_shop", "dashboard", "dashboard", "read", "ganryu_shop", "ganryu_shop_dashboard");
	add_submenu_page("ganryu_shop", "list", "list", "read", "ganryu_shop_list", "ganryu_shop_list");
	add_submenu_page("ganryu_shop", "add", "add", "read", "ganryu_shop_add", "ganryu_shop_add");
}


function ganryu_shop_dashboard(){
	echo "dashboard";
}

function ganryu_shop_list(){
	echo "list";
}

function ganryu_shop_add(){
	echo "add";
}


function ganryu_shop_boot_install(){
	require_once GANRYU_SHOP_ROOT.'/'
	error_log('install');
	require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );
	global $wpdb;
	
	$prefix = $wpdb->prefix;
	$charset_collate = $wpdb->get_charset_collate();
	
	
	$sql = "
CREATE TABLE ${prefix}_ganryu_shop_item (
	itemid int not null auto_increment,
	itemcode varchar(50) not null,
	itemtype int not null,
	itemname varchar(1000),
	itemdetail text,
	image varchar(50),
	price int not null,
	is_close int not null,
	create_date datetime,
	modify_date datetime,
	primary key (itemid)
) ENGINE=InnoDB DEFAULT CHARSET=${charset_collate};
	";
	error_log($sql);
	
	dbDelta( $sql );

	error_log('do delta');

}

*/