This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function install($arrPlugin) { | |
// ロゴファイルをhtmlディレクトリにコピーします. | |
copy(PLUGIN_UPLOAD_REALDIR . $arrPlugin['plugin_code'] . “/logo.png”, PLUGIN_HTML_REALDIR . $arrPlugin['plugin_code'] . “/logo.png”); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class TestPlugin extends SC_Plugin_Base { | |
/** | |
* コンストラクタ | |
* プラグイン情報(dtb_plugin)をメンバ変数をセットします. | |
* @param array $arrSelfInfo dtb_pluginの情報配列 | |
* @return void | |
*/ | |
public function __construct(array $arrSelfInfo) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* プラグイン の情報クラス. | |
*/ | |
class plugin_info{ | |
/** プラグインコード(必須):プラグインを識別する為キーで、他のプラグインと重複しない一意な値である必要があります*/ | |
static $PLUGIN_CODE = "PluginCodeForTest"; | |
/** プラグイン名(必須):EC-CUBE上で表示されるプラグイン名. */ | |
static $PLUGIN_NAME = "テスト用プラグイン"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php session_start() ?> | |
<html> | |
<head> | |
<title>secureimage test</title> | |
</head> | |
<body> | |
<div> | |
<!-- 入力フォーム --> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// 問題: | |
// プログラム引数で与えられる5枚のカード情報から、その5枚を用いて出来る一番強いポーカーの役を判定して出力せよ(*1)(*2)。 | |
// プログラム引数は以下のように与えられる。 | |
// $ prog Ac Th Kd 3h As | |
// カード情報について(*3)(*4)(*5) | |
// 1文字目:数値 (A:エース 2〜9:数字 T:10 J:11 Q:12 K:13) | |
// 2文字目:スート(s:スペード h:ハート d:ダイヤ c:クローバー) | |
// ポーカー役の強さの順番と出力値、それに対応する入力例 |
NewerOlder