diff --git a/210x/cpi/readme.txt b/210x/cpi/readme.txt deleted file mode 100755 index 19fbb9c..0000000 --- a/210x/cpi/readme.txt +++ /dev/null @@ -1,30 +0,0 @@ - -# 簡単セットアップについて - -「簡単セットアップ」を利用すると 10KB程度の PHP ファイルをアップロードして、ブラウザで表示させるだけで a-blog cms のパッケージのダウンロードや ionCube Loader の設定が可能です。 - -## 利用できるサーバー - -* Windows XAMPP -* macOS MAMP -* KDDI ウェブコミュニケーションズ CPI ACE01 -* さくらインターネット レンタルサーバ -* ファーストサーバー Zenlogic -* エックスサーバー -* GMO ペパボ ヘテムル / ロリポップ - -## 利用方法 - -「簡単セットアップ」を利用することで以下の作業を自動化してくれます。 - -1. 利用されるPHPのバージョンに合わせた a-blog cms のパッケージを直接サーバー上にダウンロード -2. ダウンロードした Zipファイルを解凍し、設置先に移動 -3. サーバーにあわせた ionCube Loader を直接ダウンロード -4. ダウンロードした ionCube Loader の Zipファイルを解凍 -5. ionCube Loader 等を利用する設定を php.ini に設定 -6. .htaccess を有効にし、サーバーにあわせた設定 -7. ダウンロードした Zipファイルや、必要のないフォルダの削除 -8. a-blog cms インストーラーを起動 - - - diff --git a/210x/cpi/setup.php b/210x/cpi/setup.php deleted file mode 100755 index 38ec62a..0000000 --- a/210x/cpi/setup.php +++ /dev/null @@ -1,473 +0,0 @@ -open($zipFile); - -if($res === true){ - $zip->extractTo($installPath); - $zip->close(); - -} else { - echo 'a-blog cms unZip Error ! : '. $zipFile; - exit; -} - -// -------------------------- -// a-blog cms ディレクトリを移動 -// -------------------------- - -if ($handle = opendir($ablogcmsDir)) { - while(false !== ($entry = readdir($handle))) { - if ($entry != "." && $entry != "..") { - rename($ablogcmsDir.$entry, $installPath ."/". $entry); - } - } - closedir($handle); -} else { - echo 'a-blog cms move Error ! :'.$ablogcmsDir; - exit; -} - - -// -------------------------- -// ioncube ファイルをダウンロード -// -------------------------- - -$fp = fopen($downloadIoncube, "r"); -if ($fp !== FALSE) { - file_put_contents($zipFileIoncube, ""); - while(!feof($fp)) { - $buffer = fread($fp, 4096); - if ($buffer !== FALSE) { - file_put_contents($zipFileIoncube, $buffer, FILE_APPEND); - } - } - fclose($fp); -} else { - echo 'ioncube loader download Error ! : '.$download; - exit; -} - -// -------------------------- -// ioncube ファイルを解凍 -// -------------------------- - -$zip = new ZipArchive(); -$res = $zip->open($zipFileIoncube); - -if($res === true){ - $zip->extractTo($installPath); - $zip->close(); - -} else { - echo 'ioncube loader unZip Error ! : '. $zipFileIoncube; - exit; -} - -// -------------------------- -// php.ini の設定 -// -------------------------- - -$iniFileName = "php.ini"; -$iniData = sprintf("date.timezone = 'Asia/Tokyo'\nzend_extension = \"%s/ioncube/ioncube_loader_fre_%s.so\"",$installPath,$ioncubePhpVersion); -file_put_contents($installPath."/".$iniFileName, $iniData, FILE_APPEND | LOCK_EX); - -# setupディレクトリにも php.ini が必要な時のために -copy($installPath."/php.ini", $installPath."/setup/php.ini"); - - - -// -------------------------- -// .htaccess の設定 -// -------------------------- - -rename($installPath."/htaccess.txt", $installPath.'/.htaccess'); -rename($installPath."/archives/htaccess.txt", $installPath.'/archives/.htaccess'); -rename($installPath."/archives_rev/htaccess.txt", $installPath.'/archives_rev/.htaccess'); -rename($installPath."/media/htaccess.txt", $installPath.'/media/.htaccess'); -rename($installPath."/private/htaccess.txt", $installPath.'/private/.htaccess'); -rename($installPath."/themes/htaccess.txt", $installPath.'/themes/.htaccess'); - -$htaccess = file_get_contents($installPath."/.htaccess"); - -$new = sprintf(" -deny from all - -Options +SymLinksIfOwnerMatch -AddHandler x-httpd-php%s .php\n\n",$phpVersion); - -$fp = fopen($installPath."/.htaccess",'w'); -fwrite($fp,$new.$htaccess); -fclose($fp); - -// -------------------------- -// DB 初期設定 -// -------------------------- - -if ($mysql_version == "5.6") { - $dbHost .= ":3307"; -} - -$data = sprintf("(.*)<\/a><\/h1>/',$html,$matches); - - if (is_numeric($matches[2])) { - return "2.10.".$matches[2]; - } else { - return; - } - -} diff --git a/210x/heteml/readme.txt b/210x/heteml/readme.txt deleted file mode 100755 index 19fbb9c..0000000 --- a/210x/heteml/readme.txt +++ /dev/null @@ -1,30 +0,0 @@ - -# 簡単セットアップについて - -「簡単セットアップ」を利用すると 10KB程度の PHP ファイルをアップロードして、ブラウザで表示させるだけで a-blog cms のパッケージのダウンロードや ionCube Loader の設定が可能です。 - -## 利用できるサーバー - -* Windows XAMPP -* macOS MAMP -* KDDI ウェブコミュニケーションズ CPI ACE01 -* さくらインターネット レンタルサーバ -* ファーストサーバー Zenlogic -* エックスサーバー -* GMO ペパボ ヘテムル / ロリポップ - -## 利用方法 - -「簡単セットアップ」を利用することで以下の作業を自動化してくれます。 - -1. 利用されるPHPのバージョンに合わせた a-blog cms のパッケージを直接サーバー上にダウンロード -2. ダウンロードした Zipファイルを解凍し、設置先に移動 -3. サーバーにあわせた ionCube Loader を直接ダウンロード -4. ダウンロードした ionCube Loader の Zipファイルを解凍 -5. ionCube Loader 等を利用する設定を php.ini に設定 -6. .htaccess を有効にし、サーバーにあわせた設定 -7. ダウンロードした Zipファイルや、必要のないフォルダの削除 -8. a-blog cms インストーラーを起動 - - - diff --git a/210x/heteml/setup.php b/210x/heteml/setup.php deleted file mode 100755 index c4ee91f..0000000 --- a/210x/heteml/setup.php +++ /dev/null @@ -1,323 +0,0 @@ -open($zipFile); - -if($res === true){ - $zip->extractTo($installPath); - $zip->close(); - -} else { - echo 'a-blog cms unZip Error ! : '. $zipFile; - exit; -} - -// -------------------------- -// a-blog cms ディレクトリを移動 -// -------------------------- - -if ($handle = opendir($ablogcmsDir)) { - while(false !== ($entry = readdir($handle))) { - if ($entry != "." && $entry != "..") { - rename($ablogcmsDir.$entry, $installPath ."/". $entry); - } - } - closedir($handle); -} else { - echo 'a-blog cms move Error ! :'.$ablogcmsDir; - exit; -} - -// -------------------------- -// .htaccess の設定 -// -------------------------- - -if (is_file($installPath."/.htaccess")) { - # .htaccess があった場合にはバックアップ - rename($installPath."/.htaccess", $installPath.'/.htaccess_backup'.date("YmdHis")); -} - -rename($installPath."/htaccess.txt", $installPath.'/.htaccess'); - -if ($htaccessPlus != "") { - $htaccess = file_get_contents($installPath.'/.htaccess'); - $htaccess = $htaccessPlus . "\n\n" . $htaccess; - file_put_contents($installPath.'/.htaccess', $htaccess); -} - -rename($installPath."/archives/htaccess.txt", $installPath.'/archives/.htaccess'); -rename($installPath."/archives_rev/htaccess.txt", $installPath.'/archives_rev/.htaccess'); -rename($installPath."/media/htaccess.txt", $installPath.'/media/.htaccess'); -rename($installPath."/private/htaccess.txt", $installPath.'/private/.htaccess'); -rename($installPath."/themes/htaccess.txt", $installPath.'/themes/.htaccess'); - -// -------------------------- -// DB 初期設定 -// -------------------------- - -$data = sprintf("(.*)<\/a><\/h1>/',$html,$matches); - - if (is_numeric($matches[2])) { - return "2.10.".$matches[2]; - } else { - return; - } - -} diff --git a/210x/lolipop/readme.txt b/210x/lolipop/readme.txt deleted file mode 100755 index 19fbb9c..0000000 --- a/210x/lolipop/readme.txt +++ /dev/null @@ -1,30 +0,0 @@ - -# 簡単セットアップについて - -「簡単セットアップ」を利用すると 10KB程度の PHP ファイルをアップロードして、ブラウザで表示させるだけで a-blog cms のパッケージのダウンロードや ionCube Loader の設定が可能です。 - -## 利用できるサーバー - -* Windows XAMPP -* macOS MAMP -* KDDI ウェブコミュニケーションズ CPI ACE01 -* さくらインターネット レンタルサーバ -* ファーストサーバー Zenlogic -* エックスサーバー -* GMO ペパボ ヘテムル / ロリポップ - -## 利用方法 - -「簡単セットアップ」を利用することで以下の作業を自動化してくれます。 - -1. 利用されるPHPのバージョンに合わせた a-blog cms のパッケージを直接サーバー上にダウンロード -2. ダウンロードした Zipファイルを解凍し、設置先に移動 -3. サーバーにあわせた ionCube Loader を直接ダウンロード -4. ダウンロードした ionCube Loader の Zipファイルを解凍 -5. ionCube Loader 等を利用する設定を php.ini に設定 -6. .htaccess を有効にし、サーバーにあわせた設定 -7. ダウンロードした Zipファイルや、必要のないフォルダの削除 -8. a-blog cms インストーラーを起動 - - - diff --git a/210x/lolipop/setup.php b/210x/lolipop/setup.php deleted file mode 100755 index 8c8e12e..0000000 --- a/210x/lolipop/setup.php +++ /dev/null @@ -1,259 +0,0 @@ -open($zipFile); - -if($res === true){ - $zip->extractTo($installPath); - $zip->close(); - -} else { - echo 'a-blog cms unZip Error ! : '. $zipFile; - exit; -} - -// -------------------------- -// a-blog cms ディレクトリを移動 -// -------------------------- - -if ($handle = opendir($ablogcmsDir)) { - while(false !== ($entry = readdir($handle))) { - if ($entry != "." && $entry != "..") { - rename($ablogcmsDir.$entry, $installPath ."/". $entry); - } - } - closedir($handle); -} else { - echo 'a-blog cms move Error ! :'.$ablogcmsDir; - exit; -} - -// -------------------------- -// .htaccess の設定 -// -------------------------- - -rename($installPath."/htaccess.txt", $installPath.'/.htaccess'); -rename($installPath."/archives/htaccess.txt", $installPath.'/archives/.htaccess'); -rename($installPath."/archives_rev/htaccess.txt", $installPath.'/archives_rev/.htaccess'); -rename($installPath."/media/htaccess.txt", $installPath.'/media/.htaccess'); -rename($installPath."/private/htaccess.txt", $installPath.'/private/.htaccess'); -rename($installPath."/themes/htaccess.txt", $installPath.'/themes/.htaccess'); - -// -------------------------- -// DB 初期設定 -// -------------------------- - -$data = sprintf("(.*)<\/a><\/h1>/',$html,$matches); - - if (is_numeric($matches[2])) { - return "2.10.".$matches[2]; - } else { - return; - } - -} diff --git a/210x/mamp/readme.txt b/210x/mamp/readme.txt deleted file mode 100755 index 19fbb9c..0000000 --- a/210x/mamp/readme.txt +++ /dev/null @@ -1,30 +0,0 @@ - -# 簡単セットアップについて - -「簡単セットアップ」を利用すると 10KB程度の PHP ファイルをアップロードして、ブラウザで表示させるだけで a-blog cms のパッケージのダウンロードや ionCube Loader の設定が可能です。 - -## 利用できるサーバー - -* Windows XAMPP -* macOS MAMP -* KDDI ウェブコミュニケーションズ CPI ACE01 -* さくらインターネット レンタルサーバ -* ファーストサーバー Zenlogic -* エックスサーバー -* GMO ペパボ ヘテムル / ロリポップ - -## 利用方法 - -「簡単セットアップ」を利用することで以下の作業を自動化してくれます。 - -1. 利用されるPHPのバージョンに合わせた a-blog cms のパッケージを直接サーバー上にダウンロード -2. ダウンロードした Zipファイルを解凍し、設置先に移動 -3. サーバーにあわせた ionCube Loader を直接ダウンロード -4. ダウンロードした ionCube Loader の Zipファイルを解凍 -5. ionCube Loader 等を利用する設定を php.ini に設定 -6. .htaccess を有効にし、サーバーにあわせた設定 -7. ダウンロードした Zipファイルや、必要のないフォルダの削除 -8. a-blog cms インストーラーを起動 - - - diff --git a/210x/mamp/setup.php b/210x/mamp/setup.php deleted file mode 100755 index af3d81e..0000000 --- a/210x/mamp/setup.php +++ /dev/null @@ -1,363 +0,0 @@ - - - - -a-blog cms インストーラー (MAMP版) - - - 0) { - $download = $download71; - $zipAfterDirName = $zipAfterDirName71; -} elseif ($versionArray[0] == 7 && $versionArray[1] == 0) { - $download = $download56; - $zipAfterDirName = $zipAfterDirName56; -} elseif ($versionArray[1] >= 6) { - $download = $download56; - $zipAfterDirName = $zipAfterDirName56; -} else { - $download = $download55; - $zipAfterDirName = $zipAfterDirName55; -} - -# 解凍後の a-blog cms のフォルダ名 -$cmsDirName = "ablogcms"; - -# ioncube Loader ダウンロード元 URL -$downloadIoncube = "http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_dar_x86-64.zip"; - -# ioncube Loader ダウンロード後のZipファイル名 -$zipFileIoncube ="ioncube.zip"; - -$installPath = realpath('.'); - -$phpName = basename($_SERVER['PHP_SELF']); - -$ablogcmsDir = $installPath."/".$zipAfterDirName."/".$cmsDirName."/"; - -$ablogcmsVersionNum = str_replace(".", "", $ablogcmsVersion); - -$mampRestart = ""; - -// -------------------------- -// データベースの設定 -// -------------------------- - -$dbHost = 'localhost'; -$dbName = 'DBacms_'.$ablogcmsVersionNum."_".date(mdHi); -$dbCreate = 'checked'; -$dbUser = 'root'; -$dbPass = 'root'; - -// -------------------------- -// a-blog cms ファイルをダウンロード -// -------------------------- - -$fp = fopen($download, "r"); -if ($fp !== FALSE) { - file_put_contents($zipFile, ""); - while(!feof($fp)) { - $buffer = fread($fp, 4096); - if ($buffer !== FALSE) { - file_put_contents($zipFile, $buffer, FILE_APPEND); - } - } - fclose($fp); -} else { - echo 'a-blog cms download Error ! : '.$download; - exit; -} - -// -------------------------- -// a-blog cms ファイルを解凍 -// -------------------------- - -$zip = new ZipArchive(); -$res = $zip->open($zipFile); - -if($res === true){ - $zip->extractTo($installPath); - $zip->close(); - -} else { - echo 'a-blog cms unZip Error ! : '. $zipFile; - exit; -} - -// -------------------------- -// a-blog cms ディレクトリを移動 -// -------------------------- - -if ($handle = opendir($ablogcmsDir)) { - while(false !== ($entry = readdir($handle))) { - if ($entry != "." && $entry != "..") { - rename($ablogcmsDir.$entry, $installPath ."/". $entry); - } - } - closedir($handle); -} else { - echo 'a-blog cms move Error ! :'.$ablogcmsDir; - exit; -} - -// -------------------------- -// ioncube Loader チェック -// -------------------------- - -$useIonCubeLoader = sprintf("ioncube_loader_dar_%d.%d.so",$versionArray[0],$versionArray[1]); - -if (!is_file(PHP_EXTENSION_DIR."/".$useIonCubeLoader)) { - - - // -------------------------- - // ioncube ファイルをダウンロード - // -------------------------- - - $fp = fopen($downloadIoncube, "r"); - if ($fp !== FALSE) { - file_put_contents($zipFileIoncube, ""); - while(!feof($fp)) { - $buffer = fread($fp, 4096); - if ($buffer !== FALSE) { - file_put_contents($zipFileIoncube, $buffer, FILE_APPEND); - } - } - fclose($fp); - } else { - echo 'ioncube loader download Error ! : '.$download; - exit; - } - - // -------------------------- - // ioncube Loader ファイルを解凍 - // -------------------------- - - $zip = new ZipArchive(); - $res = $zip->open($zipFileIoncube); - - if($res === true){ - $zip->extractTo($installPath); - $zip->close(); - - } else { - echo 'ioncube loader unZip Error ! : '. $zipFileIoncube; - exit; - } - - // -------------------------- - // ioncube Loader ファイルを移動 - // -------------------------- - - rename("./ioncube/".$useIonCubeLoader, PHP_EXTENSION_DIR."/".$useIonCubeLoader); - - // -------------------------- - // php.ini の設定 - // -------------------------- - - # MAMP の php.ini のパスを設定する - $iniFile = "/Applications/MAMP/bin/php/php".phpversion()."/conf/php.ini"; - - # 追記する設定内容 - $iniData = sprintf("\n\ndate.timezone = 'Asia/Tokyo'\n\nzend_extension = \"%s/ioncube_loader_dar_%d.%d.so\"",PHP_EXTENSION_DIR ,$versionArray[0],$versionArray[1]); - - $file = file_get_contents($iniFile); - - if (preg_match("/ioncube_loader/i", $file)) { - - # 設定済み - - } else { - $file = fopen( $iniFile, "a+" ); - fwrite( $file, $iniData ); - fclose( $file ); - } - - $mampRestart = "MAMPを再起動して "; - -} - - -// -------------------------- -// .htaccess の設定 -// -------------------------- - -rename("./htaccess.txt", './.htaccess'); -#rename("./archives/htaccess.txt", './archives/.htaccess'); -#rename("./archives_rev/htaccess.txt", './archives_rev/.htaccess'); -#rename("./private/htaccess.txt", './private/.htaccess'); -#rename("./media/htaccess.txt", './media/.htaccess'); -#rename("./theme/htaccess.txt", './theme/.htaccess'); - -// -------------------------- -// DB 初期設定 -// -------------------------- - -$data = sprintf("a-blog cms Ver %s ( php %s ) をインストールしました。

',$ablogcmsVersion,$version); - -$jump = "http://".$_SERVER['HTTP_HOST'].str_replace($phpName, "", $_SERVER['SCRIPT_NAME']); -echo sprintf('

%s%s にアクセスしてください。

',$mampRestart, $jump, $jump); - -// -------------------------- -// ディレクトリを操作 function ( move / copy / delete ) -// -------------------------- - -function dir_shori ($shori, $nowDir , $newDir="") { - - if ($shori != "delete") { - if (!is_dir($newDir)) { - mkdir($newDir); - } - } - - if (is_dir($nowDir)) { - if ($handle = opendir($nowDir)) { - while (($file = readdir($handle)) !== false) { - if ($file != "." && $file != "..") { - if ($shori == "copy") { - if (is_dir($nowDir."/".$file)) { - dir_shori("copy", $nowDir."/".$file, $newDir."/".$file); - } else { - copy($nowDir."/".$file, $newDir."/".$file); - } - } elseif ($shori == "move") { - rename($nowDir."/".$file, $newDir."/".$file); - } elseif ($shori == "delete") { - if (filetype($nowDir."/".$file) == "dir") { - dir_shori("delete", $nowDir."/".$file, ""); - } else { - unlink($nowDir."/".$file); - } - } - } - } - closedir($handle); - } - } - - if ($shori == "move" || $shori == "delete") { - rmdir($nowDir); - } - - return true; -} - -function download_version_check () { - - // Version 2.10.x のチェック用 - // 正常にチェックできない場合には 空 でかえす。 - - $options['ssl']['verify_peer']=false; - $options['ssl']['verify_peer_name']=false; - $html=file_get_contents('https://developer.a-blogcms.jp/download/', false, stream_context_create($options)); - preg_match('/

(.*)<\/a><\/h1>/',$html,$matches); - - if (is_numeric($matches[2])) { - return "2.10.".$matches[2]; - } else { - return; - } - -} - - -?> - - \ No newline at end of file diff --git a/210x/sakura/readme.txt b/210x/sakura/readme.txt deleted file mode 100755 index a37d7a2..0000000 --- a/210x/sakura/readme.txt +++ /dev/null @@ -1,29 +0,0 @@ -# 簡単セットアップについて - -「簡単セットアップ」を利用すると 10KB程度の PHP ファイルをアップロードして、ブラウザで表示させるだけで a-blog cms のパッケージのダウンロードや ionCube Loader の設定が可能です。 - -## 利用できるサーバー - -* Windows XAMPP -* macOS MAMP -* KDDI ウェブコミュニケーションズ CPI ACE01 -* さくらインターネット レンタルサーバ -* ファーストサーバー Zenlogic -* エックスサーバー -* GMO ペパボ ヘテムル / ロリポップ - -## 利用方法 - -「簡単セットアップ」を利用することで以下の作業を自動化してくれます。 - -1. 利用されるPHPのバージョンに合わせた a-blog cms のパッケージを直接サーバー上にダウンロード -2. ダウンロードした Zipファイルを解凍し、設置先に移動 -3. サーバーにあわせた ionCube Loader を直接ダウンロード -4. ダウンロードした ionCube Loader の Zipファイルを解凍 -5. ionCube Loader 等を利用する設定を php.ini に設定 -6. .htaccess を有効にし、サーバーにあわせた設定 -7. ダウンロードした Zipファイルや、必要のないフォルダの削除 -8. a-blog cms インストーラーを起動 - - - diff --git a/210x/sakura/setup.php b/210x/sakura/setup.php deleted file mode 100755 index 2188c23..0000000 --- a/210x/sakura/setup.php +++ /dev/null @@ -1,336 +0,0 @@ - 0) { - $download = $download71; - $zipAfterDirName = $zipAfterDirName71; -} elseif ($versionArray[0] == 7 && $versionArray[1] == 0) { - $download = $download56; - $zipAfterDirName = $zipAfterDirName56; -} elseif ($versionArray[1] >= 6) { - $download = $download56; - $zipAfterDirName = $zipAfterDirName56; -} elseif ($versionArray[1] == 5) { - $download = $download55; - $zipAfterDirName = $zipAfterDirName55; -} elseif ($versionArray[0] == 5 && $versionArray[1] == 4) { - $download = $download55; - $zipAfterDirName = $zipAfterDirName55; -} elseif ($versionArray[1] == 3) { - $download = $download55; - $zipAfterDirName = $zipAfterDirName55; -} else { - echo "php version check error!"; - exit; -} - -$ablogcmsDir = $installPath."/".$zipAfterDirName."/".$cmsDirName."/"; - -// -------------------------- -// a-blog cms ファイルをダウンロード -// -------------------------- - -$fp = fopen($download, "r"); -if ($fp !== FALSE) { - file_put_contents($zipFile, ""); - while(!feof($fp)) { - $buffer = fread($fp, 4096); - if ($buffer !== FALSE) { - file_put_contents($zipFile, $buffer, FILE_APPEND); - } - } - fclose($fp); -} else { - echo 'a-blog cms download Error ! : '.$download; - exit; -} - -// -------------------------- -// a-blog cms ファイルを解凍 -// -------------------------- - -$zip = new ZipArchive(); -$res = $zip->open($zipFile); - -if($res === true){ - $zip->extractTo($installPath); - $zip->close(); - -} else { - echo 'a-blog cms unZip Error ! : '. $zipFile; - exit; -} - -// -------------------------- -// a-blog cms ディレクトリを移動 -// -------------------------- - -if ($handle = opendir($ablogcmsDir)) { - while(false !== ($entry = readdir($handle))) { - if ($entry != "." && $entry != "..") { - rename($ablogcmsDir.$entry, $installPath ."/". $entry); - } - } - closedir($handle); -} else { - echo 'a-blog cms move Error ! :'.$ablogcmsDir; - exit; -} - - -// -------------------------- -// ioncube ファイルをダウンロード -// -------------------------- - -$fp = fopen($downloadIoncube, "r"); -if ($fp !== FALSE) { - file_put_contents($zipFileIoncube, ""); - while(!feof($fp)) { - $buffer = fread($fp, 4096); - if ($buffer !== FALSE) { - file_put_contents($zipFileIoncube, $buffer, FILE_APPEND); - } - } - fclose($fp); -} else { - echo 'ioncube loader download Error ! : '.$download; - exit; -} - -// -------------------------- -// ioncube ファイルを解凍 -// -------------------------- - -$zip = new ZipArchive(); -$res = $zip->open($zipFileIoncube); - -if($res === true){ - $zip->extractTo($installPath); - $zip->close(); - -} else { - echo 'ioncube loader unZip Error ! : '. $zipFileIoncube; - exit; -} - -// -------------------------- -// php.ini の設定 -// -------------------------- - -$iniFileName = "php.ini"; -$iniData = sprintf("date.timezone = 'Asia/Tokyo'\nzend_extension = \"%s/ioncube/ioncube_loader_fre_%s.so\"",$installPath,$version); -file_put_contents($installPath."/".$iniFileName, $iniData, FILE_APPEND | LOCK_EX); - -# setupディレクトリにも php.ini が必要な時のために -copy($installPath."/php.ini", $installPath."/setup/php.ini"); - -// -------------------------- -// .htaccess の設定 -// -------------------------- - -rename($installPath."/htaccess.txt", $installPath.'/.htaccess'); -rename($installPath."/archives/htaccess.txt", $installPath.'/archives/.htaccess'); -rename($installPath."/archives_rev/htaccess.txt", $installPath.'/archives_rev/.htaccess'); -rename($installPath."/media/htaccess.txt", $installPath.'/media/.htaccess'); -rename($installPath."/private/htaccess.txt", $installPath.'/private/.htaccess'); -rename($installPath."/themes/htaccess.txt", $installPath.'/themes/.htaccess'); - -# RewriteBase を調整 -if (!preg_match("/www$/", $installPath)) { - - if ($_SERVER['DOCUMENT_ROOT'].$_SERVER['SCRIPT_NAME'] != $_SERVER['SCRIPT_FILENAME']) { - - $installDir = str_replace($phpName, "", $_SERVER['SCRIPT_NAME']); - $htaccessFile = $installPath."/.htaccess"; - $data = file_get_contents($htaccessFile); - $data = str_replace("# RewriteBase /", "RewriteBase ".$installDir, $data); - file_put_contents($htaccessFile, $data); - } -} - -// -------------------------- -// DB 初期設定 -// -------------------------- - -$data = sprintf("(.*)<\/a><\/h1>/',$html,$matches); - - if (is_numeric($matches[2])) { - return "2.10.".$matches[2]; - } else { - return; - } - -} diff --git a/210x/update/readme.txt b/210x/update/readme.txt deleted file mode 100755 index 7abc64a..0000000 --- a/210x/update/readme.txt +++ /dev/null @@ -1,32 +0,0 @@ - -# 簡単アップデートについて - -「簡単アップデート」を利用すると 10KB程度の PHP ファイルをアップロードして、ブラウザで表示させるだけで a-blog cms のパッケージのアップデートが可能です。 - -2.8.x にすることで、今後は管理ページから可能です。 2.7.x までの環境でご利用ください。 - - -## 利用できるサーバー - -* どのような環境でも利用可能です。 - - -## 設定方法 - -以下のように設定が空であれば、バージョンを自動で取得します。 - -$ablogcmsVersion = ""; - -利用しているテーマを設定ください。 ( 最初の # を消すと有効になります) -systemはアップデート対象になりますので指定しないでください。 - -#$useThemes = "blog2016"; # "site2015|blog2015"; - - -## 利用方法 - -上記の設定を行った後に、サーバーにアップロードして、ブラウザ上からアクセスしてください。 - -これまでのファイルは backup_yyyymmddhhmmss ディレクトリに移動してバックアップしておいてくれます。 - - diff --git a/210x/update/update.php b/210x/update/update.php deleted file mode 100755 index 8b73aeb..0000000 --- a/210x/update/update.php +++ /dev/null @@ -1,313 +0,0 @@ - 2.10.x update -// -// -------------------------- - -# 今後は、このアップデートを利用することなく管理ページから -# 可能になります。 - -$ablogcmsVersion = ""; #サイトからバージョンを自動チェック - -# ERROR になる場合や 2.10系のバージョンを -# 指定したい場合には、バージョンを設定してください。 - -#$ablogcmsVersion = "2.10.0"; - -// -------------------------- - -# 利用しているテーマを指定します。 -# 複数あれば | で区切って指定してください。 -# 継承しているテーマは全て含まれます。 -# systemはアップデート対象になりますので指定しないでください。 - - -#$useThemes = "blog2016"; # "site2015|blog2015"; - - -// -------------------------- -// 二重実行防止処理 -// -------------------------- - -$lockFile = realpath('.'). "/update.lock"; - -if (is_file($lockFile)) { - echo "lockFile:".$lockFile; - exit; -} else { - touch($lockFile); -} - -// -------------------------- -// 現在の a-blog cms のバージョンをチェック -// -------------------------- - -if (!$ablogcmsVersion) { - $check = download_version_check (); - if ($check) { - $ablogcmsVersion = $check; - } else { - echo "web site version check error."; - exit; - } -} - -// -------------------------- - -# 実行時刻 -$ymdhis = date("YmdHis"); - -# ダウンロード元 URL -$download55 = sprintf("http://developer.a-blogcms.jp/_package/%s/acms%s_update2x_php5.3.zip",$ablogcmsVersion,$ablogcmsVersion); -$download56 = sprintf("http://developer.a-blogcms.jp/_package/%s/acms%s_update2x_php5.6.zip",$ablogcmsVersion,$ablogcmsVersion); -$download71 = sprintf("http://developer.a-blogcms.jp/_package/%s/acms%s_update2x_php7.1.zip",$ablogcmsVersion,$ablogcmsVersion); - -# ダウンロード後のZipファイル名 -$zipFile = sprintf("./acms_%s.zip",$ymdhis); - -# 解凍後の全体フォルダ名 -$zipAfterDirName55 = sprintf("acms%s_update2x_php5.3",$ablogcmsVersion); -$zipAfterDirName56 = sprintf("acms%s_update2x_php5.6",$ablogcmsVersion); -$zipAfterDirName71 = sprintf("acms%s_update2x_php7.1",$ablogcmsVersion); - -# 解凍後の a-blog cms のフォルダ名 -$cmsDirName = "ablogcms"; - -// -------------------------- -// バージョンチェック -// -------------------------- - -$versionArray = explode(".", phpversion()); -$version = $versionArray[0].".".$versionArray[1]; - - -if ($versionArray[0]==7 && $versionArray[1] > 0) { - $download = $download71; - $zipAfterDirName = $zipAfterDirName71; -} elseif ($versionArray[0] == 7 && $versionArray[1] == 0) { - $download = $download56; - $zipAfterDirName = $zipAfterDirName56; -} elseif ($versionArray[1] >= 6) { - $download = $download56; - $zipAfterDirName = $zipAfterDirName56; -} else { - $download = $download55; - $zipAfterDirName = $zipAfterDirName55; -} - -$installPath = realpath('.'); -$ablogcmsDir = $installPath."/".$zipAfterDirName."/".$cmsDirName; -$phpName = basename($_SERVER['PHP_SELF']); - -// -------------------------- -// a-blog cms ファイルをダウンロード -// -------------------------- - -$fp = fopen($download, "r"); -if ($fp !== FALSE) { - file_put_contents($zipFile, ""); - while(!feof($fp)) { - $buffer = fread($fp, 4096); - if ($buffer !== FALSE) { - file_put_contents($zipFile, $buffer, FILE_APPEND); - } - } - fclose($fp); -} else { - echo 'a-blog cms download Error ! : '.$download; - exit; -} - -// -------------------------- -// a-blog cms ファイルを解凍 -// -------------------------- - -$zip = new ZipArchive(); -$res = $zip->open($zipFile); - -if($res === true){ - $zip->extractTo($installPath); - $zip->close(); - -} else { - echo 'a-blog cms unZip Error ! : '. $zipFile; - exit; -} - -// -------------------------- -// バックアップ -// -------------------------- - -$backupDir = "backup_". $ymdhis; - -# バックアップディレクトリを作成 -mkdir($backupDir); - -# ファイルを移動 -if (is_file("./acms.js")) rename("./acms.js", $backupDir."/acms.js"); -if (is_file("./index.js")) rename("./index.js", $backupDir."/index.js"); -if (is_file("./500.html")) rename("./500.html", $backupDir."/500.html"); -rename("./index.php", $backupDir."/index.php"); - -# ディレクトリを移動 - -dir_shori("move", "./js", $backupDir."/js"); -dir_shori("move", "./lang", $backupDir."/lang"); -dir_shori("move", "./php", $backupDir."/php"); -dir_shori("move", "./private", $backupDir."/private"); -dir_shori("move", "./themes", $backupDir."/themes"); - -if (is_dir("./cache")) dir_shori("move", "./cache", $backupDir."/cache"); -if (is_dir("./extension")) dir_shori("move", "./extension", $backupDir."/extension"); - - -// -------------------------- -// update版 ファイル&ディレクトリを移動 -// -------------------------- - -dir_shori("move", $ablogcmsDir, $installPath); - -# 運用中のものを利用するので新しいファイルは削除 -unlink($installPath ."/htaccess.txt"); - -// -------------------------- -// カスタマイズ部分を戻す -// -------------------------- - -# themes を戻す -if (isset($useThemes)) { -if ($handle = opendir($backupDir."/themes")) { - while(false !== ($theme = readdir($handle))) { - if ($theme != "." && $theme != "..") { - if (preg_match("/".$useThemes."/", $theme)) { - if (is_dir("./themes/".$theme)) { - rename ("./themes/".$theme, "./themes/".$theme."_".$ablogcmsVersion); - } - dir_shori ("copy", $backupDir."/themes/".$theme, "./themes/".$theme); - } - } - } - closedir($handle); -} -} - -# /php/ACMS/User を戻す -rename ("./php/ACMS/User","./php/ACMS/User_".$ablogcmsVersion); -dir_shori ("copy", $backupDir."/php/ACMS/User", "./php/ACMS/User"); - -# php/AAPP を戻す -rename ("./php/AAPP", "./php/AAPP_".$ablogcmsVersion); -dir_shori ("copy", $backupDir."/php/AAPP", "./php/AAPP"); - -# /private/config.system.yaml を戻す -rename ("./private/config.system.yaml", "./private/config.system_".$ablogcmsVersion.".yaml"); -copy ($backupDir."/private/config.system.yaml", "./private/config.system.yaml"); - -# /extension を戻す -if (is_dir($backupDir."/extension")) { - rename ("./extension","./extension_".$ablogcmsVersion); - dir_shori ("copy", $backupDir."/extension", "./extension"); -} - -// -------------------------- -// .htaccess の設定 -// -------------------------- -rename("./private/htaccess.txt", './private/.htaccess'); -rename("./themes/htaccess.txt", './themes/.htaccess'); -rename("./cache/htaccess.txt", './cache/.htaccess'); - -// -------------------------- -// php.ini があった時の処理 -// -------------------------- - -if ( is_file( "./php.ini" )) { - copy("./php.ini", "./setup/php.ini"); -} - -// -------------------------- -// ファイルの削除 -// -------------------------- - -unlink($zipFile); -unlink($phpName); - -# プログラム以外のディレクトリを削除 -if ( is_file( "./index.php" )) { - dir_shori("delete", $zipAfterDirName); -} else { - echo "update error!"; - exit; -} - -unlink($lockFile); - -// -------------------------- -// インストーラーに飛ぶ -// -------------------------- - -$jump = str_replace($phpName, "", $_SERVER['SCRIPT_NAME']); -header("Location: " . $jump); - -// -------------------------- -// ディレクトリを操作 function ( move / copy / delete ) -// -------------------------- - -function dir_shori ($shori, $nowDir , $newDir="") { - - if ($shori != "delete") { - if (!is_dir($newDir)) { - mkdir($newDir); - } - } - - if (is_dir($nowDir)) { - if ($handle = opendir($nowDir)) { - while (($file = readdir($handle)) !== false) { - if ($file != "." && $file != "..") { - if ($shori == "copy") { - if (is_dir($nowDir."/".$file)) { - dir_shori("copy", $nowDir."/".$file, $newDir."/".$file); - } else { - copy($nowDir."/".$file, $newDir."/".$file); - } - } elseif ($shori == "move") { - rename($nowDir."/".$file, $newDir."/".$file); - } elseif ($shori == "delete") { - if (filetype($nowDir."/".$file) == "dir") { - dir_shori("delete", $nowDir."/".$file, ""); - } else { - unlink($nowDir."/".$file); - } - } - } - } - closedir($handle); - } - } - - if ($shori == "move" || $shori == "delete") { - rmdir($nowDir); - } - - return true; -} - -function download_version_check () { - - // Version 2.10.x のチェック用 - // 正常にチェックできない場合には 空 でかえす。 - - $options['ssl']['verify_peer']=false; - $options['ssl']['verify_peer_name']=false; - $html=file_get_contents('https://developer.a-blogcms.jp/download/', false, stream_context_create($options)); - preg_match('/

(.*)<\/a><\/h1>/',$html,$matches); - - if (is_numeric($matches[2])) { - return "2.10.".$matches[2]; - } else { - return; - } - -} \ No newline at end of file diff --git a/210x/xampp/readme.txt b/210x/xampp/readme.txt deleted file mode 100755 index 19fbb9c..0000000 --- a/210x/xampp/readme.txt +++ /dev/null @@ -1,30 +0,0 @@ - -# 簡単セットアップについて - -「簡単セットアップ」を利用すると 10KB程度の PHP ファイルをアップロードして、ブラウザで表示させるだけで a-blog cms のパッケージのダウンロードや ionCube Loader の設定が可能です。 - -## 利用できるサーバー - -* Windows XAMPP -* macOS MAMP -* KDDI ウェブコミュニケーションズ CPI ACE01 -* さくらインターネット レンタルサーバ -* ファーストサーバー Zenlogic -* エックスサーバー -* GMO ペパボ ヘテムル / ロリポップ - -## 利用方法 - -「簡単セットアップ」を利用することで以下の作業を自動化してくれます。 - -1. 利用されるPHPのバージョンに合わせた a-blog cms のパッケージを直接サーバー上にダウンロード -2. ダウンロードした Zipファイルを解凍し、設置先に移動 -3. サーバーにあわせた ionCube Loader を直接ダウンロード -4. ダウンロードした ionCube Loader の Zipファイルを解凍 -5. ionCube Loader 等を利用する設定を php.ini に設定 -6. .htaccess を有効にし、サーバーにあわせた設定 -7. ダウンロードした Zipファイルや、必要のないフォルダの削除 -8. a-blog cms インストーラーを起動 - - - diff --git a/210x/xampp/setup.php b/210x/xampp/setup.php deleted file mode 100755 index e91b836..0000000 --- a/210x/xampp/setup.php +++ /dev/null @@ -1,366 +0,0 @@ - - - - -a-blog cms インストーラー (Windows XAMPP版) - - -open($zipFile); - -if($res === true){ - $zip->extractTo($installPath); - $zip->close(); - -} else { - echo 'a-blog cms unZip Error ! : '. $zipFile; - exit; -} - -// -------------------------- -// a-blog cms ディレクトリを移動 -// -------------------------- - -# index.php があった時にリネームしておく -if (is_file("./index.php")) { - rename("./index.php", "_index.php"); -} - -if ($handle = opendir($ablogcmsDir)) { - while(false !== ($entry = readdir($handle))) { - if ($entry != "." && $entry != "..") { - rename($ablogcmsDir.$entry, $installPath ."/". $entry); - } - } - closedir($handle); -} else { - echo 'a-blog cms move Error ! :'.$ablogcmsDir; - exit; -} - -// -------------------------- -// ioncube ファイルをダウンロード -// -------------------------- - -$fp = fopen($downloadIoncube, "r"); -if ($fp !== FALSE) { - file_put_contents($zipFileIoncube, ""); - while(!feof($fp)) { - $buffer = fread($fp, 4096); - if ($buffer !== FALSE) { - file_put_contents($zipFileIoncube, $buffer, FILE_APPEND); - } - } - fclose($fp); -} else { - echo 'ioncube loader download Error ! : '.$download; - exit; -} - -// -------------------------- -// ioncube ファイルを解凍 -// -------------------------- - -$zip = new ZipArchive(); -$res = $zip->open($zipFileIoncube); - -if($res === true){ - $zip->extractTo($installPath); - $zip->close(); - -} else { - echo 'ioncube loader unZip Error ! : '. $zipFileIoncube; - exit; -} - -// -------------------------- -// php.ini の設定 -// -------------------------- - -# php.ini のパスを設定する -$phpiniDir = explode("\htdocs",$installPath); -$iniFile = $phpiniDir[0]."\php\php.ini"; - -# 追記する設定内容 -$iniData = sprintf("\r\n\r\ndate.timezone = 'Asia/Tokyo'\r\n\r\nzend_extension = \"%s\ioncube\ioncube_loader_win_%d.%d.dll\"",$installPath,$versionArray[0],$versionArray[1]); - -$file = file_get_contents($iniFile); - -if (preg_match("/ioncube_loader/i", $file)) { - - # 設定済み - -} else { - $file = fopen( $iniFile, "a+" ); - fwrite( $file, $iniData ); - fclose( $file ); -} - -// -------------------------- -// .htaccess の設定 -// -------------------------- - -if ( is_file($installPath."/htaccess.txt") ) { - rename($installPath."/htaccess.txt", $installPath.'/.htaccess'); -} - -// -------------------------- -// DB 初期設定 -// -------------------------- - -$data = sprintf("XAMPPを再起動して %s にアクセスしてください。

',$jump,$jump); - -// -------------------------- -// ディレクトリを操作 function ( move / copy / delete ) -// -------------------------- - -function dir_shori ($shori, $nowDir , $newDir="") { - - if ($shori != "delete") { - if (!is_dir($newDir)) { - mkdir($newDir); - } - } - - if (is_dir($nowDir)) { - if ($handle = opendir($nowDir)) { - while (($file = readdir($handle)) !== false) { - if ($file != "." && $file != "..") { - if ($shori == "copy") { - if (is_dir($nowDir."/".$file)) { - dir_shori("copy", $nowDir."/".$file, $newDir."/".$file); - } else { - copy($nowDir."/".$file, $newDir."/".$file); - } - } elseif ($shori == "move") { - rename($nowDir."/".$file, $newDir."/".$file); - } elseif ($shori == "delete") { - if (filetype($nowDir."/".$file) == "dir") { - dir_shori("delete", $nowDir."/".$file, ""); - } else { - unlink($nowDir."/".$file); - } - } - } - } - closedir($handle); - } - } - - if ($shori == "move" || $shori == "delete") { - rmdir($nowDir); - } - - return true; -} - -function download_version_check () { - - // Version 2.10.x のチェック用 - // 正常にチェックできない場合には 空 でかえす。 - - $options['ssl']['verify_peer']=false; - $options['ssl']['verify_peer_name']=false; - $html=file_get_contents('https://developer.a-blogcms.jp/download/', false, stream_context_create($options)); - preg_match('/

(.*)<\/a><\/h1>/',$html,$matches); - - if (is_numeric($matches[2])) { - return "2.10.".$matches[2]; - } else { - return; - } - -} - - -?> - - diff --git a/210x/xserver/readme.txt b/210x/xserver/readme.txt deleted file mode 100755 index 19fbb9c..0000000 --- a/210x/xserver/readme.txt +++ /dev/null @@ -1,30 +0,0 @@ - -# 簡単セットアップについて - -「簡単セットアップ」を利用すると 10KB程度の PHP ファイルをアップロードして、ブラウザで表示させるだけで a-blog cms のパッケージのダウンロードや ionCube Loader の設定が可能です。 - -## 利用できるサーバー - -* Windows XAMPP -* macOS MAMP -* KDDI ウェブコミュニケーションズ CPI ACE01 -* さくらインターネット レンタルサーバ -* ファーストサーバー Zenlogic -* エックスサーバー -* GMO ペパボ ヘテムル / ロリポップ - -## 利用方法 - -「簡単セットアップ」を利用することで以下の作業を自動化してくれます。 - -1. 利用されるPHPのバージョンに合わせた a-blog cms のパッケージを直接サーバー上にダウンロード -2. ダウンロードした Zipファイルを解凍し、設置先に移動 -3. サーバーにあわせた ionCube Loader を直接ダウンロード -4. ダウンロードした ionCube Loader の Zipファイルを解凍 -5. ionCube Loader 等を利用する設定を php.ini に設定 -6. .htaccess を有効にし、サーバーにあわせた設定 -7. ダウンロードした Zipファイルや、必要のないフォルダの削除 -8. a-blog cms インストーラーを起動 - - - diff --git a/210x/xserver/setup.php b/210x/xserver/setup.php deleted file mode 100755 index f9415ee..0000000 --- a/210x/xserver/setup.php +++ /dev/null @@ -1,358 +0,0 @@ - 0) { - $download = $download71; - $zipAfterDirName = $zipAfterDirName71; -} elseif ($versionArray[0] == 7 && $versionArray[1] == 0) { - $download = $download56; - $zipAfterDirName = $zipAfterDirName56; -} elseif ($versionArray[1] >= 6) { - $download = $download56; - $zipAfterDirName = $zipAfterDirName56; -} else { - $download = $download55; - $zipAfterDirName = $zipAfterDirName55; -} - -$ablogcmsDir = $installPath."/".$zipAfterDirName."/".$cmsDirName."/"; - -// -------------------------- -// a-blog cms ファイルをダウンロード -// -------------------------- - -$fp = fopen($download, "r"); -if ($fp !== FALSE) { - file_put_contents($zipFile, ""); - while(!feof($fp)) { - $buffer = fread($fp, 4096); - if ($buffer !== FALSE) { - file_put_contents($zipFile, $buffer, FILE_APPEND); - } - } - fclose($fp); -} else { - echo 'a-blog cms download Error ! : '.$download; - exit; -} - -// -------------------------- -// a-blog cms ファイルを解凍 -// -------------------------- - -$zip = new ZipArchive(); -$res = $zip->open($zipFile); - -if($res === true){ - $zip->extractTo($installPath); - $zip->close(); - -} else { - echo 'a-blog cms unZip Error ! : '. $zipFile; - exit; -} - -// -------------------------- -// a-blog cms ディレクトリを移動 -// -------------------------- - -if ($handle = opendir($ablogcmsDir)) { - while(false !== ($entry = readdir($handle))) { - if ($entry != "." && $entry != "..") { - rename($ablogcmsDir.$entry, $installPath ."/". $entry); - } - } - closedir($handle); -} else { - echo 'a-blog cms move Error ! :'.$ablogcmsDir; - exit; -} - -// -------------------------- -// ioncube ファイルをダウンロード -// -------------------------- - -$fp = fopen($downloadIoncube, "r"); -if ($fp !== FALSE) { - file_put_contents($zipFileIoncube, ""); - while(!feof($fp)) { - $buffer = fread($fp, 4096); - if ($buffer !== FALSE) { - file_put_contents($zipFileIoncube, $buffer, FILE_APPEND); - } - } - fclose($fp); -} else { - echo 'ioncube loader download Error ! : '.$download; - exit; -} - -// -------------------------- -// ioncube ファイルを解凍 -// -------------------------- - -$zip = new ZipArchive(); -$res = $zip->open($zipFileIoncube); - -if($res === true){ - $zip->extractTo($installPath); - $zip->close(); - -} else { - echo 'ioncube loader unZip Error ! : '. $zipFileIoncube; - exit; -} - -// -------------------------- -// php.ini の設定 -// -------------------------- - -$iniFile = php_ini_loaded_file(); - -if (preg_match("/xserver_php/i", $iniFile)) { - # 既存の php.ini に ioncube の設定があるかをチェック - $file = file_get_contents($iniFile); - if (preg_match("/ioncube_loader/i", $file)) { - #設定済み - } else { - - $pattern = '/\[Zend Optimizer\]/'; - $ioncube = sprintf("zend_extension = \"%s/ioncube/ioncube_loader_lin_%s.so\"",$installPath,$version); - $replacement = '[Zend Optimizer]'."\n".$ioncube; - $file = preg_replace($pattern, $replacement, $file); - file_put_contents($iniFile, $file); - } - -} else { - - if (preg_match("/public_html/i", $iniFile)) { - # 既に php.ini が存在しているのでバックアップ。 - rename("./php.ini", './php.ini_backup_'.date("YmdHis")); - } - # php.ini を新規作成 - - $iniFileName = "php.ini"; - $iniData = sprintf("date.timezone = 'Asia/Tokyo'\nzend_extension = \"%s/ioncube/ioncube_loader_lin_5.%d.so\"",$installPath,$versionArray[1]); - file_put_contents($installPath."/".$iniFileName, $iniData, FILE_APPEND | LOCK_EX); - - # setupディレクトリにも php.ini が必要な時のために - copy($installPath."/php.ini", $installPath."/setup/php.ini"); -} - - -// -------------------------- -// .htaccess の設定 -// -------------------------- - -$moto_htaccessFile = ".htaccess"; - -if (is_file($moto_htaccessFile)) { - - $htaccessData = file_get_contents($moto_htaccessFile); - $cms_htaccessData = file_get_contents("htaccess.txt"); - - $file = fopen( "./.htaccess", "w+" ); - fwrite( $file, $htaccessData ); - fwrite( $file, "\n\n".$cms_htaccessData ); - fclose( $file ); - -} else { - rename($installPath."/htaccess.txt", $installPath.'/.htaccess'); -} - -rename($installPath."/archives/htaccess.txt", $installPath.'/archives/.htaccess'); -rename($installPath."/archives_rev/htaccess.txt", $installPath.'/archives_rev/.htaccess'); -rename($installPath."/media/htaccess.txt", $installPath.'/media/.htaccess'); -rename($installPath."/private/htaccess.txt", $installPath.'/private/.htaccess'); -rename($installPath."/themes/htaccess.txt", $installPath.'/themes/.htaccess'); - -// -------------------------- -// ファイルの削除 -// -------------------------- - -unlink($zipFile); -unlink($zipFileIoncube); -unlink($phpName); - -# index.html があった時にリネームしておく -if (is_file("./index.html")) { - rename("./index.html", "_index.html"); -} - -unlink($installPath."/ioncube/loader-wizard.php"); - -# プログラム以外のディレクトリを削除 -dir_shori("delete", $zipAfterDirName); - -// -------------------------- -// インストーラーに飛ぶ -// -------------------------- - -if (preg_match("/public_html/i", $iniFile)) { - $jump = str_replace($phpName, "", $_SERVER['SCRIPT_NAME']); - header("Location: " . $jump); -} else { - -?> - - - - -a-blog cms インストーラー (XSERVER版) - - -%s にアクセスしてエラーが出る場合には、
設定した php.ini の設定が有効になっていません。

',$jump,$jump); - -?> -

コントロールパネルの「php.ini設定のphp.ini直接編集」にアクセスし何も変更せずに保存するか、
しばらく時間をおいてアクセスしてみてください。
設定した php.ini が有効になりインストーラーが起動します。

- - -(.*)<\/a><\/h1>/',$html,$matches); - - if (is_numeric($matches[2])) { - return "2.10.".$matches[2]; - } else { - return; - } - -} - diff --git a/210x/zenlogic/readme.txt b/210x/zenlogic/readme.txt deleted file mode 100755 index 19fbb9c..0000000 --- a/210x/zenlogic/readme.txt +++ /dev/null @@ -1,30 +0,0 @@ - -# 簡単セットアップについて - -「簡単セットアップ」を利用すると 10KB程度の PHP ファイルをアップロードして、ブラウザで表示させるだけで a-blog cms のパッケージのダウンロードや ionCube Loader の設定が可能です。 - -## 利用できるサーバー - -* Windows XAMPP -* macOS MAMP -* KDDI ウェブコミュニケーションズ CPI ACE01 -* さくらインターネット レンタルサーバ -* ファーストサーバー Zenlogic -* エックスサーバー -* GMO ペパボ ヘテムル / ロリポップ - -## 利用方法 - -「簡単セットアップ」を利用することで以下の作業を自動化してくれます。 - -1. 利用されるPHPのバージョンに合わせた a-blog cms のパッケージを直接サーバー上にダウンロード -2. ダウンロードした Zipファイルを解凍し、設置先に移動 -3. サーバーにあわせた ionCube Loader を直接ダウンロード -4. ダウンロードした ionCube Loader の Zipファイルを解凍 -5. ionCube Loader 等を利用する設定を php.ini に設定 -6. .htaccess を有効にし、サーバーにあわせた設定 -7. ダウンロードした Zipファイルや、必要のないフォルダの削除 -8. a-blog cms インストーラーを起動 - - - diff --git a/210x/zenlogic/setup.php b/210x/zenlogic/setup.php deleted file mode 100755 index dbcd3fc..0000000 --- a/210x/zenlogic/setup.php +++ /dev/null @@ -1,243 +0,0 @@ -= 6) { - $download = $download56; - $zipAfterDirName = $zipAfterDirName56; -} else { - $download = $download55; - $zipAfterDirName = $zipAfterDirName55; -} -$ablogcmsDir = $installPath."/".$zipAfterDirName."/".$cmsDirName."/"; - -// -------------------------- -// a-blog cms ファイルをダウンロード -// -------------------------- - -$fp = fopen($download, "r"); -if ($fp !== FALSE) { - file_put_contents($zipFile, ""); - while(!feof($fp)) { - $buffer = fread($fp, 4096); - if ($buffer !== FALSE) { - file_put_contents($zipFile, $buffer, FILE_APPEND); - } - } - fclose($fp); -} else { - echo 'a-blog cms download Error ! : '.$download; - exit; -} - -// -------------------------- -// a-blog cms ファイルを解凍 -// -------------------------- - -$zip = new ZipArchive(); -$res = $zip->open($zipFile); - -if($res === true){ - $zip->extractTo($installPath); - $zip->close(); - -} else { - echo 'a-blog cms unZip Error ! : '. $zipFile; - exit; -} - -// -------------------------- -// a-blog cms ディレクトリを移動 -// -------------------------- - -if ($handle = opendir($ablogcmsDir)) { - while(false !== ($entry = readdir($handle))) { - if ($entry != "." && $entry != "..") { - rename($ablogcmsDir.$entry, $installPath ."/". $entry); - } - } - closedir($handle); -} else { - echo 'a-blog cms move Error ! :'.$ablogcmsDir; - exit; -} - -// -------------------------- -// .htaccess の設定 -// -------------------------- - -rename($installPath."/htaccess.txt", $installPath.'/.htaccess'); -rename($installPath."/archives/htaccess.txt", $installPath.'/archives/.htaccess'); -rename($installPath."/private/htaccess.txt", $installPath.'/private/.htaccess'); - -// -------------------------- -// DB 初期設定 -// -------------------------- - -$data = sprintf("(.*)<\/a><\/h1>/',$html,$matches); - - if (is_numeric($matches[2])) { - return "2.10.".$matches[2]; - } else { - return; - } - -} diff --git a/211x/cpi/readme.txt b/211x/cpi/readme.txt deleted file mode 100755 index 19fbb9c..0000000 --- a/211x/cpi/readme.txt +++ /dev/null @@ -1,30 +0,0 @@ - -# 簡単セットアップについて - -「簡単セットアップ」を利用すると 10KB程度の PHP ファイルをアップロードして、ブラウザで表示させるだけで a-blog cms のパッケージのダウンロードや ionCube Loader の設定が可能です。 - -## 利用できるサーバー - -* Windows XAMPP -* macOS MAMP -* KDDI ウェブコミュニケーションズ CPI ACE01 -* さくらインターネット レンタルサーバ -* ファーストサーバー Zenlogic -* エックスサーバー -* GMO ペパボ ヘテムル / ロリポップ - -## 利用方法 - -「簡単セットアップ」を利用することで以下の作業を自動化してくれます。 - -1. 利用されるPHPのバージョンに合わせた a-blog cms のパッケージを直接サーバー上にダウンロード -2. ダウンロードした Zipファイルを解凍し、設置先に移動 -3. サーバーにあわせた ionCube Loader を直接ダウンロード -4. ダウンロードした ionCube Loader の Zipファイルを解凍 -5. ionCube Loader 等を利用する設定を php.ini に設定 -6. .htaccess を有効にし、サーバーにあわせた設定 -7. ダウンロードした Zipファイルや、必要のないフォルダの削除 -8. a-blog cms インストーラーを起動 - - - diff --git a/211x/cpi/setup.php b/211x/cpi/setup.php deleted file mode 100755 index 643892a..0000000 --- a/211x/cpi/setup.php +++ /dev/null @@ -1,576 +0,0 @@ -open($zipFile); - -if($res === true){ - $zip->extractTo($installPath); - $zip->close(); - -} else { - echo 'a-blog cms unZip Error ! : '. $zipFile; - exit; -} - -// -------------------------- -// a-blog cms ディレクトリを移動 -// -------------------------- - -if ($handle = opendir($ablogcmsDir)) { - while(false !== ($entry = readdir($handle))) { - if ($entry != "." && $entry != "..") { - rename($ablogcmsDir.$entry, $installPath ."/". $entry); - } - } - closedir($handle); -} else { - echo 'a-blog cms move Error ! :'.$ablogcmsDir; - exit; -} - - -// -------------------------- -// ioncube ファイルをダウンロード -// -------------------------- - -$fp = fopen($downloadIoncube, "r"); -if ($fp !== FALSE) { - file_put_contents($zipFileIoncube, ""); - while(!feof($fp)) { - $buffer = fread($fp, 4096); - if ($buffer !== FALSE) { - file_put_contents($zipFileIoncube, $buffer, FILE_APPEND); - } - } - fclose($fp); -} else { - echo 'ioncube loader download Error ! : '.$download; - exit; -} - -// -------------------------- -// ioncube ファイルを解凍 -// -------------------------- - -$zip = new ZipArchive(); -$res = $zip->open($zipFileIoncube); - -if($res === true){ - $zip->extractTo($installPath); - $zip->close(); - -} else { - echo 'ioncube loader unZip Error ! : '. $zipFileIoncube; - exit; -} - -// -------------------------- -// php.ini の設定 -// -------------------------- - -$iniFileName = "php.ini"; -$iniData = sprintf("date.timezone = 'Asia/Tokyo'\nzend_extension = \"%s/ioncube/ioncube_loader_fre_%s.so\"",$installPath,$ioncubePhpVersion); -file_put_contents($installPath."/".$iniFileName, $iniData, FILE_APPEND | LOCK_EX); - -# setupディレクトリにも php.ini が必要な時のために -copy($installPath."/php.ini", $installPath."/setup/php.ini"); - - - -// -------------------------- -// .htaccess の設定 -// -------------------------- - -rename($installPath."/htaccess.txt", $installPath.'/.htaccess'); -rename($installPath."/archives/htaccess.txt", $installPath.'/archives/.htaccess'); -rename($installPath."/archives_rev/htaccess.txt", $installPath.'/archives_rev/.htaccess'); -rename($installPath."/media/htaccess.txt", $installPath.'/media/.htaccess'); -rename($installPath."/private/htaccess.txt", $installPath.'/private/.htaccess'); -rename($installPath."/themes/htaccess.txt", $installPath.'/themes/.htaccess'); - -$htaccess = file_get_contents($installPath."/.htaccess"); - -$new = sprintf(" -deny from all - -Options +SymLinksIfOwnerMatch -AddHandler x-httpd-php%s .php\n\n",$phpVersion); - -$fp = fopen($installPath."/.htaccess",'w'); -fwrite($fp,$new.$htaccess); -fclose($fp); - -// -------------------------- -// DB 初期設定 -// -------------------------- - -if ($mysql_version == "5.6") { - $dbHost .= ":3307"; -} - -$data = sprintf("open($zipThemeFile); - - if($res === true){ - $zip->extractTo($installPath); - $zip->close(); - - } else { - echo 'theme unZip Error ! : '. $zipThemeFile; - exit; - } - - dir_shori("move", "./".$theme_name."/bin/".$theme_name, "./setup/bin/".$theme_name); - dir_shori("move", "./".$theme_name."/themes/".$theme_name, "./themes/".$theme_name); - - rename("./".$theme_name."/tpl/install.html", "./setup/tpl/install.html"); - rename("./".$theme_name."/img/".$theme_name.".jpg", "./setup/img/".$theme_name.".jpg"); - - dir_shori ("delete", $theme_name); - unlink($zipThemeFile); - -} - -// -------------------------- -// インストーラーに飛ぶ -// -------------------------- - -$jump = str_replace($phpName, "", $_SERVER['SCRIPT_NAME']); -header("Location: " . $jump); - -// -------------------------- -// ディレクトリを削除する function -// -------------------------- - -function rrmdir($dir) { - if (is_dir($dir)) { - $objects = scandir($dir); - foreach ($objects as $object) { - if ($object != "." && $object != "..") { - if (filetype($dir."/".$object) == "dir") rrmdir($dir."/".$object); else unlink($dir."/".$object); - } - } - reset($objects); - rmdir($dir); - } -} - -// -------------------------- -// ディレクトリを操作 function ( move / copy / delete ) -// -------------------------- - -function dir_shori ($shori, $nowDir , $newDir="") { - - if ($shori != "delete") { - if (!is_dir($newDir)) { - mkdir($newDir); - } - } - - if (is_dir($nowDir)) { - if ($handle = opendir($nowDir)) { - while (($file = readdir($handle)) !== false) { - if ($file != "." && $file != "..") { - if ($shori == "copy") { - if (is_dir($nowDir."/".$file)) { - dir_shori("copy", $nowDir."/".$file, $newDir."/".$file); - } else { - copy($nowDir."/".$file, $newDir."/".$file); - } - } elseif ($shori == "move") { - rename($nowDir."/".$file, $newDir."/".$file); - } elseif ($shori == "delete") { - if (filetype($nowDir."/".$file) == "dir") { - dir_shori("delete", $nowDir."/".$file, ""); - } else { - unlink($nowDir."/".$file); - } - } - } - } - closedir($handle); - } - } - - if ($shori == "move" || $shori == "delete") { - rmdir($nowDir); - } - - return true; -} - -function download_version_check () { - - // Version 2.11.x のチェック用 - // 正常にチェックできない場合には 空 でかえす。 - - $options['ssl']['verify_peer']=false; - $options['ssl']['verify_peer_name']=false; - $html=file_get_contents('https://developer.a-blogcms.jp/download/', false, stream_context_create($options)); - preg_match('/

(.*)<\/a><\/h1>/',$html,$matches); - - if (is_numeric($matches[2])) { - return "2.11.".$matches[2]; - } else { - return; - } - -} \ No newline at end of file diff --git a/211x/heteml/readme.txt b/211x/heteml/readme.txt deleted file mode 100755 index 19fbb9c..0000000 --- a/211x/heteml/readme.txt +++ /dev/null @@ -1,30 +0,0 @@ - -# 簡単セットアップについて - -「簡単セットアップ」を利用すると 10KB程度の PHP ファイルをアップロードして、ブラウザで表示させるだけで a-blog cms のパッケージのダウンロードや ionCube Loader の設定が可能です。 - -## 利用できるサーバー - -* Windows XAMPP -* macOS MAMP -* KDDI ウェブコミュニケーションズ CPI ACE01 -* さくらインターネット レンタルサーバ -* ファーストサーバー Zenlogic -* エックスサーバー -* GMO ペパボ ヘテムル / ロリポップ - -## 利用方法 - -「簡単セットアップ」を利用することで以下の作業を自動化してくれます。 - -1. 利用されるPHPのバージョンに合わせた a-blog cms のパッケージを直接サーバー上にダウンロード -2. ダウンロードした Zipファイルを解凍し、設置先に移動 -3. サーバーにあわせた ionCube Loader を直接ダウンロード -4. ダウンロードした ionCube Loader の Zipファイルを解凍 -5. ionCube Loader 等を利用する設定を php.ini に設定 -6. .htaccess を有効にし、サーバーにあわせた設定 -7. ダウンロードした Zipファイルや、必要のないフォルダの削除 -8. a-blog cms インストーラーを起動 - - - diff --git a/211x/heteml/setup.php b/211x/heteml/setup.php deleted file mode 100755 index 2597533..0000000 --- a/211x/heteml/setup.php +++ /dev/null @@ -1,384 +0,0 @@ -open($zipFile); - -if($res === true){ - $zip->extractTo($installPath); - $zip->close(); - -} else { - echo 'a-blog cms unZip Error ! : '. $zipFile; - exit; -} - -// -------------------------- -// a-blog cms ディレクトリを移動 -// -------------------------- - -if ($handle = opendir($ablogcmsDir)) { - while(false !== ($entry = readdir($handle))) { - if ($entry != "." && $entry != "..") { - rename($ablogcmsDir.$entry, $installPath ."/". $entry); - } - } - closedir($handle); -} else { - echo 'a-blog cms move Error ! :'.$ablogcmsDir; - exit; -} - -// -------------------------- -// .htaccess の設定 -// -------------------------- - -if (is_file($installPath."/.htaccess")) { - # .htaccess があった場合にはバックアップ - rename($installPath."/.htaccess", $installPath.'/.htaccess_backup'.date("YmdHis")); -} - -rename($installPath."/htaccess.txt", $installPath.'/.htaccess'); - -if ($htaccessPlus != "") { - $htaccess = file_get_contents($installPath.'/.htaccess'); - $htaccess = $htaccessPlus . "\n\n" . $htaccess; - file_put_contents($installPath.'/.htaccess', $htaccess); -} - -rename($installPath."/archives/htaccess.txt", $installPath.'/archives/.htaccess'); -rename($installPath."/archives_rev/htaccess.txt", $installPath.'/archives_rev/.htaccess'); -rename($installPath."/media/htaccess.txt", $installPath.'/media/.htaccess'); -rename($installPath."/private/htaccess.txt", $installPath.'/private/.htaccess'); -rename($installPath."/themes/htaccess.txt", $installPath.'/themes/.htaccess'); - -// -------------------------- -// DB 初期設定 -// -------------------------- - -$data = sprintf("open($zipThemeFile); - - if($res === true){ - $zip->extractTo($installPath); - $zip->close(); - - } else { - echo 'theme unZip Error ! : '. $zipThemeFile; - exit; - } - - dir_shori("move", "./".$theme_name."/bin/".$theme_name, "./setup/bin/".$theme_name); - dir_shori("move", "./".$theme_name."/themes/".$theme_name, "./themes/".$theme_name); - - rename("./".$theme_name."/tpl/install.html", "./setup/tpl/install.html"); - rename("./".$theme_name."/img/".$theme_name.".jpg", "./setup/img/".$theme_name.".jpg"); - - dir_shori ("delete", $theme_name); - unlink($zipThemeFile); - -} - -// -------------------------- -// インストーラーに飛ぶ -// -------------------------- - -$jump = str_replace($phpName, "", $_SERVER['SCRIPT_NAME']); -header("Location: " . $jump); - - -// -------------------------- -// ディレクトリを操作 function ( move / copy / delete ) -// -------------------------- -function dir_shori ($shori, $nowDir , $newDir="") { - if ($shori != "delete") { - if (!is_dir($newDir)) { - mkdir($newDir); - } - } - if (is_dir($nowDir)) { - if ($handle = opendir($nowDir)) { - while (($file = readdir($handle)) !== false) { - if ($file != "." && $file != "..") { - if ($shori == "copy") { - if (is_dir($nowDir."/".$file)) { - dir_shori("copy", $nowDir."/".$file, $newDir."/".$file); - } else { - copy($nowDir."/".$file, $newDir."/".$file); - } - } elseif ($shori == "move") { - rename($nowDir."/".$file, $newDir."/".$file); - } elseif ($shori == "delete") { - if (filetype($nowDir."/".$file) == "dir") { - dir_shori("delete", $nowDir."/".$file, ""); - } else { - unlink($nowDir."/".$file); - } - } - } - } - closedir($handle); - } - } - if ($shori == "move" || $shori == "delete") { - rmdir($nowDir); - } - return true; -} - -function download_version_check () { - - // Version 2.11.x のチェック用 - // 正常にチェックできない場合には 空 でかえす。 - - $options['ssl']['verify_peer']=false; - $options['ssl']['verify_peer_name']=false; - $html=file_get_contents('https://developer.a-blogcms.jp/download/', false, stream_context_create($options)); - preg_match('/

(.*)<\/a><\/h1>/',$html,$matches); - - if (is_numeric($matches[2])) { - return "2.11.".$matches[2]; - } else { - return; - } - -} diff --git a/211x/lolipop/readme.txt b/211x/lolipop/readme.txt deleted file mode 100755 index 19fbb9c..0000000 --- a/211x/lolipop/readme.txt +++ /dev/null @@ -1,30 +0,0 @@ - -# 簡単セットアップについて - -「簡単セットアップ」を利用すると 10KB程度の PHP ファイルをアップロードして、ブラウザで表示させるだけで a-blog cms のパッケージのダウンロードや ionCube Loader の設定が可能です。 - -## 利用できるサーバー - -* Windows XAMPP -* macOS MAMP -* KDDI ウェブコミュニケーションズ CPI ACE01 -* さくらインターネット レンタルサーバ -* ファーストサーバー Zenlogic -* エックスサーバー -* GMO ペパボ ヘテムル / ロリポップ - -## 利用方法 - -「簡単セットアップ」を利用することで以下の作業を自動化してくれます。 - -1. 利用されるPHPのバージョンに合わせた a-blog cms のパッケージを直接サーバー上にダウンロード -2. ダウンロードした Zipファイルを解凍し、設置先に移動 -3. サーバーにあわせた ionCube Loader を直接ダウンロード -4. ダウンロードした ionCube Loader の Zipファイルを解凍 -5. ionCube Loader 等を利用する設定を php.ini に設定 -6. .htaccess を有効にし、サーバーにあわせた設定 -7. ダウンロードした Zipファイルや、必要のないフォルダの削除 -8. a-blog cms インストーラーを起動 - - - diff --git a/211x/lolipop/setup.php b/211x/lolipop/setup.php deleted file mode 100755 index 711c685..0000000 --- a/211x/lolipop/setup.php +++ /dev/null @@ -1,339 +0,0 @@ - - - - -a-blog cms インストーラー (ロリポップ版) - - -最新版の a-blog cms のバージョンを取得できませんでした。

'; - exit; - } -} - - -// -------------------------- - -# ダウンロード元 URL -$download55 = sprintf("http://developer.a-blogcms.jp/_package/%s/acms%s_php5.3.zip",$ablogcmsVersion,$ablogcmsVersion); -$download56 = sprintf("http://developer.a-blogcms.jp/_package/%s/acms%s_php5.6.zip",$ablogcmsVersion,$ablogcmsVersion); -$download71 = sprintf("http://developer.a-blogcms.jp/_package/%s/acms%s_php7.1.zip",$ablogcmsVersion,$ablogcmsVersion); - -# ダウンロード後のZipファイル名 -$zipFile = "./acms_install.zip"; - -# 解凍後の全体フォルダ名 -$zipAfterDirName55 = sprintf("acms%s_php5.3",$ablogcmsVersion); -$zipAfterDirName56 = sprintf("acms%s_php5.6",$ablogcmsVersion); -$zipAfterDirName71 = sprintf("acms%s_php7.1",$ablogcmsVersion); - -# 解凍後の a-blog cms のフォルダ名 -$cmsDirName = "ablogcms"; - -$installPath = realpath('.'); - -$phpName = basename($_SERVER['PHP_SELF']); - -// -------------------------- -// 動作チェック -// -------------------------- - -if (is_file("./license.php")) { - echo "Installation error. Please use the updated version."; - exit; -} - -// -------------------------- -// バージョンのチェック -// -------------------------- - -$versionArray = explode(".", phpversion()); -$version = $versionArray[0].".".$versionArray[1]; - -if ($versionArray[0] == 7) { - if ($versionArray[1] == 0) { - $download = $download56; - $zipAfterDirName = $zipAfterDirName56; - } else { - $download = $download71; - $zipAfterDirName = $zipAfterDirName71; - } -} elseif ($versionArray[0] == 5 && $versionArray[1] == 6) { - $download = $download56; - $zipAfterDirName = $zipAfterDirName56; -} else { - echo "Please change the version of PHP to CGI version 5.6."; - exit; -} - -$ablogcmsDir = $installPath."/".$zipAfterDirName."/".$cmsDirName."/"; - -// -------------------------- -// a-blog cms ファイルをダウンロード -// -------------------------- - -$fp = fopen($download, "r"); -if ($fp !== FALSE) { - file_put_contents($zipFile, ""); - while(!feof($fp)) { - $buffer = fread($fp, 4096); - if ($buffer !== FALSE) { - file_put_contents($zipFile, $buffer, FILE_APPEND); - } - } - fclose($fp); -} else { - echo 'a-blog cms download Error ! : '.$download; - exit; -} - -// -------------------------- -// a-blog cms ファイルを解凍 -// -------------------------- - -$zip = new ZipArchive(); -$res = $zip->open($zipFile); - -if($res === true){ - $zip->extractTo($installPath); - $zip->close(); - -} else { - echo 'a-blog cms unZip Error ! : '. $zipFile; - exit; -} - -// -------------------------- -// a-blog cms ディレクトリを移動 -// -------------------------- - -if ($handle = opendir($ablogcmsDir)) { - while(false !== ($entry = readdir($handle))) { - if ($entry != "." && $entry != "..") { - rename($ablogcmsDir.$entry, $installPath ."/". $entry); - } - } - closedir($handle); -} else { - echo 'a-blog cms move Error ! :'.$ablogcmsDir; - exit; -} - -// -------------------------- -// .htaccess の設定 -// -------------------------- - -rename($installPath."/htaccess.txt", $installPath.'/.htaccess'); -rename($installPath."/archives/htaccess.txt", $installPath.'/archives/.htaccess'); -rename($installPath."/archives_rev/htaccess.txt", $installPath.'/archives_rev/.htaccess'); -rename($installPath."/media/htaccess.txt", $installPath.'/media/.htaccess'); -rename($installPath."/private/htaccess.txt", $installPath.'/private/.htaccess'); -rename($installPath."/themes/htaccess.txt", $installPath.'/themes/.htaccess'); - -// -------------------------- -// DB 初期設定 -// -------------------------- - -$data = sprintf("open($zipThemeFile); - - if($res === true){ - $zip->extractTo($installPath); - $zip->close(); - - } else { - echo 'theme unZip Error ! : '. $zipThemeFile; - exit; - } - - dir_shori("move", "./".$theme_name."/bin/".$theme_name, "./setup/bin/".$theme_name); - dir_shori("move", "./".$theme_name."/themes/".$theme_name, "./themes/".$theme_name); - - rename("./".$theme_name."/tpl/install.html", "./setup/tpl/install.html"); - rename("./".$theme_name."/img/".$theme_name.".jpg", "./setup/img/".$theme_name.".jpg"); - - dir_shori ("delete", $theme_name); - unlink($zipThemeFile); - -} - -// -------------------------- -// インストーラーに飛ぶ -// -------------------------- - -$jump = str_replace($phpName, "", $_SERVER['SCRIPT_NAME']); -header("Location: " . $jump); - -// -------------------------- -// ディレクトリを操作 function ( move / copy / delete ) -// -------------------------- -function dir_shori ($shori, $nowDir , $newDir="") { - if ($shori != "delete") { - if (!is_dir($newDir)) { - mkdir($newDir); - } - } - if (is_dir($nowDir)) { - if ($handle = opendir($nowDir)) { - while (($file = readdir($handle)) !== false) { - if ($file != "." && $file != "..") { - if ($shori == "copy") { - if (is_dir($nowDir."/".$file)) { - dir_shori("copy", $nowDir."/".$file, $newDir."/".$file); - } else { - copy($nowDir."/".$file, $newDir."/".$file); - } - } elseif ($shori == "move") { - rename($nowDir."/".$file, $newDir."/".$file); - } elseif ($shori == "delete") { - if (filetype($nowDir."/".$file) == "dir") { - dir_shori("delete", $nowDir."/".$file, ""); - } else { - unlink($nowDir."/".$file); - } - } - } - } - closedir($handle); - } - } - if ($shori == "move" || $shori == "delete") { - rmdir($nowDir); - } - return true; -} - -function download_version_check () { - - // Version 2.11.x のチェック用 - // 正常にチェックできない場合には 空 でかえす。 - - $options['ssl']['verify_peer']=false; - $options['ssl']['verify_peer_name']=false; - $html=file_get_contents('https://developer.a-blogcms.jp/download/', false, stream_context_create($options)); - preg_match('/

(.*)<\/a><\/h1>/',$html,$matches); - - if (is_numeric($matches[2])) { - return "2.11.".$matches[2]; - } else { - return; - } - -} - -?> - - \ No newline at end of file diff --git a/211x/mamp/readme.txt b/211x/mamp/readme.txt deleted file mode 100755 index 19fbb9c..0000000 --- a/211x/mamp/readme.txt +++ /dev/null @@ -1,30 +0,0 @@ - -# 簡単セットアップについて - -「簡単セットアップ」を利用すると 10KB程度の PHP ファイルをアップロードして、ブラウザで表示させるだけで a-blog cms のパッケージのダウンロードや ionCube Loader の設定が可能です。 - -## 利用できるサーバー - -* Windows XAMPP -* macOS MAMP -* KDDI ウェブコミュニケーションズ CPI ACE01 -* さくらインターネット レンタルサーバ -* ファーストサーバー Zenlogic -* エックスサーバー -* GMO ペパボ ヘテムル / ロリポップ - -## 利用方法 - -「簡単セットアップ」を利用することで以下の作業を自動化してくれます。 - -1. 利用されるPHPのバージョンに合わせた a-blog cms のパッケージを直接サーバー上にダウンロード -2. ダウンロードした Zipファイルを解凍し、設置先に移動 -3. サーバーにあわせた ionCube Loader を直接ダウンロード -4. ダウンロードした ionCube Loader の Zipファイルを解凍 -5. ionCube Loader 等を利用する設定を php.ini に設定 -6. .htaccess を有効にし、サーバーにあわせた設定 -7. ダウンロードした Zipファイルや、必要のないフォルダの削除 -8. a-blog cms インストーラーを起動 - - - diff --git a/211x/mamp/setup.php b/211x/mamp/setup.php deleted file mode 100755 index 08faecf..0000000 --- a/211x/mamp/setup.php +++ /dev/null @@ -1,430 +0,0 @@ - - - - -a-blog cms インストーラー (MAMP版) - - - 0) { - $download = $download71; - $zipAfterDirName = $zipAfterDirName71; -} elseif ($versionArray[0] == 7 && $versionArray[1] == 0) { - $download = $download56; - $zipAfterDirName = $zipAfterDirName56; -} elseif ($versionArray[1] >= 6) { - $download = $download56; - $zipAfterDirName = $zipAfterDirName56; -} else { - $download = $download55; - $zipAfterDirName = $zipAfterDirName55; -} - -# 解凍後の a-blog cms のフォルダ名 -$cmsDirName = "ablogcms"; - -# ioncube Loader ダウンロード元 URL -$downloadIoncube = "http://downloads.ioncube.com/loader_downloads/ioncube_loaders_mac_x86-64.zip"; - -# ioncube Loader ダウンロード後のZipファイル名 -$zipFileIoncube ="ioncube.zip"; - -$installPath = realpath('.'); - -$phpName = basename($_SERVER['PHP_SELF']); - -$ablogcmsDir = $installPath."/".$zipAfterDirName."/".$cmsDirName."/"; - -$ablogcmsVersionNum = str_replace(".", "", $ablogcmsVersion); - -$mampRestart = ""; - -// -------------------------- -// データベースの設定 -// -------------------------- - -$dbHost = 'localhost'; -$dbName = 'DBacms_'.$ablogcmsVersionNum."_".date(mdHi); -$dbCreate = 'checked'; -$dbUser = 'root'; -$dbPass = 'root'; - -// -------------------------- -// a-blog cms ファイルをダウンロード -// -------------------------- - -$fp = fopen($download, "r"); -if ($fp !== FALSE) { - file_put_contents($zipFile, ""); - while(!feof($fp)) { - $buffer = fread($fp, 4096); - if ($buffer !== FALSE) { - file_put_contents($zipFile, $buffer, FILE_APPEND); - } - } - fclose($fp); -} else { - echo 'a-blog cms download Error ! : '.$download; - exit; -} - -// -------------------------- -// a-blog cms ファイルを解凍 -// -------------------------- - -$zip = new ZipArchive(); -$res = $zip->open($zipFile); - -if($res === true){ - $zip->extractTo($installPath); - $zip->close(); - -} else { - echo 'a-blog cms unZip Error ! : '. $zipFile; - exit; -} - -// -------------------------- -// a-blog cms ディレクトリを移動 -// -------------------------- - -if ($handle = opendir($ablogcmsDir)) { - while(false !== ($entry = readdir($handle))) { - if ($entry != "." && $entry != "..") { - rename($ablogcmsDir.$entry, $installPath ."/". $entry); - } - } - closedir($handle); -} else { - echo 'a-blog cms move Error ! :'.$ablogcmsDir; - exit; -} - -// -------------------------- -// ioncube Loader チェック -// -------------------------- - -$useIonCubeLoader = sprintf("ioncube_loader_mac_%d.%d.so",$versionArray[0],$versionArray[1]); - -if (!is_file(PHP_EXTENSION_DIR."/".$useIonCubeLoader)) { - - - // -------------------------- - // ioncube ファイルをダウンロード - // -------------------------- - - $fp = fopen($downloadIoncube, "r"); - if ($fp !== FALSE) { - file_put_contents($zipFileIoncube, ""); - while(!feof($fp)) { - $buffer = fread($fp, 4096); - if ($buffer !== FALSE) { - file_put_contents($zipFileIoncube, $buffer, FILE_APPEND); - } - } - fclose($fp); - } else { - echo 'ioncube loader download Error ! : '.$download; - exit; - } - - // -------------------------- - // ioncube Loader ファイルを解凍 - // -------------------------- - - $zip = new ZipArchive(); - $res = $zip->open($zipFileIoncube); - - if($res === true){ - $zip->extractTo($installPath); - $zip->close(); - - } else { - echo 'ioncube loader unZip Error ! : '. $zipFileIoncube; - exit; - } - - // -------------------------- - // ioncube Loader ファイルを移動 - // -------------------------- - - rename("./ioncube/".$useIonCubeLoader, PHP_EXTENSION_DIR."/".$useIonCubeLoader); - - // -------------------------- - // php.ini の設定 - // -------------------------- - - # MAMP の php.ini のパスを設定する - $iniFile = "/Applications/MAMP/bin/php/php".phpversion()."/conf/php.ini"; - - # 追記する設定内容 - $iniData = sprintf("\n\ndate.timezone = 'Asia/Tokyo'\n\nzend_extension = \"%s/ioncube_loader_mac_%d.%d.so\"",PHP_EXTENSION_DIR ,$versionArray[0],$versionArray[1]); - - $file = file_get_contents($iniFile); - - if (preg_match("/ioncube_loader/i", $file)) { - - # 設定済み - - } else { - $file = fopen( $iniFile, "a+" ); - fwrite( $file, $iniData ); - fclose( $file ); - } - - $mampRestart = "MAMPを再起動して "; - -} - - -// -------------------------- -// .htaccess の設定 -// -------------------------- - -rename("./htaccess.txt", './.htaccess'); -#rename("./archives/htaccess.txt", './archives/.htaccess'); -#rename("./archives_rev/htaccess.txt", './archives_rev/.htaccess'); -#rename("./private/htaccess.txt", './private/.htaccess'); -#rename("./media/htaccess.txt", './media/.htaccess'); -#rename("./theme/htaccess.txt", './theme/.htaccess'); - -// -------------------------- -// DB 初期設定 -// -------------------------- - -$data = sprintf("open($zipThemeFile); - - if($res === true){ - $zip->extractTo($installPath); - $zip->close(); - - } else { - echo 'theme unZip Error ! : '. $zipThemeFile; - exit; - } - - dir_shori("move", "./".$theme_name."/bin/".$theme_name, "./setup/bin/".$theme_name); - dir_shori("move", "./".$theme_name."/themes/".$theme_name, "./themes/".$theme_name); - - rename("./".$theme_name."/tpl/install.html", "./setup/tpl/install.html"); - rename("./".$theme_name."/img/".$theme_name.".jpg", "./setup/img/".$theme_name.".jpg"); - - dir_shori ("delete", $theme_name); - unlink($zipThemeFile); - -} - - -// -------------------------- -// インストーラーに飛ぶ -// -------------------------- - -echo sprintf('

a-blog cms Ver %s ( php %s ) をインストールしました。

',$ablogcmsVersion,$version); - -$jump = "http://".$_SERVER['HTTP_HOST'].str_replace($phpName, "", $_SERVER['SCRIPT_NAME']); -echo sprintf('

%s%s にアクセスしてください。

',$mampRestart, $jump, $jump); - -// -------------------------- -// ディレクトリを操作 function ( move / copy / delete ) -// -------------------------- - -function dir_shori ($shori, $nowDir , $newDir="") { - - if ($shori != "delete") { - if (!is_dir($newDir)) { - mkdir($newDir); - } - } - - if (is_dir($nowDir)) { - if ($handle = opendir($nowDir)) { - while (($file = readdir($handle)) !== false) { - if ($file != "." && $file != "..") { - if ($shori == "copy") { - if (is_dir($nowDir."/".$file)) { - dir_shori("copy", $nowDir."/".$file, $newDir."/".$file); - } else { - copy($nowDir."/".$file, $newDir."/".$file); - } - } elseif ($shori == "move") { - rename($nowDir."/".$file, $newDir."/".$file); - } elseif ($shori == "delete") { - if (filetype($nowDir."/".$file) == "dir") { - dir_shori("delete", $nowDir."/".$file, ""); - } else { - unlink($nowDir."/".$file); - } - } - } - } - closedir($handle); - } - } - - if ($shori == "move" || $shori == "delete") { - rmdir($nowDir); - } - - return true; -} - -function download_version_check () { - - // Version 2.11.x のチェック用 - // 正常にチェックできない場合には 空 でかえす。 - - $options['ssl']['verify_peer']=false; - $options['ssl']['verify_peer_name']=false; - $html=file_get_contents('https://developer.a-blogcms.jp/download/', false, stream_context_create($options)); - preg_match('/

(.*)<\/a><\/h1>/',$html,$matches); - - if (is_numeric($matches[2])) { - return "2.11.".$matches[2]; - } else { - return; - } - -} - - -?> - - \ No newline at end of file diff --git a/211x/onamae/readme.txt b/211x/onamae/readme.txt deleted file mode 100755 index d95a118..0000000 --- a/211x/onamae/readme.txt +++ /dev/null @@ -1,31 +0,0 @@ - -# 簡単セットアップについて - -「簡単セットアップ」を利用すると 10KB程度の PHP ファイルをアップロードして、ブラウザで表示させるだけで a-blog cms のパッケージのダウンロードや ionCube Loader の設定が可能です。 - -## 利用できるサーバー - -* Windows XAMPP -* macOS MAMP -* KDDI ウェブコミュニケーションズ CPI / SV-Basic・ACE01 -* さくらインターネット レンタルサーバ -* ファーストサーバー Zenlogic -* エックスサーバー -* GMO ペパボ / ヘテムル・ロリポップ -* お名前ドットコム RSプラン - -## 利用方法 - -「簡単セットアップ」を利用することで以下の作業を自動化してくれます。 - -1. 利用されるPHPのバージョンに合わせた a-blog cms のパッケージを直接サーバー上にダウンロード -2. ダウンロードした Zipファイルを解凍し、設置先に移動 -3. サーバーにあわせた ionCube Loader を直接ダウンロード -4. ダウンロードした ionCube Loader の Zipファイルを解凍 -5. ionCube Loader 等を利用する設定を php.ini に設定 -6. .htaccess を有効にし、サーバーにあわせた設定 -7. ダウンロードした Zipファイルや、必要のないフォルダの削除 -8. a-blog cms インストーラーを起動 - - - diff --git a/211x/onamae/setup.php b/211x/onamae/setup.php deleted file mode 100755 index d0413cf..0000000 --- a/211x/onamae/setup.php +++ /dev/null @@ -1,400 +0,0 @@ - 0) { - $download = $download71; - $zipAfterDirName = $zipAfterDirName71; -} elseif ($versionArray[0] == 7 && $versionArray[1] == 0) { - $download = $download56; - $zipAfterDirName = $zipAfterDirName56; -} elseif ($versionArray[1] >= 6) { - $download = $download56; - $zipAfterDirName = $zipAfterDirName56; -} else { - $download = $download55; - $zipAfterDirName = $zipAfterDirName55; -} - -$ablogcmsDir = $installPath."/".$zipAfterDirName."/".$cmsDirName."/"; - -// -------------------------- -// a-blog cms ファイルをダウンロード -// -------------------------- - -$fp = fopen($download, "r"); -if ($fp !== FALSE) { - file_put_contents($zipFile, ""); - while(!feof($fp)) { - $buffer = fread($fp, 4096); - if ($buffer !== FALSE) { - file_put_contents($zipFile, $buffer, FILE_APPEND); - } - } - fclose($fp); -} else { - echo 'a-blog cms download Error ! : '.$download; - exit; -} - -// -------------------------- -// a-blog cms ファイルを解凍 -// -------------------------- - -$zip = new ZipArchive(); -$res = $zip->open($zipFile); - -if($res === true){ - $zip->extractTo($installPath); - $zip->close(); - -} else { - echo 'a-blog cms unZip Error ! : '. $zipFile; - exit; -} - -// -------------------------- -// a-blog cms ディレクトリを移動 -// -------------------------- - -if ($handle = opendir($ablogcmsDir)) { - while(false !== ($entry = readdir($handle))) { - if ($entry != "." && $entry != "..") { - rename($ablogcmsDir.$entry, $installPath ."/". $entry); - } - } - closedir($handle); -} else { - echo 'a-blog cms move Error ! :'.$ablogcmsDir; - exit; -} - -// -------------------------- -// ioncube ファイルをダウンロード -// -------------------------- - -$fp = fopen($downloadIoncube, "r"); -if ($fp !== FALSE) { - file_put_contents($zipFileIoncube, ""); - while(!feof($fp)) { - $buffer = fread($fp, 4096); - if ($buffer !== FALSE) { - file_put_contents($zipFileIoncube, $buffer, FILE_APPEND); - } - } - fclose($fp); -} else { - echo 'ioncube loader download Error ! : '.$download; - exit; -} - -// -------------------------- -// ioncube ファイルを解凍 -// -------------------------- - -$zip = new ZipArchive(); -$res = $zip->open($zipFileIoncube); - -if($res === true){ - $zip->extractTo($installPath); - $zip->close(); - -} else { - echo 'ioncube loader unZip Error ! : '. $zipFileIoncube; - exit; -} - -// -------------------------- -// php.ini の設定 -// -------------------------- - -$iniFile = php_ini_loaded_file(); - - -# php.ini を新規作成 - -$iniFileName = "php.ini"; -$iniData = sprintf("date.timezone = 'Asia/Tokyo'\nzend_extension = \"%s/ioncube/ioncube_loader_lin_%s.so\"",$installPath,$version); -file_put_contents($installPath."/".$iniFileName, $iniData, FILE_APPEND | LOCK_EX); - - -// -------------------------- -// .htaccess の設定 -// -------------------------- - -$moto_htaccessFile = ".htaccess"; - -if (is_file($moto_htaccessFile)) { - - $htaccessData = file_get_contents($moto_htaccessFile); - $cms_htaccessData = file_get_contents("htaccess.txt"); - - $file = fopen( "./.htaccess", "w+" ); - fwrite( $file, $htaccessData ); - fwrite( $file, "\n\n".$cms_htaccessData ); - fclose( $file ); - -} else { - rename($installPath."/htaccess.txt", $installPath.'/.htaccess'); -} - -rename($installPath."/archives/htaccess.txt", $installPath.'/archives/.htaccess'); -rename($installPath."/archives_rev/htaccess.txt", $installPath.'/archives_rev/.htaccess'); -rename($installPath."/media/htaccess.txt", $installPath.'/media/.htaccess'); -rename($installPath."/private/htaccess.txt", $installPath.'/private/.htaccess'); -rename($installPath."/themes/htaccess.txt", $installPath.'/themes/.htaccess'); - -// -------------------------- -// DB 初期設定 -// -------------------------- - -$data = sprintf("open($zipThemeFile); - - if($res === true){ - $zip->extractTo($installPath); - $zip->close(); - - } else { - echo 'theme unZip Error ! : '. $zipThemeFile; - exit; - } - - dir_shori("move", "./".$theme_name."/bin/".$theme_name, "./setup/bin/".$theme_name); - dir_shori("move", "./".$theme_name."/themes/".$theme_name, "./themes/".$theme_name); - - rename("./".$theme_name."/tpl/install.html", "./setup/tpl/install.html"); - rename("./".$theme_name."/img/".$theme_name.".jpg", "./setup/img/".$theme_name.".jpg"); - - dir_shori ("delete", $theme_name); - unlink($zipThemeFile); - -} - -// -------------------------- -// インストーラーに飛ぶ -// -------------------------- - - -?> - - - - -a-blog cms インストーラー (お名前.com版) - - -%s にアクセスしてエラーが出る場合には、
設定した php.ini の設定が有効になっていません。

',$jump,$jump); - -?> -

コントロールパネルの「高度な設定PHP の php.ini編集」から(内容を編集)ボタンをクリックし、
「上記の注意事項を確認しました」のチェックをクリックして(編集する)ボタンをクリックしてください。

設定した php.ini が有効になりインストーラーが起動します。

- - -(.*)<\/a><\/h1>/',$html,$matches); - - if (is_numeric($matches[2])) { - return "2.11.".$matches[2]; - } else { - return; - } - -} - diff --git a/211x/sakura/readme.txt b/211x/sakura/readme.txt deleted file mode 100755 index a37d7a2..0000000 --- a/211x/sakura/readme.txt +++ /dev/null @@ -1,29 +0,0 @@ -# 簡単セットアップについて - -「簡単セットアップ」を利用すると 10KB程度の PHP ファイルをアップロードして、ブラウザで表示させるだけで a-blog cms のパッケージのダウンロードや ionCube Loader の設定が可能です。 - -## 利用できるサーバー - -* Windows XAMPP -* macOS MAMP -* KDDI ウェブコミュニケーションズ CPI ACE01 -* さくらインターネット レンタルサーバ -* ファーストサーバー Zenlogic -* エックスサーバー -* GMO ペパボ ヘテムル / ロリポップ - -## 利用方法 - -「簡単セットアップ」を利用することで以下の作業を自動化してくれます。 - -1. 利用されるPHPのバージョンに合わせた a-blog cms のパッケージを直接サーバー上にダウンロード -2. ダウンロードした Zipファイルを解凍し、設置先に移動 -3. サーバーにあわせた ionCube Loader を直接ダウンロード -4. ダウンロードした ionCube Loader の Zipファイルを解凍 -5. ionCube Loader 等を利用する設定を php.ini に設定 -6. .htaccess を有効にし、サーバーにあわせた設定 -7. ダウンロードした Zipファイルや、必要のないフォルダの削除 -8. a-blog cms インストーラーを起動 - - - diff --git a/211x/sakura/setup.php b/211x/sakura/setup.php deleted file mode 100755 index a37af0b..0000000 --- a/211x/sakura/setup.php +++ /dev/null @@ -1,397 +0,0 @@ - 0) { - $download = $download71; - $zipAfterDirName = $zipAfterDirName71; -} elseif ($versionArray[0] == 7 && $versionArray[1] == 0) { - $download = $download56; - $zipAfterDirName = $zipAfterDirName56; -} elseif ($versionArray[1] >= 6) { - $download = $download56; - $zipAfterDirName = $zipAfterDirName56; -} elseif ($versionArray[1] == 5) { - $download = $download55; - $zipAfterDirName = $zipAfterDirName55; -} elseif ($versionArray[0] == 5 && $versionArray[1] == 4) { - $download = $download55; - $zipAfterDirName = $zipAfterDirName55; -} elseif ($versionArray[1] == 3) { - $download = $download55; - $zipAfterDirName = $zipAfterDirName55; -} else { - echo "php version check error!"; - exit; -} - -$ablogcmsDir = $installPath."/".$zipAfterDirName."/".$cmsDirName."/"; - -// -------------------------- -// a-blog cms ファイルをダウンロード -// -------------------------- - -$fp = fopen($download, "r"); -if ($fp !== FALSE) { - file_put_contents($zipFile, ""); - while(!feof($fp)) { - $buffer = fread($fp, 4096); - if ($buffer !== FALSE) { - file_put_contents($zipFile, $buffer, FILE_APPEND); - } - } - fclose($fp); -} else { - echo 'a-blog cms download Error ! : '.$download; - exit; -} - -// -------------------------- -// a-blog cms ファイルを解凍 -// -------------------------- - -$zip = new ZipArchive(); -$res = $zip->open($zipFile); - -if($res === true){ - $zip->extractTo($installPath); - $zip->close(); - -} else { - echo 'a-blog cms unZip Error ! : '. $zipFile; - exit; -} - -// -------------------------- -// a-blog cms ディレクトリを移動 -// -------------------------- - -if ($handle = opendir($ablogcmsDir)) { - while(false !== ($entry = readdir($handle))) { - if ($entry != "." && $entry != "..") { - rename($ablogcmsDir.$entry, $installPath ."/". $entry); - } - } - closedir($handle); -} else { - echo 'a-blog cms move Error ! :'.$ablogcmsDir; - exit; -} - - -// -------------------------- -// ioncube ファイルをダウンロード -// -------------------------- - -$fp = fopen($downloadIoncube, "r"); -if ($fp !== FALSE) { - file_put_contents($zipFileIoncube, ""); - while(!feof($fp)) { - $buffer = fread($fp, 4096); - if ($buffer !== FALSE) { - file_put_contents($zipFileIoncube, $buffer, FILE_APPEND); - } - } - fclose($fp); -} else { - echo 'ioncube loader download Error ! : '.$download; - exit; -} - -// -------------------------- -// ioncube ファイルを解凍 -// -------------------------- - -$zip = new ZipArchive(); -$res = $zip->open($zipFileIoncube); - -if($res === true){ - $zip->extractTo($installPath); - $zip->close(); - -} else { - echo 'ioncube loader unZip Error ! : '. $zipFileIoncube; - exit; -} - -// -------------------------- -// php.ini の設定 -// -------------------------- - -$iniFileName = "php.ini"; -$iniData = sprintf("date.timezone = 'Asia/Tokyo'\nzend_extension = \"%s/ioncube/ioncube_loader_fre_%s.so\"",$installPath,$version); -file_put_contents($installPath."/".$iniFileName, $iniData, FILE_APPEND | LOCK_EX); - -# setupディレクトリにも php.ini が必要な時のために -copy($installPath."/php.ini", $installPath."/setup/php.ini"); - -// -------------------------- -// .htaccess の設定 -// -------------------------- - -rename($installPath."/htaccess.txt", $installPath.'/.htaccess'); -rename($installPath."/archives/htaccess.txt", $installPath.'/archives/.htaccess'); -rename($installPath."/archives_rev/htaccess.txt", $installPath.'/archives_rev/.htaccess'); -rename($installPath."/media/htaccess.txt", $installPath.'/media/.htaccess'); -rename($installPath."/private/htaccess.txt", $installPath.'/private/.htaccess'); -rename($installPath."/themes/htaccess.txt", $installPath.'/themes/.htaccess'); - -# RewriteBase を調整 -if (!preg_match("/www$/", $installPath)) { - - if ($_SERVER['DOCUMENT_ROOT'].$_SERVER['SCRIPT_NAME'] != $_SERVER['SCRIPT_FILENAME']) { - - $installDir = str_replace($phpName, "", $_SERVER['SCRIPT_NAME']); - $htaccessFile = $installPath."/.htaccess"; - $data = file_get_contents($htaccessFile); - $data = str_replace("# RewriteBase /", "RewriteBase ".$installDir, $data); - file_put_contents($htaccessFile, $data); - } -} - -// -------------------------- -// DB 初期設定 -// -------------------------- - -$data = sprintf("open($zipThemeFile); - - if($res === true){ - $zip->extractTo($installPath); - $zip->close(); - - } else { - echo 'theme unZip Error ! : '. $zipThemeFile; - exit; - } - - dir_shori("move", "./".$theme_name."/bin/".$theme_name, "./setup/bin/".$theme_name); - dir_shori("move", "./".$theme_name."/themes/".$theme_name, "./themes/".$theme_name); - - rename("./".$theme_name."/tpl/install.html", "./setup/tpl/install.html"); - rename("./".$theme_name."/img/".$theme_name.".jpg", "./setup/img/".$theme_name.".jpg"); - - dir_shori ("delete", $theme_name); - unlink($zipThemeFile); - -} - -// -------------------------- -// インストーラーに飛ぶ -// -------------------------- - -$jump = str_replace($phpName, "", $_SERVER['SCRIPT_NAME']); -header("Location: " . $jump); - -// -------------------------- -// ディレクトリを操作 function ( move / copy / delete ) -// -------------------------- - -function dir_shori ($shori, $nowDir , $newDir="") { - - if ($shori != "delete") { - if (!is_dir($newDir)) { - mkdir($newDir); - } - } - - if (is_dir($nowDir)) { - if ($handle = opendir($nowDir)) { - while (($file = readdir($handle)) !== false) { - if ($file != "." && $file != "..") { - if ($shori == "copy") { - if (is_dir($nowDir."/".$file)) { - dir_shori("copy", $nowDir."/".$file, $newDir."/".$file); - } else { - copy($nowDir."/".$file, $newDir."/".$file); - } - } elseif ($shori == "move") { - rename($nowDir."/".$file, $newDir."/".$file); - } elseif ($shori == "delete") { - if (filetype($nowDir."/".$file) == "dir") { - dir_shori("delete", $nowDir."/".$file, ""); - } else { - unlink($nowDir."/".$file); - } - } - } - } - closedir($handle); - } - } - - if ($shori == "move" || $shori == "delete") { - rmdir($nowDir); - } - - return true; -} - -function download_version_check () { - - // Version 2.11.x のチェック用 - // 正常にチェックできない場合には 空 でかえす。 - - $options['ssl']['verify_peer']=false; - $options['ssl']['verify_peer_name']=false; - $html=file_get_contents('https://developer.a-blogcms.jp/download/', false, stream_context_create($options)); - preg_match('/

(.*)<\/a><\/h1>/',$html,$matches); - - if (is_numeric($matches[2])) { - return "2.11.".$matches[2]; - } else { - return; - } - -} diff --git a/211x/update/readme.txt b/211x/update/readme.txt deleted file mode 100755 index 7abc64a..0000000 --- a/211x/update/readme.txt +++ /dev/null @@ -1,32 +0,0 @@ - -# 簡単アップデートについて - -「簡単アップデート」を利用すると 10KB程度の PHP ファイルをアップロードして、ブラウザで表示させるだけで a-blog cms のパッケージのアップデートが可能です。 - -2.8.x にすることで、今後は管理ページから可能です。 2.7.x までの環境でご利用ください。 - - -## 利用できるサーバー - -* どのような環境でも利用可能です。 - - -## 設定方法 - -以下のように設定が空であれば、バージョンを自動で取得します。 - -$ablogcmsVersion = ""; - -利用しているテーマを設定ください。 ( 最初の # を消すと有効になります) -systemはアップデート対象になりますので指定しないでください。 - -#$useThemes = "blog2016"; # "site2015|blog2015"; - - -## 利用方法 - -上記の設定を行った後に、サーバーにアップロードして、ブラウザ上からアクセスしてください。 - -これまでのファイルは backup_yyyymmddhhmmss ディレクトリに移動してバックアップしておいてくれます。 - - diff --git a/211x/xampp/readme.txt b/211x/xampp/readme.txt deleted file mode 100755 index 19fbb9c..0000000 --- a/211x/xampp/readme.txt +++ /dev/null @@ -1,30 +0,0 @@ - -# 簡単セットアップについて - -「簡単セットアップ」を利用すると 10KB程度の PHP ファイルをアップロードして、ブラウザで表示させるだけで a-blog cms のパッケージのダウンロードや ionCube Loader の設定が可能です。 - -## 利用できるサーバー - -* Windows XAMPP -* macOS MAMP -* KDDI ウェブコミュニケーションズ CPI ACE01 -* さくらインターネット レンタルサーバ -* ファーストサーバー Zenlogic -* エックスサーバー -* GMO ペパボ ヘテムル / ロリポップ - -## 利用方法 - -「簡単セットアップ」を利用することで以下の作業を自動化してくれます。 - -1. 利用されるPHPのバージョンに合わせた a-blog cms のパッケージを直接サーバー上にダウンロード -2. ダウンロードした Zipファイルを解凍し、設置先に移動 -3. サーバーにあわせた ionCube Loader を直接ダウンロード -4. ダウンロードした ionCube Loader の Zipファイルを解凍 -5. ionCube Loader 等を利用する設定を php.ini に設定 -6. .htaccess を有効にし、サーバーにあわせた設定 -7. ダウンロードした Zipファイルや、必要のないフォルダの削除 -8. a-blog cms インストーラーを起動 - - - diff --git a/211x/xampp/setup.php b/211x/xampp/setup.php deleted file mode 100755 index 6f447e0..0000000 --- a/211x/xampp/setup.php +++ /dev/null @@ -1,438 +0,0 @@ - - - - -a-blog cms インストーラー (Windows XAMPP・MAMP両対応版) - - -open($zipFile); - -if($res === true){ - $zip->extractTo($installPath); - $zip->close(); - -} else { - echo 'a-blog cms unZip Error ! : '. $zipFile; - exit; -} - -// -------------------------- -// a-blog cms ディレクトリを移動 -// -------------------------- - -# index.php があった時にリネームしておく -if (is_file("./index.php")) { - rename("./index.php", "_index.php"); -} - -if ($handle = opendir($ablogcmsDir)) { - while(false !== ($entry = readdir($handle))) { - if ($entry != "." && $entry != "..") { - rename($ablogcmsDir.$entry, $installPath ."/". $entry); - } - } - closedir($handle); -} else { - echo 'a-blog cms move Error ! :'.$ablogcmsDir; - exit; -} - -// -------------------------- -// ioncube ファイルをダウンロード -// -------------------------- - -$fp = fopen($downloadIoncube, "r"); -if ($fp !== FALSE) { - file_put_contents($zipFileIoncube, ""); - while(!feof($fp)) { - $buffer = fread($fp, 4096); - if ($buffer !== FALSE) { - file_put_contents($zipFileIoncube, $buffer, FILE_APPEND); - } - } - fclose($fp); -} else { - echo 'ioncube loader download Error ! : '.$download; - exit; -} - -// -------------------------- -// ioncube ファイルを解凍 -// -------------------------- - -$zip = new ZipArchive(); -$res = $zip->open($zipFileIoncube); - -if($res === true){ - $zip->extractTo($installPath); - $zip->close(); - -} else { - echo 'ioncube loader unZip Error ! : '. $zipFileIoncube; - exit; -} - -// -------------------------- -// php.ini の設定 -// -------------------------- - -$phpiniDir = explode("\htdocs",$installPath); -if (preg_match("/MAMP/i", $installPath)) { - $iniFile = $phpiniDir[0]."\conf\php".phpversion()."\php.ini"; - $dbPass = 'root'; - $systemName = "MAMP"; -} else { - $iniFile = $phpiniDir[0]."\php\php.ini"; - $systemName = "XAMPP"; -} - -# 追記する設定内容 -$iniData = sprintf("\r\n\r\ndate.timezone = 'Asia/Tokyo'\r\n\r\nzend_extension = \"%s\ioncube\ioncube_loader_win_%d.%d.dll\"",$installPath,$versionArray[0],$versionArray[1]); - -$file = file_get_contents($iniFile); - -if (preg_match("/ioncube_loader/i", $file)) { - - # 設定済み - -} else { - $file = fopen( $iniFile, "a+" ); - fwrite( $file, $iniData ); - fclose( $file ); -} - -// -------------------------- -// .htaccess の設定 -// -------------------------- - -if ( is_file($installPath."/htaccess.txt") ) { - rename($installPath."/htaccess.txt", $installPath.'/.htaccess'); -} - -// -------------------------- -// DB 初期設定 -// -------------------------- - -$data = sprintf("open($zipThemeFile); - - if($res === true){ - $zip->extractTo($installPath); - $zip->close(); - - } else { - echo 'theme unZip Error ! : '. $zipThemeFile; - exit; - } - - dir_shori("move", "./".$theme_name."/bin/".$theme_name, "./setup/bin/".$theme_name); - dir_shori("move", "./".$theme_name."/themes/".$theme_name, "./themes/".$theme_name); - - rename("./".$theme_name."/tpl/install.html", "./setup/tpl/install.html"); - rename("./".$theme_name."/img/".$theme_name.".jpg", "./setup/img/".$theme_name.".jpg"); - - dir_shori ("delete", $theme_name); - unlink($zipThemeFile); - -} - -// -------------------------- -// インストーラーに飛ぶ -// -------------------------- - -$jump = "http://".$_SERVER['HTTP_HOST'].str_replace($phpName, "", $_SERVER['SCRIPT_NAME']); -echo sprintf('

%sを再起動して %s にアクセスしてください。

',$systemName,$jump,$jump); - -// -------------------------- -// ディレクトリを操作 function ( move / copy / delete ) -// -------------------------- - -function dir_shori ($shori, $nowDir , $newDir="") { - - if ($shori != "delete") { - if (!is_dir($newDir)) { - mkdir($newDir); - } - } - - if (is_dir($nowDir)) { - if ($handle = opendir($nowDir)) { - while (($file = readdir($handle)) !== false) { - if ($file != "." && $file != "..") { - if ($shori == "copy") { - if (is_dir($nowDir."/".$file)) { - dir_shori("copy", $nowDir."/".$file, $newDir."/".$file); - } else { - copy($nowDir."/".$file, $newDir."/".$file); - } - } elseif ($shori == "move") { - rename($nowDir."/".$file, $newDir."/".$file); - } elseif ($shori == "delete") { - if (filetype($nowDir."/".$file) == "dir") { - dir_shori("delete", $nowDir."/".$file, ""); - } else { - unlink($nowDir."/".$file); - } - } - } - } - closedir($handle); - } - } - - if ($shori == "move" || $shori == "delete") { - rmdir($nowDir); - } - - return true; -} - -function download_version_check () { - - // Version 2.11.x のチェック用 - // 正常にチェックできない場合には 空 でかえす。 - - $options['ssl']['verify_peer']=false; - $options['ssl']['verify_peer_name']=false; - $html=file_get_contents('https://developer.a-blogcms.jp/download/', false, stream_context_create($options)); - preg_match('/

(.*)<\/a><\/h1>/',$html,$matches); - - if (is_numeric($matches[2])) { - return "2.11.".$matches[2]; - } else { - return; - } - -} - - -?> - - \ No newline at end of file diff --git a/211x/xserver/readme.txt b/211x/xserver/readme.txt deleted file mode 100755 index 19fbb9c..0000000 --- a/211x/xserver/readme.txt +++ /dev/null @@ -1,30 +0,0 @@ - -# 簡単セットアップについて - -「簡単セットアップ」を利用すると 10KB程度の PHP ファイルをアップロードして、ブラウザで表示させるだけで a-blog cms のパッケージのダウンロードや ionCube Loader の設定が可能です。 - -## 利用できるサーバー - -* Windows XAMPP -* macOS MAMP -* KDDI ウェブコミュニケーションズ CPI ACE01 -* さくらインターネット レンタルサーバ -* ファーストサーバー Zenlogic -* エックスサーバー -* GMO ペパボ ヘテムル / ロリポップ - -## 利用方法 - -「簡単セットアップ」を利用することで以下の作業を自動化してくれます。 - -1. 利用されるPHPのバージョンに合わせた a-blog cms のパッケージを直接サーバー上にダウンロード -2. ダウンロードした Zipファイルを解凍し、設置先に移動 -3. サーバーにあわせた ionCube Loader を直接ダウンロード -4. ダウンロードした ionCube Loader の Zipファイルを解凍 -5. ionCube Loader 等を利用する設定を php.ini に設定 -6. .htaccess を有効にし、サーバーにあわせた設定 -7. ダウンロードした Zipファイルや、必要のないフォルダの削除 -8. a-blog cms インストーラーを起動 - - - diff --git a/211x/xserver/setup.php b/211x/xserver/setup.php deleted file mode 100755 index fdcf9e1..0000000 --- a/211x/xserver/setup.php +++ /dev/null @@ -1,435 +0,0 @@ - 0) { - $download = $download71; - $zipAfterDirName = $zipAfterDirName71; -} elseif ($versionArray[0] == 7 && $versionArray[1] == 0) { - $download = $download56; - $zipAfterDirName = $zipAfterDirName56; -} elseif ($versionArray[1] >= 6) { - $download = $download56; - $zipAfterDirName = $zipAfterDirName56; -} else { - $download = $download55; - $zipAfterDirName = $zipAfterDirName55; -} - -$ablogcmsDir = $installPath."/".$zipAfterDirName."/".$cmsDirName."/"; - -// -------------------------- -// a-blog cms ファイルをダウンロード -// -------------------------- - -$fp = fopen($download, "r"); -if ($fp !== FALSE) { - file_put_contents($zipFile, ""); - while(!feof($fp)) { - $buffer = fread($fp, 4096); - if ($buffer !== FALSE) { - file_put_contents($zipFile, $buffer, FILE_APPEND); - } - } - fclose($fp); -} else { - echo 'a-blog cms download Error ! : '.$download; - exit; -} - -// -------------------------- -// a-blog cms ファイルを解凍 -// -------------------------- - -$zip = new ZipArchive(); -$res = $zip->open($zipFile); - -if($res === true){ - $zip->extractTo($installPath); - $zip->close(); - -} else { - echo 'a-blog cms unZip Error ! : '. $zipFile; - exit; -} - -// -------------------------- -// a-blog cms ディレクトリを移動 -// -------------------------- - -if ($handle = opendir($ablogcmsDir)) { - while(false !== ($entry = readdir($handle))) { - if ($entry != "." && $entry != "..") { - rename($ablogcmsDir.$entry, $installPath ."/". $entry); - } - } - closedir($handle); -} else { - echo 'a-blog cms move Error ! :'.$ablogcmsDir; - exit; -} - -// -------------------------- -// ioncube ファイルをダウンロード -// -------------------------- - -$fp = fopen($downloadIoncube, "r"); -if ($fp !== FALSE) { - file_put_contents($zipFileIoncube, ""); - while(!feof($fp)) { - $buffer = fread($fp, 4096); - if ($buffer !== FALSE) { - file_put_contents($zipFileIoncube, $buffer, FILE_APPEND); - } - } - fclose($fp); -} else { - echo 'ioncube loader download Error ! : '.$download; - exit; -} - -// -------------------------- -// ioncube ファイルを解凍 -// -------------------------- - -$zip = new ZipArchive(); -$res = $zip->open($zipFileIoncube); - -if($res === true){ - $zip->extractTo($installPath); - $zip->close(); - -} else { - echo 'ioncube loader unZip Error ! : '. $zipFileIoncube; - exit; -} - -// -------------------------- -// php.ini の設定 -// -------------------------- - -$iniFile = php_ini_loaded_file(); - -if (preg_match("/xserver_php/i", $iniFile)) { - # 既存の php.ini に ioncube の設定があるかをチェック - $file = file_get_contents($iniFile); - if (preg_match("/ioncube_loader/i", $file)) { - #設定済み - } else { - - $pattern = '/\[Zend Optimizer\]/'; - $ioncube = sprintf("zend_extension = \"%s/ioncube/ioncube_loader_lin_%s.so\"",$installPath,$version); - $replacement = '[Zend Optimizer]'."\n".$ioncube; - $file = preg_replace($pattern, $replacement, $file); - file_put_contents($iniFile, $file); - } - -} else { - - if (preg_match("/public_html/i", $iniFile)) { - # 既に php.ini が存在しているのでバックアップ。 - rename("./php.ini", './php.ini_backup_'.date("YmdHis")); - } - # php.ini を新規作成 - - $iniFileName = "php.ini"; - $iniData = sprintf("date.timezone = 'Asia/Tokyo'\nzend_extension = \"%s/ioncube/ioncube_loader_lin_5.%d.so\"",$installPath,$versionArray[1]); - file_put_contents($installPath."/".$iniFileName, $iniData, FILE_APPEND | LOCK_EX); - - # setupディレクトリにも php.ini が必要な時のために - copy($installPath."/php.ini", $installPath."/setup/php.ini"); -} - - -// -------------------------- -// .htaccess の設定 -// -------------------------- - -$moto_htaccessFile = ".htaccess"; - -if (is_file($moto_htaccessFile)) { - - $htaccessData = file_get_contents($moto_htaccessFile); - $cms_htaccessData = file_get_contents("htaccess.txt"); - - $file = fopen( "./.htaccess", "w+" ); - fwrite( $file, $htaccessData ); - fwrite( $file, "\n\n".$cms_htaccessData ); - fclose( $file ); - -} else { - rename($installPath."/htaccess.txt", $installPath.'/.htaccess'); -} - -rename($installPath."/archives/htaccess.txt", $installPath.'/archives/.htaccess'); -rename($installPath."/archives_rev/htaccess.txt", $installPath.'/archives_rev/.htaccess'); -rename($installPath."/media/htaccess.txt", $installPath.'/media/.htaccess'); -rename($installPath."/private/htaccess.txt", $installPath.'/private/.htaccess'); -rename($installPath."/themes/htaccess.txt", $installPath.'/themes/.htaccess'); - -// -------------------------- -// DB 初期設定 -// -------------------------- - -$data = sprintf("open($zipThemeFile); - - if($res === true){ - $zip->extractTo($installPath); - $zip->close(); - - } else { - echo 'theme unZip Error ! : '. $zipThemeFile; - exit; - } - - dir_shori("move", "./".$theme_name."/bin/".$theme_name, "./setup/bin/".$theme_name); - dir_shori("move", "./".$theme_name."/themes/".$theme_name, "./themes/".$theme_name); - - rename("./".$theme_name."/tpl/install.html", "./setup/tpl/install.html"); - rename("./".$theme_name."/img/".$theme_name.".jpg", "./setup/img/".$theme_name.".jpg"); - - dir_shori ("delete", $theme_name); - unlink($zipThemeFile); - -} - -// -------------------------- -// インストーラーに飛ぶ -// -------------------------- - -if (preg_match("/public_html/i", $iniFile)) { - $jump = str_replace($phpName, "", $_SERVER['SCRIPT_NAME']); - header("Location: " . $jump); -} else { - -?> - - - - -a-blog cms インストーラー (XSERVER版) - - -%s にアクセスしてエラーが出る場合には、
設定した php.ini の設定が有効になっていません。

',$jump,$jump); - -?> -

コントロールパネルの「php.ini設定のphp.ini直接編集」にアクセスし何も変更せずに保存するか、
しばらく時間をおいてアクセスしてみてください。
設定した php.ini が有効になりインストーラーが起動します。

- - -(.*)<\/a><\/h1>/',$html,$matches); - - if (is_numeric($matches[2])) { - return "2.11.".$matches[2]; - } else { - return; - } - -} - diff --git a/211x/zenlogic/readme.txt b/211x/zenlogic/readme.txt deleted file mode 100755 index 19fbb9c..0000000 --- a/211x/zenlogic/readme.txt +++ /dev/null @@ -1,30 +0,0 @@ - -# 簡単セットアップについて - -「簡単セットアップ」を利用すると 10KB程度の PHP ファイルをアップロードして、ブラウザで表示させるだけで a-blog cms のパッケージのダウンロードや ionCube Loader の設定が可能です。 - -## 利用できるサーバー - -* Windows XAMPP -* macOS MAMP -* KDDI ウェブコミュニケーションズ CPI ACE01 -* さくらインターネット レンタルサーバ -* ファーストサーバー Zenlogic -* エックスサーバー -* GMO ペパボ ヘテムル / ロリポップ - -## 利用方法 - -「簡単セットアップ」を利用することで以下の作業を自動化してくれます。 - -1. 利用されるPHPのバージョンに合わせた a-blog cms のパッケージを直接サーバー上にダウンロード -2. ダウンロードした Zipファイルを解凍し、設置先に移動 -3. サーバーにあわせた ionCube Loader を直接ダウンロード -4. ダウンロードした ionCube Loader の Zipファイルを解凍 -5. ionCube Loader 等を利用する設定を php.ini に設定 -6. .htaccess を有効にし、サーバーにあわせた設定 -7. ダウンロードした Zipファイルや、必要のないフォルダの削除 -8. a-blog cms インストーラーを起動 - - - diff --git a/211x/zenlogic/setup.php b/211x/zenlogic/setup.php deleted file mode 100755 index 7b53b91..0000000 --- a/211x/zenlogic/setup.php +++ /dev/null @@ -1,307 +0,0 @@ - 0 && $versionArray[1] < 4) { - $download = $download71; - $zipAfterDirName = $zipAfterDirName71; -} elseif ($versionArray[0] == 7 && $versionArray[1] == 0) { - $download = $download56; - $zipAfterDirName = $zipAfterDirName56; -} elseif ($versionArray[1] >= 6) { - $download = $download56; - $zipAfterDirName = $zipAfterDirName56; -} else { - $download = $download55; - $zipAfterDirName = $zipAfterDirName55; -} -$ablogcmsDir = $installPath."/".$zipAfterDirName."/".$cmsDirName."/"; - -// -------------------------- -// a-blog cms ファイルをダウンロード -// -------------------------- - -$fp = fopen($download, "r"); -if ($fp !== FALSE) { - file_put_contents($zipFile, ""); - while(!feof($fp)) { - $buffer = fread($fp, 4096); - if ($buffer !== FALSE) { - file_put_contents($zipFile, $buffer, FILE_APPEND); - } - } - fclose($fp); -} else { - echo 'a-blog cms download Error ! : '.$download; - exit; -} - -// -------------------------- -// a-blog cms ファイルを解凍 -// -------------------------- - -$zip = new ZipArchive(); -$res = $zip->open($zipFile); - -if($res === true){ - $zip->extractTo($installPath); - $zip->close(); - -} else { - echo 'a-blog cms unZip Error ! : '. $zipFile; - exit; -} - -// -------------------------- -// a-blog cms ディレクトリを移動 -// -------------------------- - -if ($handle = opendir($ablogcmsDir)) { - while(false !== ($entry = readdir($handle))) { - if ($entry != "." && $entry != "..") { - rename($ablogcmsDir.$entry, $installPath ."/". $entry); - } - } - closedir($handle); -} else { - echo 'a-blog cms move Error ! :'.$ablogcmsDir; - exit; -} - -// -------------------------- -// .htaccess の設定 -// -------------------------- - -rename($installPath."/htaccess.txt", $installPath.'/.htaccess'); -rename($installPath."/archives/htaccess.txt", $installPath.'/archives/.htaccess'); -rename($installPath."/private/htaccess.txt", $installPath.'/private/.htaccess'); - -// -------------------------- -// DB 初期設定 -// -------------------------- - -$data = sprintf("open($zipThemeFile); - - if($res === true){ - $zip->extractTo($installPath); - $zip->close(); - - } else { - echo 'theme unZip Error ! : '. $zipThemeFile; - exit; - } - - dir_shori("move", "./".$theme_name."/bin/".$theme_name, "./setup/bin/".$theme_name); - dir_shori("move", "./".$theme_name."/themes/".$theme_name, "./themes/".$theme_name); - - rename("./".$theme_name."/tpl/install.html", "./setup/tpl/install.html"); - rename("./".$theme_name."/img/".$theme_name.".jpg", "./setup/img/".$theme_name.".jpg"); - - dir_shori ("delete", $theme_name); - unlink($zipThemeFile); - -} - -// -------------------------- -// インストーラーに飛ぶ -// -------------------------- - -$jump = str_replace($phpName, "", $_SERVER['SCRIPT_NAME']); -header("Location: " . $jump); - -// -------------------------- -// ディレクトリを操作 function ( move / copy / delete ) -// -------------------------- -function dir_shori ($shori, $nowDir , $newDir="") { - if ($shori != "delete") { - if (!is_dir($newDir)) { - mkdir($newDir); - } - } - if (is_dir($nowDir)) { - if ($handle = opendir($nowDir)) { - while (($file = readdir($handle)) !== false) { - if ($file != "." && $file != "..") { - if ($shori == "copy") { - if (is_dir($nowDir."/".$file)) { - dir_shori("copy", $nowDir."/".$file, $newDir."/".$file); - } else { - copy($nowDir."/".$file, $newDir."/".$file); - } - } elseif ($shori == "move") { - rename($nowDir."/".$file, $newDir."/".$file); - } elseif ($shori == "delete") { - if (filetype($nowDir."/".$file) == "dir") { - dir_shori("delete", $nowDir."/".$file, ""); - } else { - unlink($nowDir."/".$file); - } - } - } - } - closedir($handle); - } - } - if ($shori == "move" || $shori == "delete") { - rmdir($nowDir); - } - return true; -} - -function download_version_check () { - - // Version 2.11x のチェック用 - // 正常にチェックできない場合には 空 でかえす。 - - $options['ssl']['verify_peer']=false; - $options['ssl']['verify_peer_name']=false; - $html=file_get_contents('https://developer.a-blogcms.jp/download/', false, stream_context_create($options)); - preg_match('/

(.*)<\/a><\/h1>/',$html,$matches); - - if (is_numeric($matches[2])) { - return "2.11.".$matches[2]; - } else { - return; - } - -} diff --git a/28x/cpi/readme.txt b/28x/cpi/readme.txt deleted file mode 100755 index 19fbb9c..0000000 --- a/28x/cpi/readme.txt +++ /dev/null @@ -1,30 +0,0 @@ - -# 簡単セットアップについて - -「簡単セットアップ」を利用すると 10KB程度の PHP ファイルをアップロードして、ブラウザで表示させるだけで a-blog cms のパッケージのダウンロードや ionCube Loader の設定が可能です。 - -## 利用できるサーバー - -* Windows XAMPP -* macOS MAMP -* KDDI ウェブコミュニケーションズ CPI ACE01 -* さくらインターネット レンタルサーバ -* ファーストサーバー Zenlogic -* エックスサーバー -* GMO ペパボ ヘテムル / ロリポップ - -## 利用方法 - -「簡単セットアップ」を利用することで以下の作業を自動化してくれます。 - -1. 利用されるPHPのバージョンに合わせた a-blog cms のパッケージを直接サーバー上にダウンロード -2. ダウンロードした Zipファイルを解凍し、設置先に移動 -3. サーバーにあわせた ionCube Loader を直接ダウンロード -4. ダウンロードした ionCube Loader の Zipファイルを解凍 -5. ionCube Loader 等を利用する設定を php.ini に設定 -6. .htaccess を有効にし、サーバーにあわせた設定 -7. ダウンロードした Zipファイルや、必要のないフォルダの削除 -8. a-blog cms インストーラーを起動 - - - diff --git a/28x/cpi/setup.php b/28x/cpi/setup.php deleted file mode 100755 index 0843079..0000000 --- a/28x/cpi/setup.php +++ /dev/null @@ -1,473 +0,0 @@ -open($zipFile); - -if($res === true){ - $zip->extractTo($installPath); - $zip->close(); - -} else { - echo 'a-blog cms unZip Error ! : '. $zipFile; - exit; -} - -// -------------------------- -// a-blog cms ディレクトリを移動 -// -------------------------- - -if ($handle = opendir($ablogcmsDir)) { - while(false !== ($entry = readdir($handle))) { - if ($entry != "." && $entry != "..") { - rename($ablogcmsDir.$entry, $installPath ."/". $entry); - } - } - closedir($handle); -} else { - echo 'a-blog cms move Error ! :'.$ablogcmsDir; - exit; -} - - -// -------------------------- -// ioncube ファイルをダウンロード -// -------------------------- - -$fp = fopen($downloadIoncube, "r"); -if ($fp !== FALSE) { - file_put_contents($zipFileIoncube, ""); - while(!feof($fp)) { - $buffer = fread($fp, 4096); - if ($buffer !== FALSE) { - file_put_contents($zipFileIoncube, $buffer, FILE_APPEND); - } - } - fclose($fp); -} else { - echo 'ioncube loader download Error ! : '.$download; - exit; -} - -// -------------------------- -// ioncube ファイルを解凍 -// -------------------------- - -$zip = new ZipArchive(); -$res = $zip->open($zipFileIoncube); - -if($res === true){ - $zip->extractTo($installPath); - $zip->close(); - -} else { - echo 'ioncube loader unZip Error ! : '. $zipFileIoncube; - exit; -} - -// -------------------------- -// php.ini の設定 -// -------------------------- - -$iniFileName = "php.ini"; -$iniData = sprintf("date.timezone = 'Asia/Tokyo'\nzend_extension = \"%s/ioncube/ioncube_loader_fre_%s.so\"",$installPath,$ioncubePhpVersion); -file_put_contents($installPath."/".$iniFileName, $iniData, FILE_APPEND | LOCK_EX); - -# setupディレクトリにも php.ini が必要な時のために -copy($installPath."/php.ini", $installPath."/setup/php.ini"); - - - -// -------------------------- -// .htaccess の設定 -// -------------------------- - -rename($installPath."/htaccess.txt", $installPath.'/.htaccess'); -rename($installPath."/archives/htaccess.txt", $installPath.'/archives/.htaccess'); -rename($installPath."/archives_rev/htaccess.txt", $installPath.'/archives_rev/.htaccess'); -rename($installPath."/media/htaccess.txt", $installPath.'/media/.htaccess'); -rename($installPath."/private/htaccess.txt", $installPath.'/private/.htaccess'); -rename($installPath."/themes/htaccess.txt", $installPath.'/themes/.htaccess'); - -$htaccess = file_get_contents($installPath."/.htaccess"); - -$new = sprintf(" -deny from all - -Options +SymLinksIfOwnerMatch -AddHandler x-httpd-php%s .php\n\n",$phpVersion); - -$fp = fopen($installPath."/.htaccess",'w'); -fwrite($fp,$new.$htaccess); -fclose($fp); - -// -------------------------- -// DB 初期設定 -// -------------------------- - -if ($mysql_version == "5.6") { - $dbHost .= ":3307"; -} - -$data = sprintf("(.*)<\/a><\/h1>/',$html,$matches); - - if (is_numeric($matches[2])) { - return "2.8.".$matches[2]; - } else { - return; - } - -} diff --git a/28x/heteml/readme.txt b/28x/heteml/readme.txt deleted file mode 100755 index 19fbb9c..0000000 --- a/28x/heteml/readme.txt +++ /dev/null @@ -1,30 +0,0 @@ - -# 簡単セットアップについて - -「簡単セットアップ」を利用すると 10KB程度の PHP ファイルをアップロードして、ブラウザで表示させるだけで a-blog cms のパッケージのダウンロードや ionCube Loader の設定が可能です。 - -## 利用できるサーバー - -* Windows XAMPP -* macOS MAMP -* KDDI ウェブコミュニケーションズ CPI ACE01 -* さくらインターネット レンタルサーバ -* ファーストサーバー Zenlogic -* エックスサーバー -* GMO ペパボ ヘテムル / ロリポップ - -## 利用方法 - -「簡単セットアップ」を利用することで以下の作業を自動化してくれます。 - -1. 利用されるPHPのバージョンに合わせた a-blog cms のパッケージを直接サーバー上にダウンロード -2. ダウンロードした Zipファイルを解凍し、設置先に移動 -3. サーバーにあわせた ionCube Loader を直接ダウンロード -4. ダウンロードした ionCube Loader の Zipファイルを解凍 -5. ionCube Loader 等を利用する設定を php.ini に設定 -6. .htaccess を有効にし、サーバーにあわせた設定 -7. ダウンロードした Zipファイルや、必要のないフォルダの削除 -8. a-blog cms インストーラーを起動 - - - diff --git a/28x/heteml/setup.php b/28x/heteml/setup.php deleted file mode 100755 index 3344bfc..0000000 --- a/28x/heteml/setup.php +++ /dev/null @@ -1,297 +0,0 @@ -open($zipFile); - -if($res === true){ - $zip->extractTo($installPath); - $zip->close(); - -} else { - echo 'a-blog cms unZip Error ! : '. $zipFile; - exit; -} - -// -------------------------- -// a-blog cms ディレクトリを移動 -// -------------------------- - -if ($handle = opendir($ablogcmsDir)) { - while(false !== ($entry = readdir($handle))) { - if ($entry != "." && $entry != "..") { - rename($ablogcmsDir.$entry, $installPath ."/". $entry); - } - } - closedir($handle); -} else { - echo 'a-blog cms move Error ! :'.$ablogcmsDir; - exit; -} - -// -------------------------- -// .htaccess の設定 -// -------------------------- - -if (is_file($installPath."/.htaccess")) { - # .htaccess があった場合にはバックアップ - rename($installPath."/.htaccess", $installPath.'/.htaccess_backup'.date("YmdHis")); -} - -rename($installPath."/htaccess.txt", $installPath.'/.htaccess'); - -if ($htaccessPlus != "") { - $htaccess = file_get_contents($installPath.'/.htaccess'); - $htaccess = $htaccessPlus . "\n\n" . $htaccess; - file_put_contents($installPath.'/.htaccess', $htaccess); -} - -rename($installPath."/archives/htaccess.txt", $installPath.'/archives/.htaccess'); -rename($installPath."/archives_rev/htaccess.txt", $installPath.'/archives_rev/.htaccess'); -rename($installPath."/media/htaccess.txt", $installPath.'/media/.htaccess'); -rename($installPath."/private/htaccess.txt", $installPath.'/private/.htaccess'); -rename($installPath."/themes/htaccess.txt", $installPath.'/themes/.htaccess'); - -// -------------------------- -// DB 初期設定 -// -------------------------- - -$data = sprintf("(.*)<\/a><\/h1>/',$html,$matches); - - if (is_numeric($matches[2])) { - return "2.8.".$matches[2]; - } else { - return; - } - -} diff --git a/28x/lolipop/readme.txt b/28x/lolipop/readme.txt deleted file mode 100755 index 19fbb9c..0000000 --- a/28x/lolipop/readme.txt +++ /dev/null @@ -1,30 +0,0 @@ - -# 簡単セットアップについて - -「簡単セットアップ」を利用すると 10KB程度の PHP ファイルをアップロードして、ブラウザで表示させるだけで a-blog cms のパッケージのダウンロードや ionCube Loader の設定が可能です。 - -## 利用できるサーバー - -* Windows XAMPP -* macOS MAMP -* KDDI ウェブコミュニケーションズ CPI ACE01 -* さくらインターネット レンタルサーバ -* ファーストサーバー Zenlogic -* エックスサーバー -* GMO ペパボ ヘテムル / ロリポップ - -## 利用方法 - -「簡単セットアップ」を利用することで以下の作業を自動化してくれます。 - -1. 利用されるPHPのバージョンに合わせた a-blog cms のパッケージを直接サーバー上にダウンロード -2. ダウンロードした Zipファイルを解凍し、設置先に移動 -3. サーバーにあわせた ionCube Loader を直接ダウンロード -4. ダウンロードした ionCube Loader の Zipファイルを解凍 -5. ionCube Loader 等を利用する設定を php.ini に設定 -6. .htaccess を有効にし、サーバーにあわせた設定 -7. ダウンロードした Zipファイルや、必要のないフォルダの削除 -8. a-blog cms インストーラーを起動 - - - diff --git a/28x/lolipop/setup.php b/28x/lolipop/setup.php deleted file mode 100755 index d04a29b..0000000 --- a/28x/lolipop/setup.php +++ /dev/null @@ -1,259 +0,0 @@ -open($zipFile); - -if($res === true){ - $zip->extractTo($installPath); - $zip->close(); - -} else { - echo 'a-blog cms unZip Error ! : '. $zipFile; - exit; -} - -// -------------------------- -// a-blog cms ディレクトリを移動 -// -------------------------- - -if ($handle = opendir($ablogcmsDir)) { - while(false !== ($entry = readdir($handle))) { - if ($entry != "." && $entry != "..") { - rename($ablogcmsDir.$entry, $installPath ."/". $entry); - } - } - closedir($handle); -} else { - echo 'a-blog cms move Error ! :'.$ablogcmsDir; - exit; -} - -// -------------------------- -// .htaccess の設定 -// -------------------------- - -rename($installPath."/htaccess.txt", $installPath.'/.htaccess'); -rename($installPath."/archives/htaccess.txt", $installPath.'/archives/.htaccess'); -rename($installPath."/archives_rev/htaccess.txt", $installPath.'/archives_rev/.htaccess'); -rename($installPath."/media/htaccess.txt", $installPath.'/media/.htaccess'); -rename($installPath."/private/htaccess.txt", $installPath.'/private/.htaccess'); -rename($installPath."/themes/htaccess.txt", $installPath.'/themes/.htaccess'); - -// -------------------------- -// DB 初期設定 -// -------------------------- - -$data = sprintf("(.*)<\/a><\/h1>/',$html,$matches); - - if (is_numeric($matches[2])) { - return "2.8.".$matches[2]; - } else { - return; - } - -} diff --git a/28x/mamp/readme.txt b/28x/mamp/readme.txt deleted file mode 100755 index 19fbb9c..0000000 --- a/28x/mamp/readme.txt +++ /dev/null @@ -1,30 +0,0 @@ - -# 簡単セットアップについて - -「簡単セットアップ」を利用すると 10KB程度の PHP ファイルをアップロードして、ブラウザで表示させるだけで a-blog cms のパッケージのダウンロードや ionCube Loader の設定が可能です。 - -## 利用できるサーバー - -* Windows XAMPP -* macOS MAMP -* KDDI ウェブコミュニケーションズ CPI ACE01 -* さくらインターネット レンタルサーバ -* ファーストサーバー Zenlogic -* エックスサーバー -* GMO ペパボ ヘテムル / ロリポップ - -## 利用方法 - -「簡単セットアップ」を利用することで以下の作業を自動化してくれます。 - -1. 利用されるPHPのバージョンに合わせた a-blog cms のパッケージを直接サーバー上にダウンロード -2. ダウンロードした Zipファイルを解凍し、設置先に移動 -3. サーバーにあわせた ionCube Loader を直接ダウンロード -4. ダウンロードした ionCube Loader の Zipファイルを解凍 -5. ionCube Loader 等を利用する設定を php.ini に設定 -6. .htaccess を有効にし、サーバーにあわせた設定 -7. ダウンロードした Zipファイルや、必要のないフォルダの削除 -8. a-blog cms インストーラーを起動 - - - diff --git a/28x/mamp/setup.php b/28x/mamp/setup.php deleted file mode 100755 index 4a739b4..0000000 --- a/28x/mamp/setup.php +++ /dev/null @@ -1,363 +0,0 @@ - - - - -a-blog cms インストーラー (MAMP版) - - - 0) { - $download = $download71; - $zipAfterDirName = $zipAfterDirName71; -} elseif ($versionArray[0] == 7 && $versionArray[1] == 0) { - $download = $download56; - $zipAfterDirName = $zipAfterDirName56; -} elseif ($versionArray[1] >= 6) { - $download = $download56; - $zipAfterDirName = $zipAfterDirName56; -} else { - $download = $download55; - $zipAfterDirName = $zipAfterDirName55; -} - -# 解凍後の a-blog cms のフォルダ名 -$cmsDirName = "ablogcms"; - -# ioncube Loader ダウンロード元 URL -$downloadIoncube = "http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_dar_x86-64.zip"; - -# ioncube Loader ダウンロード後のZipファイル名 -$zipFileIoncube ="ioncube.zip"; - -$installPath = realpath('.'); - -$phpName = basename($_SERVER['PHP_SELF']); - -$ablogcmsDir = $installPath."/".$zipAfterDirName."/".$cmsDirName."/"; - -$ablogcmsVersionNum = str_replace(".", "", $ablogcmsVersion); - -$mampRestart = ""; - -// -------------------------- -// データベースの設定 -// -------------------------- - -$dbHost = 'localhost'; -$dbName = 'DBacms_'.$ablogcmsVersionNum."_".date(mdHi); -$dbCreate = 'checked'; -$dbUser = 'root'; -$dbPass = 'root'; - -// -------------------------- -// a-blog cms ファイルをダウンロード -// -------------------------- - -$fp = fopen($download, "r"); -if ($fp !== FALSE) { - file_put_contents($zipFile, ""); - while(!feof($fp)) { - $buffer = fread($fp, 4096); - if ($buffer !== FALSE) { - file_put_contents($zipFile, $buffer, FILE_APPEND); - } - } - fclose($fp); -} else { - echo 'a-blog cms download Error ! : '.$download; - exit; -} - -// -------------------------- -// a-blog cms ファイルを解凍 -// -------------------------- - -$zip = new ZipArchive(); -$res = $zip->open($zipFile); - -if($res === true){ - $zip->extractTo($installPath); - $zip->close(); - -} else { - echo 'a-blog cms unZip Error ! : '. $zipFile; - exit; -} - -// -------------------------- -// a-blog cms ディレクトリを移動 -// -------------------------- - -if ($handle = opendir($ablogcmsDir)) { - while(false !== ($entry = readdir($handle))) { - if ($entry != "." && $entry != "..") { - rename($ablogcmsDir.$entry, $installPath ."/". $entry); - } - } - closedir($handle); -} else { - echo 'a-blog cms move Error ! :'.$ablogcmsDir; - exit; -} - -// -------------------------- -// ioncube Loader チェック -// -------------------------- - -$useIonCubeLoader = sprintf("ioncube_loader_dar_%d.%d.so",$versionArray[0],$versionArray[1]); - -if (!is_file(PHP_EXTENSION_DIR."/".$useIonCubeLoader)) { - - - // -------------------------- - // ioncube ファイルをダウンロード - // -------------------------- - - $fp = fopen($downloadIoncube, "r"); - if ($fp !== FALSE) { - file_put_contents($zipFileIoncube, ""); - while(!feof($fp)) { - $buffer = fread($fp, 4096); - if ($buffer !== FALSE) { - file_put_contents($zipFileIoncube, $buffer, FILE_APPEND); - } - } - fclose($fp); - } else { - echo 'ioncube loader download Error ! : '.$download; - exit; - } - - // -------------------------- - // ioncube Loader ファイルを解凍 - // -------------------------- - - $zip = new ZipArchive(); - $res = $zip->open($zipFileIoncube); - - if($res === true){ - $zip->extractTo($installPath); - $zip->close(); - - } else { - echo 'ioncube loader unZip Error ! : '. $zipFileIoncube; - exit; - } - - // -------------------------- - // ioncube Loader ファイルを移動 - // -------------------------- - - rename("./ioncube/".$useIonCubeLoader, PHP_EXTENSION_DIR."/".$useIonCubeLoader); - - // -------------------------- - // php.ini の設定 - // -------------------------- - - # MAMP の php.ini のパスを設定する - $iniFile = "/Applications/MAMP/bin/php/php".phpversion()."/conf/php.ini"; - - # 追記する設定内容 - $iniData = sprintf("\n\ndate.timezone = 'Asia/Tokyo'\n\nzend_extension = \"%s/ioncube_loader_dar_%d.%d.so\"",PHP_EXTENSION_DIR ,$versionArray[0],$versionArray[1]); - - $file = file_get_contents($iniFile); - - if (preg_match("/ioncube_loader/i", $file)) { - - # 設定済み - - } else { - $file = fopen( $iniFile, "a+" ); - fwrite( $file, $iniData ); - fclose( $file ); - } - - $mampRestart = "MAMPを再起動して "; - -} - - -// -------------------------- -// .htaccess の設定 -// -------------------------- - -rename("./htaccess.txt", './.htaccess'); -#rename("./archives/htaccess.txt", './archives/.htaccess'); -#rename("./archives_rev/htaccess.txt", './archives_rev/.htaccess'); -#rename("./private/htaccess.txt", './private/.htaccess'); -#rename("./media/htaccess.txt", './media/.htaccess'); -#rename("./theme/htaccess.txt", './theme/.htaccess'); - -// -------------------------- -// DB 初期設定 -// -------------------------- - -$data = sprintf("a-blog cms Ver %s ( php %s ) をインストールしました。

',$ablogcmsVersion,$version); - -$jump = "http://".$_SERVER['HTTP_HOST'].str_replace($phpName, "", $_SERVER['SCRIPT_NAME']); -echo sprintf('

%s%s にアクセスしてください。

',$mampRestart, $jump, $jump); - -// -------------------------- -// ディレクトリを操作 function ( move / copy / delete ) -// -------------------------- - -function dir_shori ($shori, $nowDir , $newDir="") { - - if ($shori != "delete") { - if (!is_dir($newDir)) { - mkdir($newDir); - } - } - - if (is_dir($nowDir)) { - if ($handle = opendir($nowDir)) { - while (($file = readdir($handle)) !== false) { - if ($file != "." && $file != "..") { - if ($shori == "copy") { - if (is_dir($nowDir."/".$file)) { - dir_shori("copy", $nowDir."/".$file, $newDir."/".$file); - } else { - copy($nowDir."/".$file, $newDir."/".$file); - } - } elseif ($shori == "move") { - rename($nowDir."/".$file, $newDir."/".$file); - } elseif ($shori == "delete") { - if (filetype($nowDir."/".$file) == "dir") { - dir_shori("delete", $nowDir."/".$file, ""); - } else { - unlink($nowDir."/".$file); - } - } - } - } - closedir($handle); - } - } - - if ($shori == "move" || $shori == "delete") { - rmdir($nowDir); - } - - return true; -} - -function download_version_check () { - - // Version 2.8.x のチェック用 - // 正常にチェックできない場合には 空 でかえす。 - - $options['ssl']['verify_peer']=false; - $options['ssl']['verify_peer_name']=false; - $html=file_get_contents('https://developer.a-blogcms.jp/download/', false, stream_context_create($options)); - preg_match('/

(.*)<\/a><\/h1>/',$html,$matches); - - if (is_numeric($matches[2])) { - return "2.8.".$matches[2]; - } else { - return; - } - -} - - -?> - - \ No newline at end of file diff --git a/28x/sakura/readme.txt b/28x/sakura/readme.txt deleted file mode 100755 index a37d7a2..0000000 --- a/28x/sakura/readme.txt +++ /dev/null @@ -1,29 +0,0 @@ -# 簡単セットアップについて - -「簡単セットアップ」を利用すると 10KB程度の PHP ファイルをアップロードして、ブラウザで表示させるだけで a-blog cms のパッケージのダウンロードや ionCube Loader の設定が可能です。 - -## 利用できるサーバー - -* Windows XAMPP -* macOS MAMP -* KDDI ウェブコミュニケーションズ CPI ACE01 -* さくらインターネット レンタルサーバ -* ファーストサーバー Zenlogic -* エックスサーバー -* GMO ペパボ ヘテムル / ロリポップ - -## 利用方法 - -「簡単セットアップ」を利用することで以下の作業を自動化してくれます。 - -1. 利用されるPHPのバージョンに合わせた a-blog cms のパッケージを直接サーバー上にダウンロード -2. ダウンロードした Zipファイルを解凍し、設置先に移動 -3. サーバーにあわせた ionCube Loader を直接ダウンロード -4. ダウンロードした ionCube Loader の Zipファイルを解凍 -5. ionCube Loader 等を利用する設定を php.ini に設定 -6. .htaccess を有効にし、サーバーにあわせた設定 -7. ダウンロードした Zipファイルや、必要のないフォルダの削除 -8. a-blog cms インストーラーを起動 - - - diff --git a/28x/sakura/setup.php b/28x/sakura/setup.php deleted file mode 100755 index 091fb0d..0000000 --- a/28x/sakura/setup.php +++ /dev/null @@ -1,336 +0,0 @@ - 0) { - $download = $download71; - $zipAfterDirName = $zipAfterDirName71; -} elseif ($versionArray[0] == 7 && $versionArray[1] == 0) { - $download = $download56; - $zipAfterDirName = $zipAfterDirName56; -} elseif ($versionArray[1] >= 6) { - $download = $download56; - $zipAfterDirName = $zipAfterDirName56; -} elseif ($versionArray[1] == 5) { - $download = $download55; - $zipAfterDirName = $zipAfterDirName55; -} elseif ($versionArray[0] == 5 && $versionArray[1] == 4) { - $download = $download55; - $zipAfterDirName = $zipAfterDirName55; -} elseif ($versionArray[1] == 3) { - $download = $download55; - $zipAfterDirName = $zipAfterDirName55; -} else { - echo "php version check error!"; - exit; -} - -$ablogcmsDir = $installPath."/".$zipAfterDirName."/".$cmsDirName."/"; - -// -------------------------- -// a-blog cms ファイルをダウンロード -// -------------------------- - -$fp = fopen($download, "r"); -if ($fp !== FALSE) { - file_put_contents($zipFile, ""); - while(!feof($fp)) { - $buffer = fread($fp, 4096); - if ($buffer !== FALSE) { - file_put_contents($zipFile, $buffer, FILE_APPEND); - } - } - fclose($fp); -} else { - echo 'a-blog cms download Error ! : '.$download; - exit; -} - -// -------------------------- -// a-blog cms ファイルを解凍 -// -------------------------- - -$zip = new ZipArchive(); -$res = $zip->open($zipFile); - -if($res === true){ - $zip->extractTo($installPath); - $zip->close(); - -} else { - echo 'a-blog cms unZip Error ! : '. $zipFile; - exit; -} - -// -------------------------- -// a-blog cms ディレクトリを移動 -// -------------------------- - -if ($handle = opendir($ablogcmsDir)) { - while(false !== ($entry = readdir($handle))) { - if ($entry != "." && $entry != "..") { - rename($ablogcmsDir.$entry, $installPath ."/". $entry); - } - } - closedir($handle); -} else { - echo 'a-blog cms move Error ! :'.$ablogcmsDir; - exit; -} - - -// -------------------------- -// ioncube ファイルをダウンロード -// -------------------------- - -$fp = fopen($downloadIoncube, "r"); -if ($fp !== FALSE) { - file_put_contents($zipFileIoncube, ""); - while(!feof($fp)) { - $buffer = fread($fp, 4096); - if ($buffer !== FALSE) { - file_put_contents($zipFileIoncube, $buffer, FILE_APPEND); - } - } - fclose($fp); -} else { - echo 'ioncube loader download Error ! : '.$download; - exit; -} - -// -------------------------- -// ioncube ファイルを解凍 -// -------------------------- - -$zip = new ZipArchive(); -$res = $zip->open($zipFileIoncube); - -if($res === true){ - $zip->extractTo($installPath); - $zip->close(); - -} else { - echo 'ioncube loader unZip Error ! : '. $zipFileIoncube; - exit; -} - -// -------------------------- -// php.ini の設定 -// -------------------------- - -$iniFileName = "php.ini"; -$iniData = sprintf("date.timezone = 'Asia/Tokyo'\nzend_extension = \"%s/ioncube/ioncube_loader_fre_%s.so\"",$installPath,$version); -file_put_contents($installPath."/".$iniFileName, $iniData, FILE_APPEND | LOCK_EX); - -# setupディレクトリにも php.ini が必要な時のために -copy($installPath."/php.ini", $installPath."/setup/php.ini"); - -// -------------------------- -// .htaccess の設定 -// -------------------------- - -rename($installPath."/htaccess.txt", $installPath.'/.htaccess'); -rename($installPath."/archives/htaccess.txt", $installPath.'/archives/.htaccess'); -rename($installPath."/archives_rev/htaccess.txt", $installPath.'/archives_rev/.htaccess'); -rename($installPath."/media/htaccess.txt", $installPath.'/media/.htaccess'); -rename($installPath."/private/htaccess.txt", $installPath.'/private/.htaccess'); -rename($installPath."/themes/htaccess.txt", $installPath.'/themes/.htaccess'); - -# RewriteBase を調整 -if (!preg_match("/www$/", $installPath)) { - - if ($_SERVER['DOCUMENT_ROOT'].$_SERVER['SCRIPT_NAME'] != $_SERVER['SCRIPT_FILENAME']) { - - $installDir = str_replace($phpName, "", $_SERVER['SCRIPT_NAME']); - $htaccessFile = $installPath."/.htaccess"; - $data = file_get_contents($htaccessFile); - $data = str_replace("# RewriteBase /", "RewriteBase ".$installDir, $data); - file_put_contents($htaccessFile, $data); - } -} - -// -------------------------- -// DB 初期設定 -// -------------------------- - -$data = sprintf("(.*)<\/a><\/h1>/',$html,$matches); - - if (is_numeric($matches[2])) { - return "2.8.".$matches[2]; - } else { - return; - } - -} diff --git a/28x/update/readme.txt b/28x/update/readme.txt deleted file mode 100755 index 332a34a..0000000 --- a/28x/update/readme.txt +++ /dev/null @@ -1,33 +0,0 @@ - -# 簡単アップデートについて - -「簡単アップデート」を利用すると 10KB程度の PHP ファイルをアップロードして、ブラウザで表示させるだけで a-blog cms のパッケージのアップデートが可能です。 - -2.8.x にすることで、今後は管理ページから可能です。 2.7.x までの環境でご利用ください。 - - -## 利用できるサーバー - -* どのような環境でも利用可能です。 - - -## 設定方法 - -以下のように設定が空であれば、バージョンを自動で取得します。 - -$ablogcmsVersion = ""; - -利用しているテーマを設定ください。 ( 最初の # を消すと有効になります) -systemはアップデート対象になりますので指定しないでください。 - - -#$useThemes = "blog2016"; # "site2015|blog2015"; - - -## 利用方法 - -上記の設定を行った後に、サーバーにアップロードして、ブラウザ上からアクセスしてください。 - -これまでのファイルは backup_yyyymmddhhmmss ディレクトリに移動してバックアップしておいてくれます。 - - diff --git a/28x/update/update.php b/28x/update/update.php deleted file mode 100755 index c54daa6..0000000 --- a/28x/update/update.php +++ /dev/null @@ -1,312 +0,0 @@ - 2.8.x update -// -// -------------------------- - -# 今後は、このアップデートを利用することなく管理ページから -# 可能になります。 - -$ablogcmsVersion = ""; #サイトからバージョンを自動チェック - -# ERROR になる場合や 2.8系のバージョンを -# 指定したい場合には、バージョンを設定してください。 - -#$ablogcmsVersion = "2.8.0"; - -// -------------------------- - -# 利用しているテーマを指定します。 -# 複数あれば | で区切って指定してください。 -# 継承しているテーマは全て含まれます。 -# systemはアップデート対象になりますので指定しないでください。 - -#$useThemes = "blog2016"; # "site2015|blog2015"; - - -// -------------------------- -// 二重実行防止処理 -// -------------------------- - -$lockFile = realpath('.'). "/update.lock"; - -if (is_file($lockFile)) { - echo "lockFile:".$lockFile; - exit; -} else { - touch($lockFile); -} - -// -------------------------- -// 現在の a-blog cms のバージョンをチェック -// -------------------------- - -if (!$ablogcmsVersion) { - $check = download_version_check (); - if ($check) { - $ablogcmsVersion = $check; - } else { - echo "web site version check error."; - exit; - } -} - -// -------------------------- - -# 実行時刻 -$ymdhis = date("YmdHis"); - -# ダウンロード元 URL -$download55 = sprintf("http://developer.a-blogcms.jp/_package/%s/acms%s_update2x_php5.3.zip",$ablogcmsVersion,$ablogcmsVersion); -$download56 = sprintf("http://developer.a-blogcms.jp/_package/%s/acms%s_update2x_php5.6.zip",$ablogcmsVersion,$ablogcmsVersion); -$download71 = sprintf("http://developer.a-blogcms.jp/_package/%s/acms%s_update2x_php7.1.zip",$ablogcmsVersion,$ablogcmsVersion); - -# ダウンロード後のZipファイル名 -$zipFile = sprintf("./acms_%s.zip",$ymdhis); - -# 解凍後の全体フォルダ名 -$zipAfterDirName55 = sprintf("acms%s_update2x_php5.3",$ablogcmsVersion); -$zipAfterDirName56 = sprintf("acms%s_update2x_php5.6",$ablogcmsVersion); -$zipAfterDirName71 = sprintf("acms%s_update2x_php7.1",$ablogcmsVersion); - -# 解凍後の a-blog cms のフォルダ名 -$cmsDirName = "ablogcms"; - -// -------------------------- -// バージョンチェック -// -------------------------- - -$versionArray = explode(".", phpversion()); -$version = $versionArray[0].".".$versionArray[1]; - - -if ($versionArray[0]==7 && $versionArray[1] > 0) { - $download = $download71; - $zipAfterDirName = $zipAfterDirName71; -} elseif ($versionArray[0] == 7 && $versionArray[1] == 0) { - $download = $download56; - $zipAfterDirName = $zipAfterDirName56; -} elseif ($versionArray[1] >= 6) { - $download = $download56; - $zipAfterDirName = $zipAfterDirName56; -} else { - $download = $download55; - $zipAfterDirName = $zipAfterDirName55; -} - -$installPath = realpath('.'); -$ablogcmsDir = $installPath."/".$zipAfterDirName."/".$cmsDirName; -$phpName = basename($_SERVER['PHP_SELF']); - -// -------------------------- -// a-blog cms ファイルをダウンロード -// -------------------------- - -$fp = fopen($download, "r"); -if ($fp !== FALSE) { - file_put_contents($zipFile, ""); - while(!feof($fp)) { - $buffer = fread($fp, 4096); - if ($buffer !== FALSE) { - file_put_contents($zipFile, $buffer, FILE_APPEND); - } - } - fclose($fp); -} else { - echo 'a-blog cms download Error ! : '.$download; - exit; -} - -// -------------------------- -// a-blog cms ファイルを解凍 -// -------------------------- - -$zip = new ZipArchive(); -$res = $zip->open($zipFile); - -if($res === true){ - $zip->extractTo($installPath); - $zip->close(); - -} else { - echo 'a-blog cms unZip Error ! : '. $zipFile; - exit; -} - -// -------------------------- -// バックアップ -// -------------------------- - -$backupDir = "backup_". $ymdhis; - -# バックアップディレクトリを作成 -mkdir($backupDir); - -# ファイルを移動 -if (is_file("./acms.js")) rename("./acms.js", $backupDir."/acms.js"); -if (is_file("./index.js")) rename("./index.js", $backupDir."/index.js"); -if (is_file("./500.html")) rename("./500.html", $backupDir."/500.html"); -rename("./index.php", $backupDir."/index.php"); - -# ディレクトリを移動 - -dir_shori("move", "./js", $backupDir."/js"); -dir_shori("move", "./lang", $backupDir."/lang"); -dir_shori("move", "./php", $backupDir."/php"); -dir_shori("move", "./private", $backupDir."/private"); -dir_shori("move", "./themes", $backupDir."/themes"); - -if (is_dir("./cache")) dir_shori("move", "./cache", $backupDir."/cache"); -if (is_dir("./extension")) dir_shori("move", "./extension", $backupDir."/extension"); - - -// -------------------------- -// update版 ファイル&ディレクトリを移動 -// -------------------------- - -dir_shori("move", $ablogcmsDir, $installPath); - -# 運用中のものを利用するので新しいファイルは削除 -unlink($installPath ."/htaccess.txt"); - -// -------------------------- -// カスタマイズ部分を戻す -// -------------------------- - -# themes を戻す -if (isset($useThemes)) { -if ($handle = opendir($backupDir."/themes")) { - while(false !== ($theme = readdir($handle))) { - if ($theme != "." && $theme != "..") { - if (preg_match("/".$useThemes."/", $theme)) { - if (is_dir("./themes/".$theme)) { - rename ("./themes/".$theme, "./themes/".$theme."_".$ablogcmsVersion); - } - dir_shori ("copy", $backupDir."/themes/".$theme, "./themes/".$theme); - } - } - } - closedir($handle); -} -} - -# /php/ACMS/User を戻す -rename ("./php/ACMS/User","./php/ACMS/User_".$ablogcmsVersion); -dir_shori ("copy", $backupDir."/php/ACMS/User", "./php/ACMS/User"); - -# php/AAPP を戻す -rename ("./php/AAPP", "./php/AAPP_".$ablogcmsVersion); -dir_shori ("copy", $backupDir."/php/AAPP", "./php/AAPP"); - -# /private/config.system.yaml を戻す -rename ("./private/config.system.yaml", "./private/config.system_".$ablogcmsVersion.".yaml"); -copy ($backupDir."/private/config.system.yaml", "./private/config.system.yaml"); - -# /extension を戻す -if (is_dir($backupDir."/extension")) { - rename ("./extension","./extension_".$ablogcmsVersion); - dir_shori ("copy", $backupDir."/extension", "./extension"); -} - -// -------------------------- -// .htaccess の設定 -// -------------------------- -rename("./private/htaccess.txt", './private/.htaccess'); -rename("./themes/htaccess.txt", './themes/.htaccess'); -rename("./cache/htaccess.txt", './cache/.htaccess'); - -// -------------------------- -// php.ini があった時の処理 -// -------------------------- - -if ( is_file( "./php.ini" )) { - copy("./php.ini", "./setup/php.ini"); -} - -// -------------------------- -// ファイルの削除 -// -------------------------- - -unlink($zipFile); -unlink($phpName); - -# プログラム以外のディレクトリを削除 -if ( is_file( "./index.php" )) { - dir_shori("delete", $zipAfterDirName); -} else { - echo "update error!"; - exit; -} - -unlink($lockFile); - -// -------------------------- -// インストーラーに飛ぶ -// -------------------------- - -$jump = str_replace($phpName, "", $_SERVER['SCRIPT_NAME']); -header("Location: " . $jump); - -// -------------------------- -// ディレクトリを操作 function ( move / copy / delete ) -// -------------------------- - -function dir_shori ($shori, $nowDir , $newDir="") { - - if ($shori != "delete") { - if (!is_dir($newDir)) { - mkdir($newDir); - } - } - - if (is_dir($nowDir)) { - if ($handle = opendir($nowDir)) { - while (($file = readdir($handle)) !== false) { - if ($file != "." && $file != "..") { - if ($shori == "copy") { - if (is_dir($nowDir."/".$file)) { - dir_shori("copy", $nowDir."/".$file, $newDir."/".$file); - } else { - copy($nowDir."/".$file, $newDir."/".$file); - } - } elseif ($shori == "move") { - rename($nowDir."/".$file, $newDir."/".$file); - } elseif ($shori == "delete") { - if (filetype($nowDir."/".$file) == "dir") { - dir_shori("delete", $nowDir."/".$file, ""); - } else { - unlink($nowDir."/".$file); - } - } - } - } - closedir($handle); - } - } - - if ($shori == "move" || $shori == "delete") { - rmdir($nowDir); - } - - return true; -} - -function download_version_check () { - - // Version 2.8.x のチェック用 - // 正常にチェックできない場合には 空 でかえす。 - - $options['ssl']['verify_peer']=false; - $options['ssl']['verify_peer_name']=false; - $html=file_get_contents('https://developer.a-blogcms.jp/download/', false, stream_context_create($options)); - preg_match('/

(.*)<\/a><\/h1>/',$html,$matches); - - if (is_numeric($matches[2])) { - return "2.8.".$matches[2]; - } else { - return; - } - -} \ No newline at end of file diff --git a/28x/xampp/readme.txt b/28x/xampp/readme.txt deleted file mode 100755 index 19fbb9c..0000000 --- a/28x/xampp/readme.txt +++ /dev/null @@ -1,30 +0,0 @@ - -# 簡単セットアップについて - -「簡単セットアップ」を利用すると 10KB程度の PHP ファイルをアップロードして、ブラウザで表示させるだけで a-blog cms のパッケージのダウンロードや ionCube Loader の設定が可能です。 - -## 利用できるサーバー - -* Windows XAMPP -* macOS MAMP -* KDDI ウェブコミュニケーションズ CPI ACE01 -* さくらインターネット レンタルサーバ -* ファーストサーバー Zenlogic -* エックスサーバー -* GMO ペパボ ヘテムル / ロリポップ - -## 利用方法 - -「簡単セットアップ」を利用することで以下の作業を自動化してくれます。 - -1. 利用されるPHPのバージョンに合わせた a-blog cms のパッケージを直接サーバー上にダウンロード -2. ダウンロードした Zipファイルを解凍し、設置先に移動 -3. サーバーにあわせた ionCube Loader を直接ダウンロード -4. ダウンロードした ionCube Loader の Zipファイルを解凍 -5. ionCube Loader 等を利用する設定を php.ini に設定 -6. .htaccess を有効にし、サーバーにあわせた設定 -7. ダウンロードした Zipファイルや、必要のないフォルダの削除 -8. a-blog cms インストーラーを起動 - - - diff --git a/28x/xampp/setup.php b/28x/xampp/setup.php deleted file mode 100755 index dbcf309..0000000 --- a/28x/xampp/setup.php +++ /dev/null @@ -1,336 +0,0 @@ - - - - -a-blog cms インストーラー (Windows XAMPP版) - - - 0) { - $download = $download71; - $zipAfterDirName = $zipAfterDirName71; -} elseif ($versionArray[0] == 7 && $versionArray[1] == 0) { - $download = $download56; - $zipAfterDirName = $zipAfterDirName56; -} elseif ($versionArray[1] >= 6) { - $download = $download56; - $zipAfterDirName = $zipAfterDirName56; -} else { - $download = $download55; - $zipAfterDirName = $zipAfterDirName55; -} - -if (PHP_INT_SIZE == 4) { - $downloadIoncube = $downloadIoncube32; -} else { - $downloadIoncube = $downloadIoncube64; -} - -$ablogcmsDir = $installPath."/".$zipAfterDirName."/".$cmsDirName."/"; - -// -------------------------- -// a-blog cms ファイルをダウンロード -// -------------------------- - -$fp = fopen($download, "r"); -if ($fp !== FALSE) { - file_put_contents($zipFile, ""); - while(!feof($fp)) { - $buffer = fread($fp, 4096); - if ($buffer !== FALSE) { - file_put_contents($zipFile, $buffer, FILE_APPEND); - } - } - fclose($fp); -} else { - echo 'a-blog cms download Error ! : '.$download; - exit; -} - -// -------------------------- -// a-blog cms ファイルを解凍 -// -------------------------- - -$zip = new ZipArchive(); -$res = $zip->open($zipFile); - -if($res === true){ - $zip->extractTo($installPath); - $zip->close(); - -} else { - echo 'a-blog cms unZip Error ! : '. $zipFile; - exit; -} - -// -------------------------- -// a-blog cms ディレクトリを移動 -// -------------------------- - -# index.php があった時にリネームしておく -if (is_file("./index.php")) { - rename("./index.php", "_index.php"); -} - -if ($handle = opendir($ablogcmsDir)) { - while(false !== ($entry = readdir($handle))) { - if ($entry != "." && $entry != "..") { - rename($ablogcmsDir.$entry, $installPath ."/". $entry); - } - } - closedir($handle); -} else { - echo 'a-blog cms move Error ! :'.$ablogcmsDir; - exit; -} - -// -------------------------- -// ioncube ファイルをダウンロード -// -------------------------- - -$fp = fopen($downloadIoncube, "r"); -if ($fp !== FALSE) { - file_put_contents($zipFileIoncube, ""); - while(!feof($fp)) { - $buffer = fread($fp, 4096); - if ($buffer !== FALSE) { - file_put_contents($zipFileIoncube, $buffer, FILE_APPEND); - } - } - fclose($fp); -} else { - echo 'ioncube loader download Error ! : '.$download; - exit; -} - -// -------------------------- -// ioncube ファイルを解凍 -// -------------------------- - -$zip = new ZipArchive(); -$res = $zip->open($zipFileIoncube); - -if($res === true){ - $zip->extractTo($installPath); - $zip->close(); - -} else { - echo 'ioncube loader unZip Error ! : '. $zipFileIoncube; - exit; -} - -// -------------------------- -// php.ini の設定 -// -------------------------- - -# php.ini のパスを設定する -$phpiniDir = explode("\htdocs",$installPath); -$iniFile = $phpiniDir[0]."\php\php.ini"; - -# 追記する設定内容 -$iniData = sprintf("\r\n\r\ndate.timezone = 'Asia/Tokyo'\r\n\r\nzend_extension = \"%s\ioncube\ioncube_loader_win_%d.%d.dll\"",$installPath,$versionArray[0],$versionArray[1]); - -$file = file_get_contents($iniFile); - -if (preg_match("/ioncube_loader/i", $file)) { - - # 設定済み - -} else { - $file = fopen( $iniFile, "a+" ); - fwrite( $file, $iniData ); - fclose( $file ); -} - -// -------------------------- -// .htaccess の設定 -// -------------------------- - -if ( is_file($installPath."/htaccess.txt") ) { - rename($installPath."/htaccess.txt", $installPath.'/.htaccess'); -} - -// -------------------------- -// DB 初期設定 -// -------------------------- - -$data = sprintf("XAMPPを再起動して %s にアクセスしてください。

',$jump,$jump); - -// -------------------------- -// ディレクトリを操作 function ( move / copy / delete ) -// -------------------------- - -function dir_shori ($shori, $nowDir , $newDir="") { - - if ($shori != "delete") { - if (!is_dir($newDir)) { - mkdir($newDir); - } - } - - if (is_dir($nowDir)) { - if ($handle = opendir($nowDir)) { - while (($file = readdir($handle)) !== false) { - if ($file != "." && $file != "..") { - if ($shori == "copy") { - if (is_dir($nowDir."/".$file)) { - dir_shori("copy", $nowDir."/".$file, $newDir."/".$file); - } else { - copy($nowDir."/".$file, $newDir."/".$file); - } - } elseif ($shori == "move") { - rename($nowDir."/".$file, $newDir."/".$file); - } elseif ($shori == "delete") { - if (filetype($nowDir."/".$file) == "dir") { - dir_shori("delete", $nowDir."/".$file, ""); - } else { - unlink($nowDir."/".$file); - } - } - } - } - closedir($handle); - } - } - - if ($shori == "move" || $shori == "delete") { - rmdir($nowDir); - } - - return true; -} - -function download_version_check () { - - // Version 2.8.x のチェック用 - // 正常にチェックできない場合には 空 でかえす。 - - $options['ssl']['verify_peer']=false; - $options['ssl']['verify_peer_name']=false; - $html=file_get_contents('https://developer.a-blogcms.jp/download/', false, stream_context_create($options)); - preg_match('/

(.*)<\/a><\/h1>/',$html,$matches); - - if (is_numeric($matches[2])) { - return "2.8.".$matches[2]; - } else { - return; - } - -} - - -?> - - \ No newline at end of file diff --git a/28x/xserver/readme.txt b/28x/xserver/readme.txt deleted file mode 100755 index 19fbb9c..0000000 --- a/28x/xserver/readme.txt +++ /dev/null @@ -1,30 +0,0 @@ - -# 簡単セットアップについて - -「簡単セットアップ」を利用すると 10KB程度の PHP ファイルをアップロードして、ブラウザで表示させるだけで a-blog cms のパッケージのダウンロードや ionCube Loader の設定が可能です。 - -## 利用できるサーバー - -* Windows XAMPP -* macOS MAMP -* KDDI ウェブコミュニケーションズ CPI ACE01 -* さくらインターネット レンタルサーバ -* ファーストサーバー Zenlogic -* エックスサーバー -* GMO ペパボ ヘテムル / ロリポップ - -## 利用方法 - -「簡単セットアップ」を利用することで以下の作業を自動化してくれます。 - -1. 利用されるPHPのバージョンに合わせた a-blog cms のパッケージを直接サーバー上にダウンロード -2. ダウンロードした Zipファイルを解凍し、設置先に移動 -3. サーバーにあわせた ionCube Loader を直接ダウンロード -4. ダウンロードした ionCube Loader の Zipファイルを解凍 -5. ionCube Loader 等を利用する設定を php.ini に設定 -6. .htaccess を有効にし、サーバーにあわせた設定 -7. ダウンロードした Zipファイルや、必要のないフォルダの削除 -8. a-blog cms インストーラーを起動 - - - diff --git a/28x/xserver/setup.php b/28x/xserver/setup.php deleted file mode 100755 index 643f26c..0000000 --- a/28x/xserver/setup.php +++ /dev/null @@ -1,358 +0,0 @@ - 0) { - $download = $download71; - $zipAfterDirName = $zipAfterDirName71; -} elseif ($versionArray[0] == 7 && $versionArray[1] == 0) { - $download = $download56; - $zipAfterDirName = $zipAfterDirName56; -} elseif ($versionArray[1] >= 6) { - $download = $download56; - $zipAfterDirName = $zipAfterDirName56; -} else { - $download = $download55; - $zipAfterDirName = $zipAfterDirName55; -} - -$ablogcmsDir = $installPath."/".$zipAfterDirName."/".$cmsDirName."/"; - -// -------------------------- -// a-blog cms ファイルをダウンロード -// -------------------------- - -$fp = fopen($download, "r"); -if ($fp !== FALSE) { - file_put_contents($zipFile, ""); - while(!feof($fp)) { - $buffer = fread($fp, 4096); - if ($buffer !== FALSE) { - file_put_contents($zipFile, $buffer, FILE_APPEND); - } - } - fclose($fp); -} else { - echo 'a-blog cms download Error ! : '.$download; - exit; -} - -// -------------------------- -// a-blog cms ファイルを解凍 -// -------------------------- - -$zip = new ZipArchive(); -$res = $zip->open($zipFile); - -if($res === true){ - $zip->extractTo($installPath); - $zip->close(); - -} else { - echo 'a-blog cms unZip Error ! : '. $zipFile; - exit; -} - -// -------------------------- -// a-blog cms ディレクトリを移動 -// -------------------------- - -if ($handle = opendir($ablogcmsDir)) { - while(false !== ($entry = readdir($handle))) { - if ($entry != "." && $entry != "..") { - rename($ablogcmsDir.$entry, $installPath ."/". $entry); - } - } - closedir($handle); -} else { - echo 'a-blog cms move Error ! :'.$ablogcmsDir; - exit; -} - -// -------------------------- -// ioncube ファイルをダウンロード -// -------------------------- - -$fp = fopen($downloadIoncube, "r"); -if ($fp !== FALSE) { - file_put_contents($zipFileIoncube, ""); - while(!feof($fp)) { - $buffer = fread($fp, 4096); - if ($buffer !== FALSE) { - file_put_contents($zipFileIoncube, $buffer, FILE_APPEND); - } - } - fclose($fp); -} else { - echo 'ioncube loader download Error ! : '.$download; - exit; -} - -// -------------------------- -// ioncube ファイルを解凍 -// -------------------------- - -$zip = new ZipArchive(); -$res = $zip->open($zipFileIoncube); - -if($res === true){ - $zip->extractTo($installPath); - $zip->close(); - -} else { - echo 'ioncube loader unZip Error ! : '. $zipFileIoncube; - exit; -} - -// -------------------------- -// php.ini の設定 -// -------------------------- - -$iniFile = php_ini_loaded_file(); - -if (preg_match("/xserver_php/i", $iniFile)) { - # 既存の php.ini に ioncube の設定があるかをチェック - $file = file_get_contents($iniFile); - if (preg_match("/ioncube_loader/i", $file)) { - #設定済み - } else { - - $pattern = '/\[Zend Optimizer\]/'; - $ioncube = sprintf("zend_extension = \"%s/ioncube/ioncube_loader_lin_%s.so\"",$installPath,$version); - $replacement = '[Zend Optimizer]'."\n".$ioncube; - $file = preg_replace($pattern, $replacement, $file); - file_put_contents($iniFile, $file); - } - -} else { - - if (preg_match("/public_html/i", $iniFile)) { - # 既に php.ini が存在しているのでバックアップ。 - rename("./php.ini", './php.ini_backup_'.date("YmdHis")); - } - # php.ini を新規作成 - - $iniFileName = "php.ini"; - $iniData = sprintf("date.timezone = 'Asia/Tokyo'\nzend_extension = \"%s/ioncube/ioncube_loader_lin_5.%d.so\"",$installPath,$versionArray[1]); - file_put_contents($installPath."/".$iniFileName, $iniData, FILE_APPEND | LOCK_EX); - - # setupディレクトリにも php.ini が必要な時のために - copy($installPath."/php.ini", $installPath."/setup/php.ini"); -} - - -// -------------------------- -// .htaccess の設定 -// -------------------------- - -$moto_htaccessFile = ".htaccess"; - -if (is_file($moto_htaccessFile)) { - - $htaccessData = file_get_contents($moto_htaccessFile); - $cms_htaccessData = file_get_contents("htaccess.txt"); - - $file = fopen( "./.htaccess", "w+" ); - fwrite( $file, $htaccessData ); - fwrite( $file, "\n\n".$cms_htaccessData ); - fclose( $file ); - -} else { - rename($installPath."/htaccess.txt", $installPath.'/.htaccess'); -} - -rename($installPath."/archives/htaccess.txt", $installPath.'/archives/.htaccess'); -rename($installPath."/archives_rev/htaccess.txt", $installPath.'/archives_rev/.htaccess'); -rename($installPath."/media/htaccess.txt", $installPath.'/media/.htaccess'); -rename($installPath."/private/htaccess.txt", $installPath.'/private/.htaccess'); -rename($installPath."/themes/htaccess.txt", $installPath.'/themes/.htaccess'); - -// -------------------------- -// ファイルの削除 -// -------------------------- - -unlink($zipFile); -unlink($zipFileIoncube); -unlink($phpName); - -# index.html があった時にリネームしておく -if (is_file("./index.html")) { - rename("./index.html", "_index.html"); -} - -unlink($installPath."/ioncube/loader-wizard.php"); - -# プログラム以外のディレクトリを削除 -dir_shori("delete", $zipAfterDirName); - -// -------------------------- -// インストーラーに飛ぶ -// -------------------------- - -if (preg_match("/public_html/i", $iniFile)) { - $jump = str_replace($phpName, "", $_SERVER['SCRIPT_NAME']); - header("Location: " . $jump); -} else { - -?> - - - - -a-blog cms インストーラー (XSERVER版) - - -%s にアクセスしてエラーが出る場合には、
設定した php.ini の設定が有効になっていません。

',$jump,$jump); - -?> -

コントロールパネルの「php.ini設定のphp.ini直接編集」にアクセスし何も変更せずに保存するか、
しばらく時間をおいてアクセスしてみてください。
設定した php.ini が有効になりインストーラーが起動します。

- - -(.*)<\/a><\/h1>/',$html,$matches); - - if (is_numeric($matches[2])) { - return "2.8.".$matches[2]; - } else { - return; - } - -} - diff --git a/28x/zenlogic/readme.txt b/28x/zenlogic/readme.txt deleted file mode 100755 index 19fbb9c..0000000 --- a/28x/zenlogic/readme.txt +++ /dev/null @@ -1,30 +0,0 @@ - -# 簡単セットアップについて - -「簡単セットアップ」を利用すると 10KB程度の PHP ファイルをアップロードして、ブラウザで表示させるだけで a-blog cms のパッケージのダウンロードや ionCube Loader の設定が可能です。 - -## 利用できるサーバー - -* Windows XAMPP -* macOS MAMP -* KDDI ウェブコミュニケーションズ CPI ACE01 -* さくらインターネット レンタルサーバ -* ファーストサーバー Zenlogic -* エックスサーバー -* GMO ペパボ ヘテムル / ロリポップ - -## 利用方法 - -「簡単セットアップ」を利用することで以下の作業を自動化してくれます。 - -1. 利用されるPHPのバージョンに合わせた a-blog cms のパッケージを直接サーバー上にダウンロード -2. ダウンロードした Zipファイルを解凍し、設置先に移動 -3. サーバーにあわせた ionCube Loader を直接ダウンロード -4. ダウンロードした ionCube Loader の Zipファイルを解凍 -5. ionCube Loader 等を利用する設定を php.ini に設定 -6. .htaccess を有効にし、サーバーにあわせた設定 -7. ダウンロードした Zipファイルや、必要のないフォルダの削除 -8. a-blog cms インストーラーを起動 - - - diff --git a/28x/zenlogic/setup.php b/28x/zenlogic/setup.php deleted file mode 100755 index c9c93a2..0000000 --- a/28x/zenlogic/setup.php +++ /dev/null @@ -1,243 +0,0 @@ -= 6) { - $download = $download56; - $zipAfterDirName = $zipAfterDirName56; -} else { - $download = $download55; - $zipAfterDirName = $zipAfterDirName55; -} -$ablogcmsDir = $installPath."/".$zipAfterDirName."/".$cmsDirName."/"; - -// -------------------------- -// a-blog cms ファイルをダウンロード -// -------------------------- - -$fp = fopen($download, "r"); -if ($fp !== FALSE) { - file_put_contents($zipFile, ""); - while(!feof($fp)) { - $buffer = fread($fp, 4096); - if ($buffer !== FALSE) { - file_put_contents($zipFile, $buffer, FILE_APPEND); - } - } - fclose($fp); -} else { - echo 'a-blog cms download Error ! : '.$download; - exit; -} - -// -------------------------- -// a-blog cms ファイルを解凍 -// -------------------------- - -$zip = new ZipArchive(); -$res = $zip->open($zipFile); - -if($res === true){ - $zip->extractTo($installPath); - $zip->close(); - -} else { - echo 'a-blog cms unZip Error ! : '. $zipFile; - exit; -} - -// -------------------------- -// a-blog cms ディレクトリを移動 -// -------------------------- - -if ($handle = opendir($ablogcmsDir)) { - while(false !== ($entry = readdir($handle))) { - if ($entry != "." && $entry != "..") { - rename($ablogcmsDir.$entry, $installPath ."/". $entry); - } - } - closedir($handle); -} else { - echo 'a-blog cms move Error ! :'.$ablogcmsDir; - exit; -} - -// -------------------------- -// .htaccess の設定 -// -------------------------- - -rename($installPath."/htaccess.txt", $installPath.'/.htaccess'); -rename($installPath."/archives/htaccess.txt", $installPath.'/archives/.htaccess'); -rename($installPath."/private/htaccess.txt", $installPath.'/private/.htaccess'); - -// -------------------------- -// DB 初期設定 -// -------------------------- - -$data = sprintf("(.*)<\/a><\/h1>/',$html,$matches); - - if (is_numeric($matches[2])) { - return "2.8.".$matches[2]; - } else { - return; - } - -} diff --git a/29x/cpi/readme.txt b/29x/cpi/readme.txt deleted file mode 100755 index 19fbb9c..0000000 --- a/29x/cpi/readme.txt +++ /dev/null @@ -1,30 +0,0 @@ - -# 簡単セットアップについて - -「簡単セットアップ」を利用すると 10KB程度の PHP ファイルをアップロードして、ブラウザで表示させるだけで a-blog cms のパッケージのダウンロードや ionCube Loader の設定が可能です。 - -## 利用できるサーバー - -* Windows XAMPP -* macOS MAMP -* KDDI ウェブコミュニケーションズ CPI ACE01 -* さくらインターネット レンタルサーバ -* ファーストサーバー Zenlogic -* エックスサーバー -* GMO ペパボ ヘテムル / ロリポップ - -## 利用方法 - -「簡単セットアップ」を利用することで以下の作業を自動化してくれます。 - -1. 利用されるPHPのバージョンに合わせた a-blog cms のパッケージを直接サーバー上にダウンロード -2. ダウンロードした Zipファイルを解凍し、設置先に移動 -3. サーバーにあわせた ionCube Loader を直接ダウンロード -4. ダウンロードした ionCube Loader の Zipファイルを解凍 -5. ionCube Loader 等を利用する設定を php.ini に設定 -6. .htaccess を有効にし、サーバーにあわせた設定 -7. ダウンロードした Zipファイルや、必要のないフォルダの削除 -8. a-blog cms インストーラーを起動 - - - diff --git a/29x/cpi/setup.php b/29x/cpi/setup.php deleted file mode 100755 index 6a2f2d2..0000000 --- a/29x/cpi/setup.php +++ /dev/null @@ -1,473 +0,0 @@ -open($zipFile); - -if($res === true){ - $zip->extractTo($installPath); - $zip->close(); - -} else { - echo 'a-blog cms unZip Error ! : '. $zipFile; - exit; -} - -// -------------------------- -// a-blog cms ディレクトリを移動 -// -------------------------- - -if ($handle = opendir($ablogcmsDir)) { - while(false !== ($entry = readdir($handle))) { - if ($entry != "." && $entry != "..") { - rename($ablogcmsDir.$entry, $installPath ."/". $entry); - } - } - closedir($handle); -} else { - echo 'a-blog cms move Error ! :'.$ablogcmsDir; - exit; -} - - -// -------------------------- -// ioncube ファイルをダウンロード -// -------------------------- - -$fp = fopen($downloadIoncube, "r"); -if ($fp !== FALSE) { - file_put_contents($zipFileIoncube, ""); - while(!feof($fp)) { - $buffer = fread($fp, 4096); - if ($buffer !== FALSE) { - file_put_contents($zipFileIoncube, $buffer, FILE_APPEND); - } - } - fclose($fp); -} else { - echo 'ioncube loader download Error ! : '.$download; - exit; -} - -// -------------------------- -// ioncube ファイルを解凍 -// -------------------------- - -$zip = new ZipArchive(); -$res = $zip->open($zipFileIoncube); - -if($res === true){ - $zip->extractTo($installPath); - $zip->close(); - -} else { - echo 'ioncube loader unZip Error ! : '. $zipFileIoncube; - exit; -} - -// -------------------------- -// php.ini の設定 -// -------------------------- - -$iniFileName = "php.ini"; -$iniData = sprintf("date.timezone = 'Asia/Tokyo'\nzend_extension = \"%s/ioncube/ioncube_loader_fre_%s.so\"",$installPath,$ioncubePhpVersion); -file_put_contents($installPath."/".$iniFileName, $iniData, FILE_APPEND | LOCK_EX); - -# setupディレクトリにも php.ini が必要な時のために -copy($installPath."/php.ini", $installPath."/setup/php.ini"); - - - -// -------------------------- -// .htaccess の設定 -// -------------------------- - -rename($installPath."/htaccess.txt", $installPath.'/.htaccess'); -rename($installPath."/archives/htaccess.txt", $installPath.'/archives/.htaccess'); -rename($installPath."/archives_rev/htaccess.txt", $installPath.'/archives_rev/.htaccess'); -rename($installPath."/media/htaccess.txt", $installPath.'/media/.htaccess'); -rename($installPath."/private/htaccess.txt", $installPath.'/private/.htaccess'); -rename($installPath."/themes/htaccess.txt", $installPath.'/themes/.htaccess'); - -$htaccess = file_get_contents($installPath."/.htaccess"); - -$new = sprintf(" -deny from all - -Options +SymLinksIfOwnerMatch -AddHandler x-httpd-php%s .php\n\n",$phpVersion); - -$fp = fopen($installPath."/.htaccess",'w'); -fwrite($fp,$new.$htaccess); -fclose($fp); - -// -------------------------- -// DB 初期設定 -// -------------------------- - -if ($mysql_version == "5.6") { - $dbHost .= ":3307"; -} - -$data = sprintf("(.*)<\/a><\/h1>/',$html,$matches); - - if (is_numeric($matches[2])) { - return "2.9.".$matches[2]; - } else { - return; - } - -} diff --git a/29x/heteml/readme.txt b/29x/heteml/readme.txt deleted file mode 100755 index 19fbb9c..0000000 --- a/29x/heteml/readme.txt +++ /dev/null @@ -1,30 +0,0 @@ - -# 簡単セットアップについて - -「簡単セットアップ」を利用すると 10KB程度の PHP ファイルをアップロードして、ブラウザで表示させるだけで a-blog cms のパッケージのダウンロードや ionCube Loader の設定が可能です。 - -## 利用できるサーバー - -* Windows XAMPP -* macOS MAMP -* KDDI ウェブコミュニケーションズ CPI ACE01 -* さくらインターネット レンタルサーバ -* ファーストサーバー Zenlogic -* エックスサーバー -* GMO ペパボ ヘテムル / ロリポップ - -## 利用方法 - -「簡単セットアップ」を利用することで以下の作業を自動化してくれます。 - -1. 利用されるPHPのバージョンに合わせた a-blog cms のパッケージを直接サーバー上にダウンロード -2. ダウンロードした Zipファイルを解凍し、設置先に移動 -3. サーバーにあわせた ionCube Loader を直接ダウンロード -4. ダウンロードした ionCube Loader の Zipファイルを解凍 -5. ionCube Loader 等を利用する設定を php.ini に設定 -6. .htaccess を有効にし、サーバーにあわせた設定 -7. ダウンロードした Zipファイルや、必要のないフォルダの削除 -8. a-blog cms インストーラーを起動 - - - diff --git a/29x/heteml/setup.php b/29x/heteml/setup.php deleted file mode 100755 index ec57f4c..0000000 --- a/29x/heteml/setup.php +++ /dev/null @@ -1,297 +0,0 @@ -open($zipFile); - -if($res === true){ - $zip->extractTo($installPath); - $zip->close(); - -} else { - echo 'a-blog cms unZip Error ! : '. $zipFile; - exit; -} - -// -------------------------- -// a-blog cms ディレクトリを移動 -// -------------------------- - -if ($handle = opendir($ablogcmsDir)) { - while(false !== ($entry = readdir($handle))) { - if ($entry != "." && $entry != "..") { - rename($ablogcmsDir.$entry, $installPath ."/". $entry); - } - } - closedir($handle); -} else { - echo 'a-blog cms move Error ! :'.$ablogcmsDir; - exit; -} - -// -------------------------- -// .htaccess の設定 -// -------------------------- - -if (is_file($installPath."/.htaccess")) { - # .htaccess があった場合にはバックアップ - rename($installPath."/.htaccess", $installPath.'/.htaccess_backup'.date("YmdHis")); -} - -rename($installPath."/htaccess.txt", $installPath.'/.htaccess'); - -if ($htaccessPlus != "") { - $htaccess = file_get_contents($installPath.'/.htaccess'); - $htaccess = $htaccessPlus . "\n\n" . $htaccess; - file_put_contents($installPath.'/.htaccess', $htaccess); -} - -rename($installPath."/archives/htaccess.txt", $installPath.'/archives/.htaccess'); -rename($installPath."/archives_rev/htaccess.txt", $installPath.'/archives_rev/.htaccess'); -rename($installPath."/media/htaccess.txt", $installPath.'/media/.htaccess'); -rename($installPath."/private/htaccess.txt", $installPath.'/private/.htaccess'); -rename($installPath."/themes/htaccess.txt", $installPath.'/themes/.htaccess'); - -// -------------------------- -// DB 初期設定 -// -------------------------- - -$data = sprintf("(.*)<\/a><\/h1>/',$html,$matches); - - if (is_numeric($matches[2])) { - return "2.9.".$matches[2]; - } else { - return; - } - -} diff --git a/29x/lolipop/readme.txt b/29x/lolipop/readme.txt deleted file mode 100755 index 19fbb9c..0000000 --- a/29x/lolipop/readme.txt +++ /dev/null @@ -1,30 +0,0 @@ - -# 簡単セットアップについて - -「簡単セットアップ」を利用すると 10KB程度の PHP ファイルをアップロードして、ブラウザで表示させるだけで a-blog cms のパッケージのダウンロードや ionCube Loader の設定が可能です。 - -## 利用できるサーバー - -* Windows XAMPP -* macOS MAMP -* KDDI ウェブコミュニケーションズ CPI ACE01 -* さくらインターネット レンタルサーバ -* ファーストサーバー Zenlogic -* エックスサーバー -* GMO ペパボ ヘテムル / ロリポップ - -## 利用方法 - -「簡単セットアップ」を利用することで以下の作業を自動化してくれます。 - -1. 利用されるPHPのバージョンに合わせた a-blog cms のパッケージを直接サーバー上にダウンロード -2. ダウンロードした Zipファイルを解凍し、設置先に移動 -3. サーバーにあわせた ionCube Loader を直接ダウンロード -4. ダウンロードした ionCube Loader の Zipファイルを解凍 -5. ionCube Loader 等を利用する設定を php.ini に設定 -6. .htaccess を有効にし、サーバーにあわせた設定 -7. ダウンロードした Zipファイルや、必要のないフォルダの削除 -8. a-blog cms インストーラーを起動 - - - diff --git a/29x/lolipop/setup.php b/29x/lolipop/setup.php deleted file mode 100755 index 2d6f6db..0000000 --- a/29x/lolipop/setup.php +++ /dev/null @@ -1,259 +0,0 @@ -open($zipFile); - -if($res === true){ - $zip->extractTo($installPath); - $zip->close(); - -} else { - echo 'a-blog cms unZip Error ! : '. $zipFile; - exit; -} - -// -------------------------- -// a-blog cms ディレクトリを移動 -// -------------------------- - -if ($handle = opendir($ablogcmsDir)) { - while(false !== ($entry = readdir($handle))) { - if ($entry != "." && $entry != "..") { - rename($ablogcmsDir.$entry, $installPath ."/". $entry); - } - } - closedir($handle); -} else { - echo 'a-blog cms move Error ! :'.$ablogcmsDir; - exit; -} - -// -------------------------- -// .htaccess の設定 -// -------------------------- - -rename($installPath."/htaccess.txt", $installPath.'/.htaccess'); -rename($installPath."/archives/htaccess.txt", $installPath.'/archives/.htaccess'); -rename($installPath."/archives_rev/htaccess.txt", $installPath.'/archives_rev/.htaccess'); -rename($installPath."/media/htaccess.txt", $installPath.'/media/.htaccess'); -rename($installPath."/private/htaccess.txt", $installPath.'/private/.htaccess'); -rename($installPath."/themes/htaccess.txt", $installPath.'/themes/.htaccess'); - -// -------------------------- -// DB 初期設定 -// -------------------------- - -$data = sprintf("(.*)<\/a><\/h1>/',$html,$matches); - - if (is_numeric($matches[2])) { - return "2.9.".$matches[2]; - } else { - return; - } - -} diff --git a/29x/mamp/readme.txt b/29x/mamp/readme.txt deleted file mode 100755 index 19fbb9c..0000000 --- a/29x/mamp/readme.txt +++ /dev/null @@ -1,30 +0,0 @@ - -# 簡単セットアップについて - -「簡単セットアップ」を利用すると 10KB程度の PHP ファイルをアップロードして、ブラウザで表示させるだけで a-blog cms のパッケージのダウンロードや ionCube Loader の設定が可能です。 - -## 利用できるサーバー - -* Windows XAMPP -* macOS MAMP -* KDDI ウェブコミュニケーションズ CPI ACE01 -* さくらインターネット レンタルサーバ -* ファーストサーバー Zenlogic -* エックスサーバー -* GMO ペパボ ヘテムル / ロリポップ - -## 利用方法 - -「簡単セットアップ」を利用することで以下の作業を自動化してくれます。 - -1. 利用されるPHPのバージョンに合わせた a-blog cms のパッケージを直接サーバー上にダウンロード -2. ダウンロードした Zipファイルを解凍し、設置先に移動 -3. サーバーにあわせた ionCube Loader を直接ダウンロード -4. ダウンロードした ionCube Loader の Zipファイルを解凍 -5. ionCube Loader 等を利用する設定を php.ini に設定 -6. .htaccess を有効にし、サーバーにあわせた設定 -7. ダウンロードした Zipファイルや、必要のないフォルダの削除 -8. a-blog cms インストーラーを起動 - - - diff --git a/29x/mamp/setup.php b/29x/mamp/setup.php deleted file mode 100755 index 2f06fa5..0000000 --- a/29x/mamp/setup.php +++ /dev/null @@ -1,363 +0,0 @@ - - - - -a-blog cms インストーラー (MAMP版) - - - 0) { - $download = $download71; - $zipAfterDirName = $zipAfterDirName71; -} elseif ($versionArray[0] == 7 && $versionArray[1] == 0) { - $download = $download56; - $zipAfterDirName = $zipAfterDirName56; -} elseif ($versionArray[1] >= 6) { - $download = $download56; - $zipAfterDirName = $zipAfterDirName56; -} else { - $download = $download55; - $zipAfterDirName = $zipAfterDirName55; -} - -# 解凍後の a-blog cms のフォルダ名 -$cmsDirName = "ablogcms"; - -# ioncube Loader ダウンロード元 URL -$downloadIoncube = "http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_dar_x86-64.zip"; - -# ioncube Loader ダウンロード後のZipファイル名 -$zipFileIoncube ="ioncube.zip"; - -$installPath = realpath('.'); - -$phpName = basename($_SERVER['PHP_SELF']); - -$ablogcmsDir = $installPath."/".$zipAfterDirName."/".$cmsDirName."/"; - -$ablogcmsVersionNum = str_replace(".", "", $ablogcmsVersion); - -$mampRestart = ""; - -// -------------------------- -// データベースの設定 -// -------------------------- - -$dbHost = 'localhost'; -$dbName = 'DBacms_'.$ablogcmsVersionNum."_".date(mdHi); -$dbCreate = 'checked'; -$dbUser = 'root'; -$dbPass = 'root'; - -// -------------------------- -// a-blog cms ファイルをダウンロード -// -------------------------- - -$fp = fopen($download, "r"); -if ($fp !== FALSE) { - file_put_contents($zipFile, ""); - while(!feof($fp)) { - $buffer = fread($fp, 4096); - if ($buffer !== FALSE) { - file_put_contents($zipFile, $buffer, FILE_APPEND); - } - } - fclose($fp); -} else { - echo 'a-blog cms download Error ! : '.$download; - exit; -} - -// -------------------------- -// a-blog cms ファイルを解凍 -// -------------------------- - -$zip = new ZipArchive(); -$res = $zip->open($zipFile); - -if($res === true){ - $zip->extractTo($installPath); - $zip->close(); - -} else { - echo 'a-blog cms unZip Error ! : '. $zipFile; - exit; -} - -// -------------------------- -// a-blog cms ディレクトリを移動 -// -------------------------- - -if ($handle = opendir($ablogcmsDir)) { - while(false !== ($entry = readdir($handle))) { - if ($entry != "." && $entry != "..") { - rename($ablogcmsDir.$entry, $installPath ."/". $entry); - } - } - closedir($handle); -} else { - echo 'a-blog cms move Error ! :'.$ablogcmsDir; - exit; -} - -// -------------------------- -// ioncube Loader チェック -// -------------------------- - -$useIonCubeLoader = sprintf("ioncube_loader_dar_%d.%d.so",$versionArray[0],$versionArray[1]); - -if (!is_file(PHP_EXTENSION_DIR."/".$useIonCubeLoader)) { - - - // -------------------------- - // ioncube ファイルをダウンロード - // -------------------------- - - $fp = fopen($downloadIoncube, "r"); - if ($fp !== FALSE) { - file_put_contents($zipFileIoncube, ""); - while(!feof($fp)) { - $buffer = fread($fp, 4096); - if ($buffer !== FALSE) { - file_put_contents($zipFileIoncube, $buffer, FILE_APPEND); - } - } - fclose($fp); - } else { - echo 'ioncube loader download Error ! : '.$download; - exit; - } - - // -------------------------- - // ioncube Loader ファイルを解凍 - // -------------------------- - - $zip = new ZipArchive(); - $res = $zip->open($zipFileIoncube); - - if($res === true){ - $zip->extractTo($installPath); - $zip->close(); - - } else { - echo 'ioncube loader unZip Error ! : '. $zipFileIoncube; - exit; - } - - // -------------------------- - // ioncube Loader ファイルを移動 - // -------------------------- - - rename("./ioncube/".$useIonCubeLoader, PHP_EXTENSION_DIR."/".$useIonCubeLoader); - - // -------------------------- - // php.ini の設定 - // -------------------------- - - # MAMP の php.ini のパスを設定する - $iniFile = "/Applications/MAMP/bin/php/php".phpversion()."/conf/php.ini"; - - # 追記する設定内容 - $iniData = sprintf("\n\ndate.timezone = 'Asia/Tokyo'\n\nzend_extension = \"%s/ioncube_loader_dar_%d.%d.so\"",PHP_EXTENSION_DIR ,$versionArray[0],$versionArray[1]); - - $file = file_get_contents($iniFile); - - if (preg_match("/ioncube_loader/i", $file)) { - - # 設定済み - - } else { - $file = fopen( $iniFile, "a+" ); - fwrite( $file, $iniData ); - fclose( $file ); - } - - $mampRestart = "MAMPを再起動して "; - -} - - -// -------------------------- -// .htaccess の設定 -// -------------------------- - -rename("./htaccess.txt", './.htaccess'); -#rename("./archives/htaccess.txt", './archives/.htaccess'); -#rename("./archives_rev/htaccess.txt", './archives_rev/.htaccess'); -#rename("./private/htaccess.txt", './private/.htaccess'); -#rename("./media/htaccess.txt", './media/.htaccess'); -#rename("./theme/htaccess.txt", './theme/.htaccess'); - -// -------------------------- -// DB 初期設定 -// -------------------------- - -$data = sprintf("a-blog cms Ver %s ( php %s ) をインストールしました。

',$ablogcmsVersion,$version); - -$jump = "http://".$_SERVER['HTTP_HOST'].str_replace($phpName, "", $_SERVER['SCRIPT_NAME']); -echo sprintf('

%s%s にアクセスしてください。

',$mampRestart, $jump, $jump); - -// -------------------------- -// ディレクトリを操作 function ( move / copy / delete ) -// -------------------------- - -function dir_shori ($shori, $nowDir , $newDir="") { - - if ($shori != "delete") { - if (!is_dir($newDir)) { - mkdir($newDir); - } - } - - if (is_dir($nowDir)) { - if ($handle = opendir($nowDir)) { - while (($file = readdir($handle)) !== false) { - if ($file != "." && $file != "..") { - if ($shori == "copy") { - if (is_dir($nowDir."/".$file)) { - dir_shori("copy", $nowDir."/".$file, $newDir."/".$file); - } else { - copy($nowDir."/".$file, $newDir."/".$file); - } - } elseif ($shori == "move") { - rename($nowDir."/".$file, $newDir."/".$file); - } elseif ($shori == "delete") { - if (filetype($nowDir."/".$file) == "dir") { - dir_shori("delete", $nowDir."/".$file, ""); - } else { - unlink($nowDir."/".$file); - } - } - } - } - closedir($handle); - } - } - - if ($shori == "move" || $shori == "delete") { - rmdir($nowDir); - } - - return true; -} - -function download_version_check () { - - // Version 2.9.x のチェック用 - // 正常にチェックできない場合には 空 でかえす。 - - $options['ssl']['verify_peer']=false; - $options['ssl']['verify_peer_name']=false; - $html=file_get_contents('https://developer.a-blogcms.jp/download/', false, stream_context_create($options)); - preg_match('/

(.*)<\/a><\/h1>/',$html,$matches); - - if (is_numeric($matches[2])) { - return "2.9.".$matches[2]; - } else { - return; - } - -} - - -?> - - \ No newline at end of file diff --git a/29x/sakura/readme.txt b/29x/sakura/readme.txt deleted file mode 100755 index a37d7a2..0000000 --- a/29x/sakura/readme.txt +++ /dev/null @@ -1,29 +0,0 @@ -# 簡単セットアップについて - -「簡単セットアップ」を利用すると 10KB程度の PHP ファイルをアップロードして、ブラウザで表示させるだけで a-blog cms のパッケージのダウンロードや ionCube Loader の設定が可能です。 - -## 利用できるサーバー - -* Windows XAMPP -* macOS MAMP -* KDDI ウェブコミュニケーションズ CPI ACE01 -* さくらインターネット レンタルサーバ -* ファーストサーバー Zenlogic -* エックスサーバー -* GMO ペパボ ヘテムル / ロリポップ - -## 利用方法 - -「簡単セットアップ」を利用することで以下の作業を自動化してくれます。 - -1. 利用されるPHPのバージョンに合わせた a-blog cms のパッケージを直接サーバー上にダウンロード -2. ダウンロードした Zipファイルを解凍し、設置先に移動 -3. サーバーにあわせた ionCube Loader を直接ダウンロード -4. ダウンロードした ionCube Loader の Zipファイルを解凍 -5. ionCube Loader 等を利用する設定を php.ini に設定 -6. .htaccess を有効にし、サーバーにあわせた設定 -7. ダウンロードした Zipファイルや、必要のないフォルダの削除 -8. a-blog cms インストーラーを起動 - - - diff --git a/29x/sakura/setup.php b/29x/sakura/setup.php deleted file mode 100755 index 5823890..0000000 --- a/29x/sakura/setup.php +++ /dev/null @@ -1,336 +0,0 @@ - 0) { - $download = $download71; - $zipAfterDirName = $zipAfterDirName71; -} elseif ($versionArray[0] == 7 && $versionArray[1] == 0) { - $download = $download56; - $zipAfterDirName = $zipAfterDirName56; -} elseif ($versionArray[1] >= 6) { - $download = $download56; - $zipAfterDirName = $zipAfterDirName56; -} elseif ($versionArray[1] == 5) { - $download = $download55; - $zipAfterDirName = $zipAfterDirName55; -} elseif ($versionArray[0] == 5 && $versionArray[1] == 4) { - $download = $download55; - $zipAfterDirName = $zipAfterDirName55; -} elseif ($versionArray[1] == 3) { - $download = $download55; - $zipAfterDirName = $zipAfterDirName55; -} else { - echo "php version check error!"; - exit; -} - -$ablogcmsDir = $installPath."/".$zipAfterDirName."/".$cmsDirName."/"; - -// -------------------------- -// a-blog cms ファイルをダウンロード -// -------------------------- - -$fp = fopen($download, "r"); -if ($fp !== FALSE) { - file_put_contents($zipFile, ""); - while(!feof($fp)) { - $buffer = fread($fp, 4096); - if ($buffer !== FALSE) { - file_put_contents($zipFile, $buffer, FILE_APPEND); - } - } - fclose($fp); -} else { - echo 'a-blog cms download Error ! : '.$download; - exit; -} - -// -------------------------- -// a-blog cms ファイルを解凍 -// -------------------------- - -$zip = new ZipArchive(); -$res = $zip->open($zipFile); - -if($res === true){ - $zip->extractTo($installPath); - $zip->close(); - -} else { - echo 'a-blog cms unZip Error ! : '. $zipFile; - exit; -} - -// -------------------------- -// a-blog cms ディレクトリを移動 -// -------------------------- - -if ($handle = opendir($ablogcmsDir)) { - while(false !== ($entry = readdir($handle))) { - if ($entry != "." && $entry != "..") { - rename($ablogcmsDir.$entry, $installPath ."/". $entry); - } - } - closedir($handle); -} else { - echo 'a-blog cms move Error ! :'.$ablogcmsDir; - exit; -} - - -// -------------------------- -// ioncube ファイルをダウンロード -// -------------------------- - -$fp = fopen($downloadIoncube, "r"); -if ($fp !== FALSE) { - file_put_contents($zipFileIoncube, ""); - while(!feof($fp)) { - $buffer = fread($fp, 4096); - if ($buffer !== FALSE) { - file_put_contents($zipFileIoncube, $buffer, FILE_APPEND); - } - } - fclose($fp); -} else { - echo 'ioncube loader download Error ! : '.$download; - exit; -} - -// -------------------------- -// ioncube ファイルを解凍 -// -------------------------- - -$zip = new ZipArchive(); -$res = $zip->open($zipFileIoncube); - -if($res === true){ - $zip->extractTo($installPath); - $zip->close(); - -} else { - echo 'ioncube loader unZip Error ! : '. $zipFileIoncube; - exit; -} - -// -------------------------- -// php.ini の設定 -// -------------------------- - -$iniFileName = "php.ini"; -$iniData = sprintf("date.timezone = 'Asia/Tokyo'\nzend_extension = \"%s/ioncube/ioncube_loader_fre_%s.so\"",$installPath,$version); -file_put_contents($installPath."/".$iniFileName, $iniData, FILE_APPEND | LOCK_EX); - -# setupディレクトリにも php.ini が必要な時のために -copy($installPath."/php.ini", $installPath."/setup/php.ini"); - -// -------------------------- -// .htaccess の設定 -// -------------------------- - -rename($installPath."/htaccess.txt", $installPath.'/.htaccess'); -rename($installPath."/archives/htaccess.txt", $installPath.'/archives/.htaccess'); -rename($installPath."/archives_rev/htaccess.txt", $installPath.'/archives_rev/.htaccess'); -rename($installPath."/media/htaccess.txt", $installPath.'/media/.htaccess'); -rename($installPath."/private/htaccess.txt", $installPath.'/private/.htaccess'); -rename($installPath."/themes/htaccess.txt", $installPath.'/themes/.htaccess'); - -# RewriteBase を調整 -if (!preg_match("/www$/", $installPath)) { - - if ($_SERVER['DOCUMENT_ROOT'].$_SERVER['SCRIPT_NAME'] != $_SERVER['SCRIPT_FILENAME']) { - - $installDir = str_replace($phpName, "", $_SERVER['SCRIPT_NAME']); - $htaccessFile = $installPath."/.htaccess"; - $data = file_get_contents($htaccessFile); - $data = str_replace("# RewriteBase /", "RewriteBase ".$installDir, $data); - file_put_contents($htaccessFile, $data); - } -} - -// -------------------------- -// DB 初期設定 -// -------------------------- - -$data = sprintf("(.*)<\/a><\/h1>/',$html,$matches); - - if (is_numeric($matches[2])) { - return "2.9.".$matches[2]; - } else { - return; - } - -} diff --git a/29x/update/readme.txt b/29x/update/readme.txt deleted file mode 100755 index 7abc64a..0000000 --- a/29x/update/readme.txt +++ /dev/null @@ -1,32 +0,0 @@ - -# 簡単アップデートについて - -「簡単アップデート」を利用すると 10KB程度の PHP ファイルをアップロードして、ブラウザで表示させるだけで a-blog cms のパッケージのアップデートが可能です。 - -2.8.x にすることで、今後は管理ページから可能です。 2.7.x までの環境でご利用ください。 - - -## 利用できるサーバー - -* どのような環境でも利用可能です。 - - -## 設定方法 - -以下のように設定が空であれば、バージョンを自動で取得します。 - -$ablogcmsVersion = ""; - -利用しているテーマを設定ください。 ( 最初の # を消すと有効になります) -systemはアップデート対象になりますので指定しないでください。 - -#$useThemes = "blog2016"; # "site2015|blog2015"; - - -## 利用方法 - -上記の設定を行った後に、サーバーにアップロードして、ブラウザ上からアクセスしてください。 - -これまでのファイルは backup_yyyymmddhhmmss ディレクトリに移動してバックアップしておいてくれます。 - - diff --git a/29x/update/update.php b/29x/update/update.php deleted file mode 100755 index 3866f9f..0000000 --- a/29x/update/update.php +++ /dev/null @@ -1,312 +0,0 @@ - 2.9.x update -// -// -------------------------- - -# 今後は、このアップデートを利用することなく管理ページから -# 可能になります。 - -$ablogcmsVersion = ""; #サイトからバージョンを自動チェック - -# ERROR になる場合や 2.9系のバージョンを -# 指定したい場合には、バージョンを設定してください。 - -#$ablogcmsVersion = "2.9.0"; - -// -------------------------- - -# 利用しているテーマを指定します。 -# 複数あれば | で区切って指定してください。 -# 継承しているテーマは全て含まれます。 -# systemはアップデート対象になりますので指定しないでください。 - -#$useThemes = "blog2016"; # "site2015|blog2015"; - - -// -------------------------- -// 二重実行防止処理 -// -------------------------- - -$lockFile = realpath('.'). "/update.lock"; - -if (is_file($lockFile)) { - echo "lockFile:".$lockFile; - exit; -} else { - touch($lockFile); -} - -// -------------------------- -// 現在の a-blog cms のバージョンをチェック -// -------------------------- - -if (!$ablogcmsVersion) { - $check = download_version_check (); - if ($check) { - $ablogcmsVersion = $check; - } else { - echo "web site version check error."; - exit; - } -} - -// -------------------------- - -# 実行時刻 -$ymdhis = date("YmdHis"); - -# ダウンロード元 URL -$download55 = sprintf("http://developer.a-blogcms.jp/_package/%s/acms%s_update2x_php5.3.zip",$ablogcmsVersion,$ablogcmsVersion); -$download56 = sprintf("http://developer.a-blogcms.jp/_package/%s/acms%s_update2x_php5.6.zip",$ablogcmsVersion,$ablogcmsVersion); -$download71 = sprintf("http://developer.a-blogcms.jp/_package/%s/acms%s_update2x_php7.1.zip",$ablogcmsVersion,$ablogcmsVersion); - -# ダウンロード後のZipファイル名 -$zipFile = sprintf("./acms_%s.zip",$ymdhis); - -# 解凍後の全体フォルダ名 -$zipAfterDirName55 = sprintf("acms%s_update2x_php5.3",$ablogcmsVersion); -$zipAfterDirName56 = sprintf("acms%s_update2x_php5.6",$ablogcmsVersion); -$zipAfterDirName71 = sprintf("acms%s_update2x_php7.1",$ablogcmsVersion); - -# 解凍後の a-blog cms のフォルダ名 -$cmsDirName = "ablogcms"; - -// -------------------------- -// バージョンチェック -// -------------------------- - -$versionArray = explode(".", phpversion()); -$version = $versionArray[0].".".$versionArray[1]; - - -if ($versionArray[0]==7 && $versionArray[1] > 0) { - $download = $download71; - $zipAfterDirName = $zipAfterDirName71; -} elseif ($versionArray[0] == 7 && $versionArray[1] == 0) { - $download = $download56; - $zipAfterDirName = $zipAfterDirName56; -} elseif ($versionArray[1] >= 6) { - $download = $download56; - $zipAfterDirName = $zipAfterDirName56; -} else { - $download = $download55; - $zipAfterDirName = $zipAfterDirName55; -} - -$installPath = realpath('.'); -$ablogcmsDir = $installPath."/".$zipAfterDirName."/".$cmsDirName; -$phpName = basename($_SERVER['PHP_SELF']); - -// -------------------------- -// a-blog cms ファイルをダウンロード -// -------------------------- - -$fp = fopen($download, "r"); -if ($fp !== FALSE) { - file_put_contents($zipFile, ""); - while(!feof($fp)) { - $buffer = fread($fp, 4096); - if ($buffer !== FALSE) { - file_put_contents($zipFile, $buffer, FILE_APPEND); - } - } - fclose($fp); -} else { - echo 'a-blog cms download Error ! : '.$download; - exit; -} - -// -------------------------- -// a-blog cms ファイルを解凍 -// -------------------------- - -$zip = new ZipArchive(); -$res = $zip->open($zipFile); - -if($res === true){ - $zip->extractTo($installPath); - $zip->close(); - -} else { - echo 'a-blog cms unZip Error ! : '. $zipFile; - exit; -} - -// -------------------------- -// バックアップ -// -------------------------- - -$backupDir = "backup_". $ymdhis; - -# バックアップディレクトリを作成 -mkdir($backupDir); - -# ファイルを移動 -if (is_file("./acms.js")) rename("./acms.js", $backupDir."/acms.js"); -if (is_file("./index.js")) rename("./index.js", $backupDir."/index.js"); -if (is_file("./500.html")) rename("./500.html", $backupDir."/500.html"); -rename("./index.php", $backupDir."/index.php"); - -# ディレクトリを移動 - -dir_shori("move", "./js", $backupDir."/js"); -dir_shori("move", "./lang", $backupDir."/lang"); -dir_shori("move", "./php", $backupDir."/php"); -dir_shori("move", "./private", $backupDir."/private"); -dir_shori("move", "./themes", $backupDir."/themes"); - -if (is_dir("./cache")) dir_shori("move", "./cache", $backupDir."/cache"); -if (is_dir("./extension")) dir_shori("move", "./extension", $backupDir."/extension"); - - -// -------------------------- -// update版 ファイル&ディレクトリを移動 -// -------------------------- - -dir_shori("move", $ablogcmsDir, $installPath); - -# 運用中のものを利用するので新しいファイルは削除 -unlink($installPath ."/htaccess.txt"); - -// -------------------------- -// カスタマイズ部分を戻す -// -------------------------- - -# themes を戻す -if (isset($useThemes)) { -if ($handle = opendir($backupDir."/themes")) { - while(false !== ($theme = readdir($handle))) { - if ($theme != "." && $theme != "..") { - if (preg_match("/".$useThemes."/", $theme)) { - if (is_dir("./themes/".$theme)) { - rename ("./themes/".$theme, "./themes/".$theme."_".$ablogcmsVersion); - } - dir_shori ("copy", $backupDir."/themes/".$theme, "./themes/".$theme); - } - } - } - closedir($handle); -} -} - -# /php/ACMS/User を戻す -rename ("./php/ACMS/User","./php/ACMS/User_".$ablogcmsVersion); -dir_shori ("copy", $backupDir."/php/ACMS/User", "./php/ACMS/User"); - -# php/AAPP を戻す -rename ("./php/AAPP", "./php/AAPP_".$ablogcmsVersion); -dir_shori ("copy", $backupDir."/php/AAPP", "./php/AAPP"); - -# /private/config.system.yaml を戻す -rename ("./private/config.system.yaml", "./private/config.system_".$ablogcmsVersion.".yaml"); -copy ($backupDir."/private/config.system.yaml", "./private/config.system.yaml"); - -# /extension を戻す -if (is_dir($backupDir."/extension")) { - rename ("./extension","./extension_".$ablogcmsVersion); - dir_shori ("copy", $backupDir."/extension", "./extension"); -} - -// -------------------------- -// .htaccess の設定 -// -------------------------- -rename("./private/htaccess.txt", './private/.htaccess'); -rename("./themes/htaccess.txt", './themes/.htaccess'); -rename("./cache/htaccess.txt", './cache/.htaccess'); - -// -------------------------- -// php.ini があった時の処理 -// -------------------------- - -if ( is_file( "./php.ini" )) { - copy("./php.ini", "./setup/php.ini"); -} - -// -------------------------- -// ファイルの削除 -// -------------------------- - -unlink($zipFile); -unlink($phpName); - -# プログラム以外のディレクトリを削除 -if ( is_file( "./index.php" )) { - dir_shori("delete", $zipAfterDirName); -} else { - echo "update error!"; - exit; -} - -unlink($lockFile); - -// -------------------------- -// インストーラーに飛ぶ -// -------------------------- - -$jump = str_replace($phpName, "", $_SERVER['SCRIPT_NAME']); -header("Location: " . $jump); - -// -------------------------- -// ディレクトリを操作 function ( move / copy / delete ) -// -------------------------- - -function dir_shori ($shori, $nowDir , $newDir="") { - - if ($shori != "delete") { - if (!is_dir($newDir)) { - mkdir($newDir); - } - } - - if (is_dir($nowDir)) { - if ($handle = opendir($nowDir)) { - while (($file = readdir($handle)) !== false) { - if ($file != "." && $file != "..") { - if ($shori == "copy") { - if (is_dir($nowDir."/".$file)) { - dir_shori("copy", $nowDir."/".$file, $newDir."/".$file); - } else { - copy($nowDir."/".$file, $newDir."/".$file); - } - } elseif ($shori == "move") { - rename($nowDir."/".$file, $newDir."/".$file); - } elseif ($shori == "delete") { - if (filetype($nowDir."/".$file) == "dir") { - dir_shori("delete", $nowDir."/".$file, ""); - } else { - unlink($nowDir."/".$file); - } - } - } - } - closedir($handle); - } - } - - if ($shori == "move" || $shori == "delete") { - rmdir($nowDir); - } - - return true; -} - -function download_version_check () { - - // Version 2.9.x のチェック用 - // 正常にチェックできない場合には 空 でかえす。 - - $options['ssl']['verify_peer']=false; - $options['ssl']['verify_peer_name']=false; - $html=file_get_contents('https://developer.a-blogcms.jp/download/', false, stream_context_create($options)); - preg_match('/

(.*)<\/a><\/h1>/',$html,$matches); - - if (is_numeric($matches[2])) { - return "2.9.".$matches[2]; - } else { - return; - } - -} \ No newline at end of file diff --git a/29x/xampp/readme.txt b/29x/xampp/readme.txt deleted file mode 100755 index 19fbb9c..0000000 --- a/29x/xampp/readme.txt +++ /dev/null @@ -1,30 +0,0 @@ - -# 簡単セットアップについて - -「簡単セットアップ」を利用すると 10KB程度の PHP ファイルをアップロードして、ブラウザで表示させるだけで a-blog cms のパッケージのダウンロードや ionCube Loader の設定が可能です。 - -## 利用できるサーバー - -* Windows XAMPP -* macOS MAMP -* KDDI ウェブコミュニケーションズ CPI ACE01 -* さくらインターネット レンタルサーバ -* ファーストサーバー Zenlogic -* エックスサーバー -* GMO ペパボ ヘテムル / ロリポップ - -## 利用方法 - -「簡単セットアップ」を利用することで以下の作業を自動化してくれます。 - -1. 利用されるPHPのバージョンに合わせた a-blog cms のパッケージを直接サーバー上にダウンロード -2. ダウンロードした Zipファイルを解凍し、設置先に移動 -3. サーバーにあわせた ionCube Loader を直接ダウンロード -4. ダウンロードした ionCube Loader の Zipファイルを解凍 -5. ionCube Loader 等を利用する設定を php.ini に設定 -6. .htaccess を有効にし、サーバーにあわせた設定 -7. ダウンロードした Zipファイルや、必要のないフォルダの削除 -8. a-blog cms インストーラーを起動 - - - diff --git a/29x/xampp/setup.php b/29x/xampp/setup.php deleted file mode 100755 index ba1210a..0000000 --- a/29x/xampp/setup.php +++ /dev/null @@ -1,365 +0,0 @@ - - - - -a-blog cms インストーラー (Windows XAMPP版) - - -open($zipFile); - -if($res === true){ - $zip->extractTo($installPath); - $zip->close(); - -} else { - echo 'a-blog cms unZip Error ! : '. $zipFile; - exit; -} - -// -------------------------- -// a-blog cms ディレクトリを移動 -// -------------------------- - -# index.php があった時にリネームしておく -if (is_file("./index.php")) { - rename("./index.php", "_index.php"); -} - -if ($handle = opendir($ablogcmsDir)) { - while(false !== ($entry = readdir($handle))) { - if ($entry != "." && $entry != "..") { - rename($ablogcmsDir.$entry, $installPath ."/". $entry); - } - } - closedir($handle); -} else { - echo 'a-blog cms move Error ! :'.$ablogcmsDir; - exit; -} - -// -------------------------- -// ioncube ファイルをダウンロード -// -------------------------- - -$fp = fopen($downloadIoncube, "r"); -if ($fp !== FALSE) { - file_put_contents($zipFileIoncube, ""); - while(!feof($fp)) { - $buffer = fread($fp, 4096); - if ($buffer !== FALSE) { - file_put_contents($zipFileIoncube, $buffer, FILE_APPEND); - } - } - fclose($fp); -} else { - echo 'ioncube loader download Error ! : '.$download; - exit; -} - -// -------------------------- -// ioncube ファイルを解凍 -// -------------------------- - -$zip = new ZipArchive(); -$res = $zip->open($zipFileIoncube); - -if($res === true){ - $zip->extractTo($installPath); - $zip->close(); - -} else { - echo 'ioncube loader unZip Error ! : '. $zipFileIoncube; - exit; -} - -// -------------------------- -// php.ini の設定 -// -------------------------- - -# php.ini のパスを設定する -$phpiniDir = explode("\htdocs",$installPath); -$iniFile = $phpiniDir[0]."\php\php.ini"; - -# 追記する設定内容 -$iniData = sprintf("\r\n\r\ndate.timezone = 'Asia/Tokyo'\r\n\r\nzend_extension = \"%s\ioncube\ioncube_loader_win_%d.%d.dll\"",$installPath,$versionArray[0],$versionArray[1]); - -$file = file_get_contents($iniFile); - -if (preg_match("/ioncube_loader/i", $file)) { - - # 設定済み - -} else { - $file = fopen( $iniFile, "a+" ); - fwrite( $file, $iniData ); - fclose( $file ); -} - -// -------------------------- -// .htaccess の設定 -// -------------------------- - -if ( is_file($installPath."/htaccess.txt") ) { - rename($installPath."/htaccess.txt", $installPath.'/.htaccess'); -} - -// -------------------------- -// DB 初期設定 -// -------------------------- - -$data = sprintf("XAMPPを再起動して %s にアクセスしてください。

',$jump,$jump); - -// -------------------------- -// ディレクトリを操作 function ( move / copy / delete ) -// -------------------------- - -function dir_shori ($shori, $nowDir , $newDir="") { - - if ($shori != "delete") { - if (!is_dir($newDir)) { - mkdir($newDir); - } - } - - if (is_dir($nowDir)) { - if ($handle = opendir($nowDir)) { - while (($file = readdir($handle)) !== false) { - if ($file != "." && $file != "..") { - if ($shori == "copy") { - if (is_dir($nowDir."/".$file)) { - dir_shori("copy", $nowDir."/".$file, $newDir."/".$file); - } else { - copy($nowDir."/".$file, $newDir."/".$file); - } - } elseif ($shori == "move") { - rename($nowDir."/".$file, $newDir."/".$file); - } elseif ($shori == "delete") { - if (filetype($nowDir."/".$file) == "dir") { - dir_shori("delete", $nowDir."/".$file, ""); - } else { - unlink($nowDir."/".$file); - } - } - } - } - closedir($handle); - } - } - - if ($shori == "move" || $shori == "delete") { - rmdir($nowDir); - } - - return true; -} - -function download_version_check () { - - // Version 2.9.x のチェック用 - // 正常にチェックできない場合には 空 でかえす。 - - $options['ssl']['verify_peer']=false; - $options['ssl']['verify_peer_name']=false; - $html=file_get_contents('https://developer.a-blogcms.jp/download/', false, stream_context_create($options)); - preg_match('/

(.*)<\/a><\/h1>/',$html,$matches); - - if (is_numeric($matches[2])) { - return "2.9.".$matches[2]; - } else { - return; - } - -} - - -?> - - \ No newline at end of file diff --git a/29x/xserver/readme.txt b/29x/xserver/readme.txt deleted file mode 100755 index 19fbb9c..0000000 --- a/29x/xserver/readme.txt +++ /dev/null @@ -1,30 +0,0 @@ - -# 簡単セットアップについて - -「簡単セットアップ」を利用すると 10KB程度の PHP ファイルをアップロードして、ブラウザで表示させるだけで a-blog cms のパッケージのダウンロードや ionCube Loader の設定が可能です。 - -## 利用できるサーバー - -* Windows XAMPP -* macOS MAMP -* KDDI ウェブコミュニケーションズ CPI ACE01 -* さくらインターネット レンタルサーバ -* ファーストサーバー Zenlogic -* エックスサーバー -* GMO ペパボ ヘテムル / ロリポップ - -## 利用方法 - -「簡単セットアップ」を利用することで以下の作業を自動化してくれます。 - -1. 利用されるPHPのバージョンに合わせた a-blog cms のパッケージを直接サーバー上にダウンロード -2. ダウンロードした Zipファイルを解凍し、設置先に移動 -3. サーバーにあわせた ionCube Loader を直接ダウンロード -4. ダウンロードした ionCube Loader の Zipファイルを解凍 -5. ionCube Loader 等を利用する設定を php.ini に設定 -6. .htaccess を有効にし、サーバーにあわせた設定 -7. ダウンロードした Zipファイルや、必要のないフォルダの削除 -8. a-blog cms インストーラーを起動 - - - diff --git a/29x/xserver/setup.php b/29x/xserver/setup.php deleted file mode 100755 index 3323c71..0000000 --- a/29x/xserver/setup.php +++ /dev/null @@ -1,358 +0,0 @@ - 0) { - $download = $download71; - $zipAfterDirName = $zipAfterDirName71; -} elseif ($versionArray[0] == 7 && $versionArray[1] == 0) { - $download = $download56; - $zipAfterDirName = $zipAfterDirName56; -} elseif ($versionArray[1] >= 6) { - $download = $download56; - $zipAfterDirName = $zipAfterDirName56; -} else { - $download = $download55; - $zipAfterDirName = $zipAfterDirName55; -} - -$ablogcmsDir = $installPath."/".$zipAfterDirName."/".$cmsDirName."/"; - -// -------------------------- -// a-blog cms ファイルをダウンロード -// -------------------------- - -$fp = fopen($download, "r"); -if ($fp !== FALSE) { - file_put_contents($zipFile, ""); - while(!feof($fp)) { - $buffer = fread($fp, 4096); - if ($buffer !== FALSE) { - file_put_contents($zipFile, $buffer, FILE_APPEND); - } - } - fclose($fp); -} else { - echo 'a-blog cms download Error ! : '.$download; - exit; -} - -// -------------------------- -// a-blog cms ファイルを解凍 -// -------------------------- - -$zip = new ZipArchive(); -$res = $zip->open($zipFile); - -if($res === true){ - $zip->extractTo($installPath); - $zip->close(); - -} else { - echo 'a-blog cms unZip Error ! : '. $zipFile; - exit; -} - -// -------------------------- -// a-blog cms ディレクトリを移動 -// -------------------------- - -if ($handle = opendir($ablogcmsDir)) { - while(false !== ($entry = readdir($handle))) { - if ($entry != "." && $entry != "..") { - rename($ablogcmsDir.$entry, $installPath ."/". $entry); - } - } - closedir($handle); -} else { - echo 'a-blog cms move Error ! :'.$ablogcmsDir; - exit; -} - -// -------------------------- -// ioncube ファイルをダウンロード -// -------------------------- - -$fp = fopen($downloadIoncube, "r"); -if ($fp !== FALSE) { - file_put_contents($zipFileIoncube, ""); - while(!feof($fp)) { - $buffer = fread($fp, 4096); - if ($buffer !== FALSE) { - file_put_contents($zipFileIoncube, $buffer, FILE_APPEND); - } - } - fclose($fp); -} else { - echo 'ioncube loader download Error ! : '.$download; - exit; -} - -// -------------------------- -// ioncube ファイルを解凍 -// -------------------------- - -$zip = new ZipArchive(); -$res = $zip->open($zipFileIoncube); - -if($res === true){ - $zip->extractTo($installPath); - $zip->close(); - -} else { - echo 'ioncube loader unZip Error ! : '. $zipFileIoncube; - exit; -} - -// -------------------------- -// php.ini の設定 -// -------------------------- - -$iniFile = php_ini_loaded_file(); - -if (preg_match("/xserver_php/i", $iniFile)) { - # 既存の php.ini に ioncube の設定があるかをチェック - $file = file_get_contents($iniFile); - if (preg_match("/ioncube_loader/i", $file)) { - #設定済み - } else { - - $pattern = '/\[Zend Optimizer\]/'; - $ioncube = sprintf("zend_extension = \"%s/ioncube/ioncube_loader_lin_%s.so\"",$installPath,$version); - $replacement = '[Zend Optimizer]'."\n".$ioncube; - $file = preg_replace($pattern, $replacement, $file); - file_put_contents($iniFile, $file); - } - -} else { - - if (preg_match("/public_html/i", $iniFile)) { - # 既に php.ini が存在しているのでバックアップ。 - rename("./php.ini", './php.ini_backup_'.date("YmdHis")); - } - # php.ini を新規作成 - - $iniFileName = "php.ini"; - $iniData = sprintf("date.timezone = 'Asia/Tokyo'\nzend_extension = \"%s/ioncube/ioncube_loader_lin_5.%d.so\"",$installPath,$versionArray[1]); - file_put_contents($installPath."/".$iniFileName, $iniData, FILE_APPEND | LOCK_EX); - - # setupディレクトリにも php.ini が必要な時のために - copy($installPath."/php.ini", $installPath."/setup/php.ini"); -} - - -// -------------------------- -// .htaccess の設定 -// -------------------------- - -$moto_htaccessFile = ".htaccess"; - -if (is_file($moto_htaccessFile)) { - - $htaccessData = file_get_contents($moto_htaccessFile); - $cms_htaccessData = file_get_contents("htaccess.txt"); - - $file = fopen( "./.htaccess", "w+" ); - fwrite( $file, $htaccessData ); - fwrite( $file, "\n\n".$cms_htaccessData ); - fclose( $file ); - -} else { - rename($installPath."/htaccess.txt", $installPath.'/.htaccess'); -} - -rename($installPath."/archives/htaccess.txt", $installPath.'/archives/.htaccess'); -rename($installPath."/archives_rev/htaccess.txt", $installPath.'/archives_rev/.htaccess'); -rename($installPath."/media/htaccess.txt", $installPath.'/media/.htaccess'); -rename($installPath."/private/htaccess.txt", $installPath.'/private/.htaccess'); -rename($installPath."/themes/htaccess.txt", $installPath.'/themes/.htaccess'); - -// -------------------------- -// ファイルの削除 -// -------------------------- - -unlink($zipFile); -unlink($zipFileIoncube); -unlink($phpName); - -# index.html があった時にリネームしておく -if (is_file("./index.html")) { - rename("./index.html", "_index.html"); -} - -unlink($installPath."/ioncube/loader-wizard.php"); - -# プログラム以外のディレクトリを削除 -dir_shori("delete", $zipAfterDirName); - -// -------------------------- -// インストーラーに飛ぶ -// -------------------------- - -if (preg_match("/public_html/i", $iniFile)) { - $jump = str_replace($phpName, "", $_SERVER['SCRIPT_NAME']); - header("Location: " . $jump); -} else { - -?> - - - - -a-blog cms インストーラー (XSERVER版) - - -%s にアクセスしてエラーが出る場合には、
設定した php.ini の設定が有効になっていません。

',$jump,$jump); - -?> -

コントロールパネルの「php.ini設定のphp.ini直接編集」にアクセスし何も変更せずに保存するか、
しばらく時間をおいてアクセスしてみてください。
設定した php.ini が有効になりインストーラーが起動します。

- - -(.*)<\/a><\/h1>/',$html,$matches); - - if (is_numeric($matches[2])) { - return "2.9.".$matches[2]; - } else { - return; - } - -} - diff --git a/29x/zenlogic/readme.txt b/29x/zenlogic/readme.txt deleted file mode 100755 index 19fbb9c..0000000 --- a/29x/zenlogic/readme.txt +++ /dev/null @@ -1,30 +0,0 @@ - -# 簡単セットアップについて - -「簡単セットアップ」を利用すると 10KB程度の PHP ファイルをアップロードして、ブラウザで表示させるだけで a-blog cms のパッケージのダウンロードや ionCube Loader の設定が可能です。 - -## 利用できるサーバー - -* Windows XAMPP -* macOS MAMP -* KDDI ウェブコミュニケーションズ CPI ACE01 -* さくらインターネット レンタルサーバ -* ファーストサーバー Zenlogic -* エックスサーバー -* GMO ペパボ ヘテムル / ロリポップ - -## 利用方法 - -「簡単セットアップ」を利用することで以下の作業を自動化してくれます。 - -1. 利用されるPHPのバージョンに合わせた a-blog cms のパッケージを直接サーバー上にダウンロード -2. ダウンロードした Zipファイルを解凍し、設置先に移動 -3. サーバーにあわせた ionCube Loader を直接ダウンロード -4. ダウンロードした ionCube Loader の Zipファイルを解凍 -5. ionCube Loader 等を利用する設定を php.ini に設定 -6. .htaccess を有効にし、サーバーにあわせた設定 -7. ダウンロードした Zipファイルや、必要のないフォルダの削除 -8. a-blog cms インストーラーを起動 - - - diff --git a/29x/zenlogic/setup.php b/29x/zenlogic/setup.php deleted file mode 100755 index e602450..0000000 --- a/29x/zenlogic/setup.php +++ /dev/null @@ -1,243 +0,0 @@ -= 6) { - $download = $download56; - $zipAfterDirName = $zipAfterDirName56; -} else { - $download = $download55; - $zipAfterDirName = $zipAfterDirName55; -} -$ablogcmsDir = $installPath."/".$zipAfterDirName."/".$cmsDirName."/"; - -// -------------------------- -// a-blog cms ファイルをダウンロード -// -------------------------- - -$fp = fopen($download, "r"); -if ($fp !== FALSE) { - file_put_contents($zipFile, ""); - while(!feof($fp)) { - $buffer = fread($fp, 4096); - if ($buffer !== FALSE) { - file_put_contents($zipFile, $buffer, FILE_APPEND); - } - } - fclose($fp); -} else { - echo 'a-blog cms download Error ! : '.$download; - exit; -} - -// -------------------------- -// a-blog cms ファイルを解凍 -// -------------------------- - -$zip = new ZipArchive(); -$res = $zip->open($zipFile); - -if($res === true){ - $zip->extractTo($installPath); - $zip->close(); - -} else { - echo 'a-blog cms unZip Error ! : '. $zipFile; - exit; -} - -// -------------------------- -// a-blog cms ディレクトリを移動 -// -------------------------- - -if ($handle = opendir($ablogcmsDir)) { - while(false !== ($entry = readdir($handle))) { - if ($entry != "." && $entry != "..") { - rename($ablogcmsDir.$entry, $installPath ."/". $entry); - } - } - closedir($handle); -} else { - echo 'a-blog cms move Error ! :'.$ablogcmsDir; - exit; -} - -// -------------------------- -// .htaccess の設定 -// -------------------------- - -rename($installPath."/htaccess.txt", $installPath.'/.htaccess'); -rename($installPath."/archives/htaccess.txt", $installPath.'/archives/.htaccess'); -rename($installPath."/private/htaccess.txt", $installPath.'/private/.htaccess'); - -// -------------------------- -// DB 初期設定 -// -------------------------- - -$data = sprintf("(.*)<\/a><\/h1>/',$html,$matches); - - if (is_numeric($matches[2])) { - return "2.9.".$matches[2]; - } else { - return; - } - -} diff --git a/30x/install/readme.txt b/30x/install/readme.txt new file mode 100755 index 0000000..a9c0fcf --- /dev/null +++ b/30x/install/readme.txt @@ -0,0 +1,14 @@ +# 簡単セットアップについて + +「簡単セットアップ」を利用すると 16KB程度の PHP ファイル をアップロードして、ブラウザで表示させるだけで a-blog cms のパッケージのダウンロードやファイルのリネーム作業などを自動化します。 + +# 動作環境 + +PHP 7.2.5 - 8.0.x +MySQL 5.x - / MariaDB + +# インストールについて + +インストールしたいディレクトリに setup.php をアップロードし、そのファイルをブラウザからアクセスください。 + +簡単セットアップ 画面が表示されますので、指示に従ってセットアップを完了してください。 diff --git a/30x/install/setup.php b/30x/install/setup.php new file mode 100755 index 0000000..358e8f2 --- /dev/null +++ b/30x/install/setup.php @@ -0,0 +1,616 @@ + 1) { + $cpi_check = $cpi_check_array[1]; +} + +if ($cpi_check == "secure") { + if ($cpi_php_version) { + $moto_version = $version; + $version = $cpi_php_version; + } + $cpi_htaccess_php = str_replace('.','', $version); +} + +$phpName = basename($_SERVER['PHP_SELF']); + +// -------------------------- +// 動作チェック +// -------------------------- + +if (is_file("./license.php")) { + $error_msg[] = "インストール先に license.php が見つかりました。
インストールを中止します。"; +} + +// -------------------------- +// バージョンのチェック +// -------------------------- + +if ($version < 7.2 || $version >= 8.1) { + + if ($cpi_check == "secure") { + $error_msg[] = $phpName." の \$cpi_php_version で PHP のバージョンを指定ください。"; + } else { + $error_msg[] = "PHP 7.2.x - 8.0.x をご利用ください。"; + } +} + +# ダウンロード元 URL +$download = sprintf("http://developer.a-blogcms.jp/_package/%s/acms%s.zip", $ablogcmsVersion, $ablogcmsVersion); +$zipFile = sprintf("./acms%s.zip", $ablogcmsVersion); + +$http_header = get_headers($download); +$httt_hedaer0_code = explode(" ",$http_header[0]); +if ( $httt_hedaer0_code[1] != "200" ) { + $error_msg[] = "a-blog cms のバーンジョン設定「".$ablogcmsVersion."」が間違っています。"; +} + +$installPath = realpath('.'); +$http_host = explode(":", $_SERVER['HTTP_HOST']); + +if (is_file($installPath."/".$zipFile) || is_file($installPath."/".$zipFile)) { + $_POST['action'] = ""; +} + + +?> + + + + + a-blog cms Ver. 3.x 簡単セットアップ + + + + +

a-blog cms Ver. 簡単セットアップ

+open($zipFile); + +if ($res === true) { + $zip->extractTo($installPath); + $zip->close(); +} else { + echo 'a-blog cms unZip Error ! : ' . $zipFile; + exit; +} + +// -------------------------- +// a-blog cms ディレクトリを移動 +// -------------------------- + +if ($handle = opendir($ablogcmsDir)) { + while (false !== ($entry = readdir($handle))) { + if ($entry != "." && $entry != "..") { + rename($ablogcmsDir . $entry, $installPath . "/" . $entry); + } + } + closedir($handle); +} else { + echo 'a-blog cms move Error ! :' . $ablogcmsDir; + exit; +} + +// -------------------------- +// .htaccess の設定 +// -------------------------- + +$moto_htaccessFile = ".htaccess"; + +if (is_file($moto_htaccessFile)) { + + $htaccessData = file_get_contents($moto_htaccessFile); + $cms_htaccessData = file_get_contents("htaccess.txt"); + + $file = fopen("./.htaccess", "w+"); + fwrite($file, $htaccessData); + fwrite($file, "\n\n" . $cms_htaccessData); + fclose($file); + +} else { + + rename($installPath . "/htaccess.txt", $installPath . '/.htaccess'); + + if ($cpi_check == "secure") { + + $htaccess = file_get_contents($installPath."/.htaccess"); + $cpi_htaccess = sprintf(" +deny from all + +Options +SymLinksIfOwnerMatch +AddHandler x-httpd-php%s .php\n\n",$cpi_htaccess_php); + + $fp = fopen($installPath."/.htaccess",'w'); + fwrite($fp,$cpi_htaccess.$htaccess); + fclose($fp); + } +} + +rename($installPath . "/editorconfig.txt", $installPath . '/.editorconfig'); +rename($installPath . "/env.txt", $installPath . '/.env'); +rename($installPath . "/gitignore.txt", $installPath . '/.gitignore'); + +rename($installPath . "/archives/htaccess.txt", $installPath . '/archives/.htaccess'); +rename($installPath . "/archives_rev/htaccess.txt", $installPath . '/archives_rev/.htaccess'); +rename($installPath . "/media/htaccess.txt", $installPath . '/media/.htaccess'); +rename($installPath . "/private/htaccess.txt", $installPath . '/private/.htaccess'); +rename($installPath . "/themes/htaccess.txt", $installPath . '/themes/.htaccess'); + +// -------------------------- +// DB 初期設定 +// -------------------------- + +$data = sprintf("open($theme_zip_file); + + if ($res === true) { + $zip->extractTo($installPath); + $zip->close(); + } else { + echo 'theme unZip Error ! : ' . $theme_zip_url; + exit; + } + + dir_shori("move", $theme_path . "/bin/" . $theme_name, $installPath . "/setup/bin/" . $theme_name); + dir_shori("move", $theme_path . "/themes/" . $theme_name, $installPath . "/themes/" . $theme_name); + + rename( $theme_path . "/tpl/install.html", $installPath . "/setup/tpl/install.html"); + rename( $theme_path . "/img/" . $theme_name . ".jpg", $installPath . "/setup/img/" . $theme_name . ".jpg"); + + $check_plugins = $theme_path."/plugins"; + if (is_dir($check_plugins)) { + if ($handle = opendir($check_plugins)) { + while (($file = readdir($handle)) !== false) { + if ($file != "." && $file != "..") { + if (is_dir($check_plugins."/".$file)) { + dir_shori("move", $check_plugins."/".$file, $installPath."/extension/plugins/".$file); + } + } + } + closedir($handle); + } + } + + dir_shori("delete", $theme_name); + unlink($theme_zip_file); +} + +// -------------------------- +// 拡張アプリをダウンロード +// -------------------------- + +if (isset($plugins_zip_file)) { + + $plugins_array = explode("|",$plugins_zip_file); + + foreach($plugins_array as $plugins_zip) { + + $plugins_name_version = explode(".",$plugins_zip); + $plugins_name_array = explode("_",$plugins_name_version[0]); + $plugins_name = $plugins_name_array[0]; + $plugins_zip_url = $plugins_download_url . $plugins_zip; + + $fp = fopen($plugins_zip_url, "r"); + if ($fp !== FALSE) { + file_put_contents($plugins_zip, ""); + while (!feof($fp)) { + $buffer = fread($fp, 4096); + if ($buffer !== FALSE) { + file_put_contents($plugins_zip, $buffer, FILE_APPEND); + } + } + fclose($fp); + } else { + echo 'plugin download Error ! : ' . $plugins_zip_url; + exit; + } + + $zip = new ZipArchive(); + $res = $zip->open($plugins_zip); + + if ($res === true) { + $zip->extractTo($installPath); + $zip->close(); + } else { + echo 'theme unZip Error ! : ' . $plugins_zip; + exit; + } + + dir_shori("move", $installPath ."/". $plugins_name, $installPath."/extension/plugins/" . $plugins_name); + unlink($plugins_zip); + } + +} + +// -------------------------- +// インストーラーに飛ぶ +// -------------------------- + +?> + +

セットアップ完了

+ +

a-blog cms のインストール準備が完了しました。

+

この ファイルについては削除済みです。

+ +
+ +
+ + + +

a-blog cms のパッケージのダウンロードとファイルのリネーム作業を行います。

+ +

PHP バージョンチェック

+ +
  • Ver. "; + } + + echo phpversion(); + + if ($cpi_php_version && $cpi_check == "secure") { + echo " → ". $version . "(変更)"; + } + ?>
+ +Special Theme Install

"; + + +$check = $theme_download_url.$theme_zip_file; +$http_header = get_headers($check); +$httt_hedaer0_code = explode(" ",$http_header[0]); +if ( $httt_hedaer0_code[1] != "200" ) { + $error_msg[] = "特製テーマ「".$theme_name[0]."」のダウンロード先の情報が間違っています。"; + echo "
  • ".$theme_name[0]."
"; +} else { + echo "
  • ".$theme_name[0]."
"; +} +} + +if (isset($plugins_zip_file)) { + +$plugins_array = explode("|",$plugins_zip_file); +echo "

Plugins Install

"; +echo "
    "; + +foreach($plugins_array as $plugins_zip) { + + $plugins_name_version = explode(".",$plugins_zip); + $plugins_name = explode("_",$plugins_name_version[0]); + + $check = $plugins_download_url.$plugins_zip; + $http_header = get_headers($check); + $httt_hedaer0_code = explode(" ",$http_header[0]); + + if ( $httt_hedaer0_code[1] != "200" ) { + $error_msg[] = "拡張アプリ「".$plugins_name[0]."」のダウンロード先の情報が間違っています。"; + echo "
  • ".$plugins_name[0]."
  • "; + } else { + echo "
  • ".$plugins_name[0]."
  • "; + } +} +echo "
"; +} + + if (empty($error_msg)){ + ?> + +
+ +
+ + Error

"; + foreach($error_msg as $msg) { + echo sprintf("

%s

",$msg); + } + } + + + +} + +exit; +?> + + +
(.*)<\/a><\/h1>/', $html, $matches); + + if (is_numeric($matches[2])) { + return "3.0." . $matches[2]; + } else { + return; + } +} diff --git a/30x/update/readme.txt b/30x/update/readme.txt new file mode 100755 index 0000000..5a20170 --- /dev/null +++ b/30x/update/readme.txt @@ -0,0 +1,39 @@ +# 簡単アップデートについて + +「簡単アップデート」を利用すると 10KB程度の PHP ファイルをアップロードして、ブラウザで表示させるだけで a-blog cms のパッケージのアップデートが可能です。 + +2.x から 3.0.x にアップデートする際に利用ください。 + + +## 利用できるサーバー + +* どのような環境でも利用可能です。 + + +## 設定方法 + +アップデートバージョンを指定する場合は「$ablogcmsVersion」を指定ください。 +( 最初の # を消すと有効になります) +指定しない場合、最新バージョンにアップデートされます。 + +``` +#$ablogcmsVersion = "3.0.0"; +``` + +利用しているテーマを設定ください。 ( 最初の # を消すと有効になります) +systemはアップデート対象になりますので指定しないでください。 +指定したテーマ名を含むテーマも対象になります。(例: site2020を指定した場合、sp@site2020 や blog@site2020 も対象になります) + +``` +#$useThemes = "blog2020"; # "site2020|blog2020"; +``` + +## 利用方法 + +上記の設定を行った後に、サーバーにアップロードして、ブラウザ上からアクセスしてください。 + +これまでのファイルは backup_yyyymmddhhmmss ディレクトリに移動してバックアップしておいてくれます。 + +もし、途中でエラーになった際には、update.lock というファイルが作られます。再実行する際には update.lockファイルを削除してください。 + +license.php が 開発用になりますので、本番環境の場合には MYPAGE より 3.0 対応版のライセンスをダウンロードください。 \ No newline at end of file diff --git a/211x/update/update.php b/30x/update/update.php similarity index 78% rename from 211x/update/update.php rename to 30x/update/update.php index 3676783..ba1d1f9 100755 --- a/211x/update/update.php +++ b/30x/update/update.php @@ -1,31 +1,29 @@ 2.11.x update +// a-blog cms 2.x -> 3.x update // // -------------------------- -# 今後は、このアップデートを利用することなく管理ページから -# 可能になります。 - -$ablogcmsVersion = ""; #サイトからバージョンを自動チェック +# 今後は、このアップデートを利用することなく管理ページから可能になります。 -# ERROR になる場合や 2.11系のバージョンを -# 指定したい場合には、バージョンを設定してください。 +# アップデートバージョンを指定する場合は「$ablogcmsVersion」を指定ください。 +# 指定しない場合、最新バージョンにアップデートされます。 -#$ablogcmsVersion = "2.11.0"; +#$ablogcmsVersion = "3.0.0"; # バージョンを指定する際には行頭の # を削除してください。 // -------------------------- # 利用しているテーマを指定します。 # 複数あれば | で区切って指定してください。 -# 継承しているテーマは全て含まれます。 +# 指定したテーマ名が入る、テーマも対象になります。(例: site2020を指定した場合、sp@site2020 や blog@site2020 も対象になります) # systemはアップデート対象になりますので指定しないでください。 - -#$useThemes = "blog2016"; # "site2015|blog2015"; - +#$useThemes = "blog2020"; # 複数の場合には | で区切って "site2020|blog2020"; // -------------------------- // 二重実行防止処理 @@ -60,21 +58,21 @@ $ymdhis = date("YmdHis"); # ダウンロード元 URL -$download55 = sprintf("http://developer.a-blogcms.jp/_package/%s/acms%s_update2x_php5.3.zip",$ablogcmsVersion,$ablogcmsVersion); -$download56 = sprintf("http://developer.a-blogcms.jp/_package/%s/acms%s_update2x_php5.6.zip",$ablogcmsVersion,$ablogcmsVersion); -$download71 = sprintf("http://developer.a-blogcms.jp/_package/%s/acms%s_update2x_php7.1.zip",$ablogcmsVersion,$ablogcmsVersion); +$download = sprintf("http://developer.a-blogcms.jp/_package/%s/acms%s_update2x.zip",$ablogcmsVersion,$ablogcmsVersion); # ダウンロード後のZipファイル名 -$zipFile = sprintf("./acms_%s.zip",$ymdhis); +$zipFile = sprintf("./acms%s_update2x.zip",$ablogcmsVersion); # 解凍後の全体フォルダ名 -$zipAfterDirName55 = sprintf("acms%s_update2x_php5.3",$ablogcmsVersion); -$zipAfterDirName56 = sprintf("acms%s_update2x_php5.6",$ablogcmsVersion); -$zipAfterDirName71 = sprintf("acms%s_update2x_php7.1",$ablogcmsVersion); +$zipAfterDirName = sprintf("acms%s_update2x",$ablogcmsVersion); # 解凍後の a-blog cms のフォルダ名 $cmsDirName = "ablogcms"; +$installPath = realpath('.'); +$ablogcmsDir = $installPath."/".$zipAfterDirName."/".$cmsDirName; +$phpName = basename($_SERVER['PHP_SELF']); + // -------------------------- // バージョンチェック // -------------------------- @@ -82,24 +80,10 @@ $versionArray = explode(".", phpversion()); $version = $versionArray[0].".".$versionArray[1]; - -if ($versionArray[0]==7 && $versionArray[1] > 0) { - $download = $download71; - $zipAfterDirName = $zipAfterDirName71; -} elseif ($versionArray[0] == 7 && $versionArray[1] == 0) { - $download = $download56; - $zipAfterDirName = $zipAfterDirName56; -} elseif ($versionArray[1] >= 6) { - $download = $download56; - $zipAfterDirName = $zipAfterDirName56; -} else { - $download = $download55; - $zipAfterDirName = $zipAfterDirName55; -} - -$installPath = realpath('.'); -$ablogcmsDir = $installPath."/".$zipAfterDirName."/".$cmsDirName; -$phpName = basename($_SERVER['PHP_SELF']); +if ($version < 7.2) { + echo "Installation error. Please use PHP 7.2 or higher."; + exit; +} // -------------------------- // a-blog cms ファイルをダウンロード @@ -149,8 +133,11 @@ if (is_file("./acms.js")) rename("./acms.js", $backupDir."/acms.js"); if (is_file("./index.js")) rename("./index.js", $backupDir."/index.js"); if (is_file("./500.html")) rename("./500.html", $backupDir."/500.html"); + rename("./index.php", $backupDir."/index.php"); +rename ("./license.php", $backupDir."/license.php"); + # ディレクトリを移動 dir_shori("move", "./js", $backupDir."/js"); @@ -159,9 +146,9 @@ dir_shori("move", "./private", $backupDir."/private"); dir_shori("move", "./themes", $backupDir."/themes"); -if (is_dir("./cache")) dir_shori("move", "./cache", $backupDir."/cache"); if (is_dir("./extension")) dir_shori("move", "./extension", $backupDir."/extension"); - +#if (is_dir("./cache")) dir_shori("move", "./cache", $backupDir."/cache"); +dir_shori ("delete", "cache"); // -------------------------- // update版 ファイル&ディレクトリを移動 @@ -169,8 +156,8 @@ dir_shori("move", $ablogcmsDir, $installPath); -# 運用中のものを利用するので新しいファイルは削除 -unlink($installPath ."/htaccess.txt"); +# 3.0対応 ライセンスファイル に上書き(ライセンス切れになります) +rename ($installPath."/".$zipAfterDirName."/omake/license.php", "./license.php"); // -------------------------- // カスタマイズ部分を戻す @@ -183,7 +170,7 @@ if ($theme != "." && $theme != "..") { if (preg_match("/".$useThemes."/", $theme)) { if (is_dir("./themes/".$theme)) { - rename ("./themes/".$theme, "./themes/".$theme."_".$ablogcmsVersion); + rename ("./themes/".$theme, "./themes/".$theme."_".$ablogcmsVersion); } dir_shori ("copy", $backupDir."/themes/".$theme, "./themes/".$theme); } @@ -214,9 +201,15 @@ // -------------------------- // .htaccess の設定 // -------------------------- + +rename("./htaccess.txt", './htaccess_'.$ablogcmsVersion.'.txt'); + rename("./private/htaccess.txt", './private/.htaccess'); rename("./themes/htaccess.txt", './themes/.htaccess'); rename("./cache/htaccess.txt", './cache/.htaccess'); +rename("./editorconfig.txt", './.editorconfig'); +rename("./env.txt", './.env'); +rename("./gitignore.txt", './.gitignore'); // -------------------------- // php.ini があった時の処理 @@ -296,18 +289,17 @@ function dir_shori ($shori, $nowDir , $newDir="") { function download_version_check () { - // Version 2.11.x のチェック用 + // Version 3.0.x のチェック用 // 正常にチェックできない場合には 空 でかえす。 $options['ssl']['verify_peer']=false; $options['ssl']['verify_peer_name']=false; $html=file_get_contents('https://developer.a-blogcms.jp/download/', false, stream_context_create($options)); - preg_match('/

(.*)<\/a><\/h1>/',$html,$matches); + preg_match('/

(.*)<\/a><\/h1>/',$html,$matches); if (is_numeric($matches[2])) { - return "2.11.".$matches[2]; + return "3.0.".$matches[2]; } else { return; } - } diff --git a/README.md b/README.md index 6e0af19..f9668f8 100644 --- a/README.md +++ b/README.md @@ -1,22 +1,11 @@ # a-blog cms 簡単セットアップ / 簡単アップデート -## 簡単アップデート -より簡単に、ご利用の環境に合わせて a-blog cms をアップデートできるパッケージです。 - -- [簡単アップデート 2.8x](https://github.com/appleple/acms-easy-setup/raw/master/build/28x/update.zip) -- [簡単アップデート 2.9x](https://github.com/appleple/acms-easy-setup/raw/master/build/29x/update.zip) -- [簡単アップデート 2.10x](https://github.com/appleple/acms-easy-setup/raw/master/build/210x/update.zip) -- [簡単アップデート 2.11x](https://github.com/appleple/acms-easy-setup/raw/master/build/211x/update.zip) - ## 簡単セットアップ より簡単に、ご利用の環境に合わせて a-blog cms をインストールできるパッケージです。 -以下の環境に対応しています。 -- [macOS MAMP版](https://github.com/appleple/acms-easy-setup/raw/master/build/28x/mamp.zip) -- [Windows XAMPP版](https://github.com/appleple/acms-easy-setup/raw/master/build/28x/xampp.zip) -- [KDDI ウェブコミュニケーションズ CPI ACE01版](https://github.com/appleple/acms-easy-setup/raw/master/build/28x/cpi.zip) -- [さくらインターネット レンタルサーバ版](https://github.com/appleple/acms-easy-setup/raw/master/build/28x/sakura.zip) -- [ファーストサーバー Zenlogic版](https://github.com/appleple/acms-easy-setup/raw/master/build/28x/zenlogic.zip) -- [GMO ペパボ ヘテムル版](https://github.com/appleple/acms-easy-setup/raw/master/build/28x/heteml.zip) -- [GMO ペパボ ロリポップ版](https://github.com/appleple/acms-easy-setup/raw/master/build/28x/lolipop.zip) -- [エックスサーバー版](https://github.com/appleple/acms-easy-setup/raw/master/build/28x/xserver.zip) \ No newline at end of file +- [簡単セットアップ 3.0.x](https://github.com/appleple/acms-easy-setup/raw/master/build/30x/install.zip) + +## 簡単アップデート +より簡単に、ご利用の環境に合わせて a-blog cms をアップデートできるパッケージです。 + +- [簡単アップデート 3.0.x](https://github.com/appleple/acms-easy-setup/raw/master/build/30x/update.zip) \ No newline at end of file diff --git a/build/210x/cpi.zip b/build/210x/cpi.zip deleted file mode 100644 index 6cbe4ba..0000000 Binary files a/build/210x/cpi.zip and /dev/null differ diff --git a/build/210x/heteml.zip b/build/210x/heteml.zip deleted file mode 100644 index bfa35be..0000000 Binary files a/build/210x/heteml.zip and /dev/null differ diff --git a/build/210x/lolipop.zip b/build/210x/lolipop.zip deleted file mode 100644 index c8f3284..0000000 Binary files a/build/210x/lolipop.zip and /dev/null differ diff --git a/build/210x/mamp.zip b/build/210x/mamp.zip deleted file mode 100644 index e5ff6a8..0000000 Binary files a/build/210x/mamp.zip and /dev/null differ diff --git a/build/210x/sakura.zip b/build/210x/sakura.zip deleted file mode 100644 index e2e1850..0000000 Binary files a/build/210x/sakura.zip and /dev/null differ diff --git a/build/210x/update.zip b/build/210x/update.zip deleted file mode 100644 index e03c802..0000000 Binary files a/build/210x/update.zip and /dev/null differ diff --git a/build/210x/xampp.zip b/build/210x/xampp.zip deleted file mode 100644 index c30f60e..0000000 Binary files a/build/210x/xampp.zip and /dev/null differ diff --git a/build/210x/xserver.zip b/build/210x/xserver.zip deleted file mode 100644 index e1c7396..0000000 Binary files a/build/210x/xserver.zip and /dev/null differ diff --git a/build/210x/zenlogic.zip b/build/210x/zenlogic.zip deleted file mode 100644 index b2e8340..0000000 Binary files a/build/210x/zenlogic.zip and /dev/null differ diff --git a/build/211x/cpi.zip b/build/211x/cpi.zip deleted file mode 100644 index 8fe43ab..0000000 Binary files a/build/211x/cpi.zip and /dev/null differ diff --git a/build/211x/heteml.zip b/build/211x/heteml.zip deleted file mode 100644 index 33d1c21..0000000 Binary files a/build/211x/heteml.zip and /dev/null differ diff --git a/build/211x/lolipop.zip b/build/211x/lolipop.zip deleted file mode 100644 index ffe2141..0000000 Binary files a/build/211x/lolipop.zip and /dev/null differ diff --git a/build/211x/mamp.zip b/build/211x/mamp.zip deleted file mode 100644 index fd2f0f7..0000000 Binary files a/build/211x/mamp.zip and /dev/null differ diff --git a/build/211x/onamae.zip b/build/211x/onamae.zip deleted file mode 100644 index 94500b9..0000000 Binary files a/build/211x/onamae.zip and /dev/null differ diff --git a/build/211x/sakura.zip b/build/211x/sakura.zip deleted file mode 100644 index 3ffcbd7..0000000 Binary files a/build/211x/sakura.zip and /dev/null differ diff --git a/build/211x/update.zip b/build/211x/update.zip deleted file mode 100644 index 59fa6b7..0000000 Binary files a/build/211x/update.zip and /dev/null differ diff --git a/build/211x/xampp.zip b/build/211x/xampp.zip deleted file mode 100644 index fbd4219..0000000 Binary files a/build/211x/xampp.zip and /dev/null differ diff --git a/build/211x/xserver.zip b/build/211x/xserver.zip deleted file mode 100644 index d43487a..0000000 Binary files a/build/211x/xserver.zip and /dev/null differ diff --git a/build/211x/zenlogic.zip b/build/211x/zenlogic.zip deleted file mode 100644 index c1ec031..0000000 Binary files a/build/211x/zenlogic.zip and /dev/null differ diff --git a/build/28x/cpi.zip b/build/28x/cpi.zip deleted file mode 100644 index 3ebf9fc..0000000 Binary files a/build/28x/cpi.zip and /dev/null differ diff --git a/build/28x/heteml.zip b/build/28x/heteml.zip deleted file mode 100644 index 6fbe0b7..0000000 Binary files a/build/28x/heteml.zip and /dev/null differ diff --git a/build/28x/lolipop.zip b/build/28x/lolipop.zip deleted file mode 100644 index b2dcec7..0000000 Binary files a/build/28x/lolipop.zip and /dev/null differ diff --git a/build/28x/mamp.zip b/build/28x/mamp.zip deleted file mode 100644 index 25e3a00..0000000 Binary files a/build/28x/mamp.zip and /dev/null differ diff --git a/build/28x/sakura.zip b/build/28x/sakura.zip deleted file mode 100644 index 62321fe..0000000 Binary files a/build/28x/sakura.zip and /dev/null differ diff --git a/build/28x/update.zip b/build/28x/update.zip deleted file mode 100644 index 28136da..0000000 Binary files a/build/28x/update.zip and /dev/null differ diff --git a/build/28x/xampp.zip b/build/28x/xampp.zip deleted file mode 100644 index e423b0e..0000000 Binary files a/build/28x/xampp.zip and /dev/null differ diff --git a/build/28x/xserver.zip b/build/28x/xserver.zip deleted file mode 100644 index 8e2056c..0000000 Binary files a/build/28x/xserver.zip and /dev/null differ diff --git a/build/28x/zenlogic.zip b/build/28x/zenlogic.zip deleted file mode 100644 index 4779c35..0000000 Binary files a/build/28x/zenlogic.zip and /dev/null differ diff --git a/build/29x/cpi.zip b/build/29x/cpi.zip deleted file mode 100644 index 6665de5..0000000 Binary files a/build/29x/cpi.zip and /dev/null differ diff --git a/build/29x/heteml.zip b/build/29x/heteml.zip deleted file mode 100644 index e7a92bc..0000000 Binary files a/build/29x/heteml.zip and /dev/null differ diff --git a/build/29x/lolipop.zip b/build/29x/lolipop.zip deleted file mode 100644 index 8c11e35..0000000 Binary files a/build/29x/lolipop.zip and /dev/null differ diff --git a/build/29x/mamp.zip b/build/29x/mamp.zip deleted file mode 100644 index bb96117..0000000 Binary files a/build/29x/mamp.zip and /dev/null differ diff --git a/build/29x/sakura.zip b/build/29x/sakura.zip deleted file mode 100644 index 138fae1..0000000 Binary files a/build/29x/sakura.zip and /dev/null differ diff --git a/build/29x/update.zip b/build/29x/update.zip deleted file mode 100644 index 5cb6feb..0000000 Binary files a/build/29x/update.zip and /dev/null differ diff --git a/build/29x/xampp.zip b/build/29x/xampp.zip deleted file mode 100644 index 83a8722..0000000 Binary files a/build/29x/xampp.zip and /dev/null differ diff --git a/build/29x/xserver.zip b/build/29x/xserver.zip deleted file mode 100644 index a96b6aa..0000000 Binary files a/build/29x/xserver.zip and /dev/null differ diff --git a/build/29x/zenlogic.zip b/build/29x/zenlogic.zip deleted file mode 100644 index 3c60e45..0000000 Binary files a/build/29x/zenlogic.zip and /dev/null differ diff --git a/build/30x/install.zip b/build/30x/install.zip new file mode 100644 index 0000000..5a1cb6b Binary files /dev/null and b/build/30x/install.zip differ diff --git a/build/30x/update.zip b/build/30x/update.zip new file mode 100644 index 0000000..50ef10f Binary files /dev/null and b/build/30x/update.zip differ diff --git a/deploy.js b/deploy.js index e8d94e6..002477a 100644 --- a/deploy.js +++ b/deploy.js @@ -52,28 +52,15 @@ const zipPromise = (src, dist) => { } function *zipPromiseVersion (version) { - yield zipPromise(`${version}/cpi`, `./build/${version}/cpi.zip`); - yield zipPromise(`${version}/heteml`, `./build/${version}/heteml.zip`); - yield zipPromise(`${version}/lolipop`, `./build/${version}/lolipop.zip`); - yield zipPromise(`${version}/mamp`, `./build/${version}/mamp.zip`); - yield zipPromise(`${version}/sakura`, `./build/${version}/sakura.zip`); - yield zipPromise(`${version}/xampp`, `./build/${version}/xampp.zip`); - yield zipPromise(`${version}/xserver`, `./build/${version}/xserver.zip`); - yield zipPromise(`${version}/zenlogic`, `./build/${version}/zenlogic.zip`); + yield zipPromise(`${version}/install`, `./build/${version}/install.zip`); yield zipPromise(`${version}/update`, `./build/${version}/update.zip`); } co(function* () { try { fs.mkdirsSync(`build`); - fs.mkdirsSync(`build/28x`); - fs.mkdirsSync(`build/29x`); - fs.mkdirsSync(`build/210x`); - fs.mkdirsSync(`build/211x`); - yield zipPromiseVersion('28x'); - yield zipPromiseVersion('29x'); - yield zipPromiseVersion('210x'); - yield zipPromiseVersion('211x'); + fs.mkdirsSync(`build/30x`); + yield zipPromiseVersion('30x'); yield systemCmd('git add -A'); yield systemCmd(`git commit -m "v${pkg.version}"`); yield systemCmd('git push'); diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..fd092bd --- /dev/null +++ b/package-lock.json @@ -0,0 +1,711 @@ +{ + "name": "acms-easy-setup", + "version": "2.0.6", + "lockfileVersion": 2, + "requires": true, + "packages": { + "": { + "version": "2.0.6", + "license": "MIT", + "devDependencies": { + "archiver": "^2.1.1", + "co": "^4.6.0", + "fs-extra": "^2.1.2", + "node-cmd": "^3.0.0" + } + }, + "node_modules/archiver": { + "version": "2.1.1", + "dev": true, + "license": "MIT", + "dependencies": { + "archiver-utils": "^1.3.0", + "async": "^2.0.0", + "buffer-crc32": "^0.2.1", + "glob": "^7.0.0", + "lodash": "^4.8.0", + "readable-stream": "^2.0.0", + "tar-stream": "^1.5.0", + "zip-stream": "^1.2.0" + }, + "engines": { + "node": ">= 4" + } + }, + "node_modules/archiver-utils": { + "version": "1.3.0", + "dev": true, + "license": "MIT", + "dependencies": { + "glob": "^7.0.0", + "graceful-fs": "^4.1.0", + "lazystream": "^1.0.0", + "lodash": "^4.8.0", + "normalize-path": "^2.0.0", + "readable-stream": "^2.0.0" + }, + "engines": { + "node": ">= 0.10.0" + } + }, + "node_modules/async": { + "version": "2.6.3", + "dev": true, + "license": "MIT", + "dependencies": { + "lodash": "^4.17.14" + } + }, + "node_modules/balanced-match": { + "version": "1.0.0", + "dev": true, + "license": "MIT" + }, + "node_modules/base64-js": { + "version": "1.3.1", + "dev": true, + "license": "MIT" + }, + "node_modules/bl": { + "version": "1.2.2", + "dev": true, + "license": "MIT", + "dependencies": { + "readable-stream": "^2.3.5", + "safe-buffer": "^5.1.1" + } + }, + "node_modules/brace-expansion": { + "version": "1.1.11", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/buffer": { + "version": "5.4.3", + "dev": true, + "license": "MIT", + "dependencies": { + "base64-js": "^1.0.2", + "ieee754": "^1.1.4" + } + }, + "node_modules/buffer-alloc": { + "version": "1.2.0", + "dev": true, + "license": "MIT", + "dependencies": { + "buffer-alloc-unsafe": "^1.1.0", + "buffer-fill": "^1.0.0" + } + }, + "node_modules/buffer-alloc-unsafe": { + "version": "1.1.0", + "dev": true, + "license": "MIT" + }, + "node_modules/buffer-crc32": { + "version": "0.2.13", + "dev": true, + "license": "MIT", + "engines": { + "node": "*" + } + }, + "node_modules/buffer-fill": { + "version": "1.0.0", + "dev": true, + "license": "MIT" + }, + "node_modules/co": { + "version": "4.6.0", + "dev": true, + "license": "MIT", + "engines": { + "iojs": ">= 1.0.0", + "node": ">= 0.12.0" + } + }, + "node_modules/compress-commons": { + "version": "1.2.2", + "dev": true, + "license": "MIT", + "dependencies": { + "buffer-crc32": "^0.2.1", + "crc32-stream": "^2.0.0", + "normalize-path": "^2.0.0", + "readable-stream": "^2.0.0" + }, + "engines": { + "node": ">= 0.10.0" + } + }, + "node_modules/concat-map": { + "version": "0.0.1", + "dev": true, + "license": "MIT" + }, + "node_modules/core-util-is": { + "version": "1.0.2", + "dev": true, + "license": "MIT" + }, + "node_modules/crc": { + "version": "3.8.0", + "dev": true, + "license": "MIT", + "dependencies": { + "buffer": "^5.1.0" + } + }, + "node_modules/crc32-stream": { + "version": "2.0.0", + "dev": true, + "license": "MIT", + "dependencies": { + "crc": "^3.4.4", + "readable-stream": "^2.0.0" + }, + "engines": { + "node": ">= 0.10.0" + } + }, + "node_modules/end-of-stream": { + "version": "1.4.4", + "dev": true, + "license": "MIT", + "dependencies": { + "once": "^1.4.0" + } + }, + "node_modules/fs-constants": { + "version": "1.0.0", + "dev": true, + "license": "MIT" + }, + "node_modules/fs-extra": { + "version": "2.1.2", + "dev": true, + "license": "MIT", + "dependencies": { + "graceful-fs": "^4.1.2", + "jsonfile": "^2.1.0" + } + }, + "node_modules/fs.realpath": { + "version": "1.0.0", + "dev": true, + "license": "ISC" + }, + "node_modules/glob": { + "version": "7.1.5", + "dev": true, + "license": "ISC", + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + } + }, + "node_modules/graceful-fs": { + "version": "4.2.3", + "dev": true, + "license": "ISC" + }, + "node_modules/ieee754": { + "version": "1.1.13", + "dev": true, + "license": "BSD-3-Clause" + }, + "node_modules/inflight": { + "version": "1.0.6", + "dev": true, + "license": "ISC", + "dependencies": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "node_modules/inherits": { + "version": "2.0.4", + "dev": true, + "license": "ISC" + }, + "node_modules/isarray": { + "version": "1.0.0", + "dev": true, + "license": "MIT" + }, + "node_modules/jsonfile": { + "version": "2.4.0", + "dev": true, + "license": "MIT", + "optionalDependencies": { + "graceful-fs": "^4.1.6" + } + }, + "node_modules/lazystream": { + "version": "1.0.0", + "dev": true, + "license": "MIT", + "dependencies": { + "readable-stream": "^2.0.5" + }, + "engines": { + "node": ">= 0.6.3" + } + }, + "node_modules/lodash": { + "version": "4.17.21", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", + "dev": true + }, + "node_modules/minimatch": { + "version": "3.0.4", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/node-cmd": { + "version": "3.0.0", + "dev": true, + "license": "DBAD" + }, + "node_modules/normalize-path": { + "version": "2.1.1", + "dev": true, + "license": "MIT", + "dependencies": { + "remove-trailing-separator": "^1.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/once": { + "version": "1.4.0", + "dev": true, + "license": "ISC", + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/path-is-absolute": { + "version": "1.0.1", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/process-nextick-args": { + "version": "2.0.1", + "dev": true, + "license": "MIT" + }, + "node_modules/readable-stream": { + "version": "2.3.6", + "dev": true, + "license": "MIT", + "dependencies": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "node_modules/remove-trailing-separator": { + "version": "1.1.0", + "dev": true, + "license": "ISC" + }, + "node_modules/safe-buffer": { + "version": "5.1.2", + "dev": true, + "license": "MIT" + }, + "node_modules/string_decoder": { + "version": "1.1.1", + "dev": true, + "license": "MIT", + "dependencies": { + "safe-buffer": "~5.1.0" + } + }, + "node_modules/tar-stream": { + "version": "1.6.2", + "dev": true, + "license": "MIT", + "dependencies": { + "bl": "^1.0.0", + "buffer-alloc": "^1.2.0", + "end-of-stream": "^1.0.0", + "fs-constants": "^1.0.0", + "readable-stream": "^2.3.0", + "to-buffer": "^1.1.1", + "xtend": "^4.0.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/to-buffer": { + "version": "1.1.1", + "dev": true, + "license": "MIT" + }, + "node_modules/util-deprecate": { + "version": "1.0.2", + "dev": true, + "license": "MIT" + }, + "node_modules/wrappy": { + "version": "1.0.2", + "dev": true, + "license": "ISC" + }, + "node_modules/xtend": { + "version": "4.0.2", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.4" + } + }, + "node_modules/zip-stream": { + "version": "1.2.0", + "dev": true, + "license": "MIT", + "dependencies": { + "archiver-utils": "^1.3.0", + "compress-commons": "^1.2.0", + "lodash": "^4.8.0", + "readable-stream": "^2.0.0" + }, + "engines": { + "node": ">= 0.10.0" + } + } + }, + "dependencies": { + "archiver": { + "version": "2.1.1", + "dev": true, + "requires": { + "archiver-utils": "^1.3.0", + "async": "^2.0.0", + "buffer-crc32": "^0.2.1", + "glob": "^7.0.0", + "lodash": "^4.8.0", + "readable-stream": "^2.0.0", + "tar-stream": "^1.5.0", + "zip-stream": "^1.2.0" + } + }, + "archiver-utils": { + "version": "1.3.0", + "dev": true, + "requires": { + "glob": "^7.0.0", + "graceful-fs": "^4.1.0", + "lazystream": "^1.0.0", + "lodash": "^4.8.0", + "normalize-path": "^2.0.0", + "readable-stream": "^2.0.0" + } + }, + "async": { + "version": "2.6.3", + "dev": true, + "requires": { + "lodash": "^4.17.14" + } + }, + "balanced-match": { + "version": "1.0.0", + "dev": true + }, + "base64-js": { + "version": "1.3.1", + "dev": true + }, + "bl": { + "version": "1.2.2", + "dev": true, + "requires": { + "readable-stream": "^2.3.5", + "safe-buffer": "^5.1.1" + } + }, + "brace-expansion": { + "version": "1.1.11", + "dev": true, + "requires": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "buffer": { + "version": "5.4.3", + "dev": true, + "requires": { + "base64-js": "^1.0.2", + "ieee754": "^1.1.4" + } + }, + "buffer-alloc": { + "version": "1.2.0", + "dev": true, + "requires": { + "buffer-alloc-unsafe": "^1.1.0", + "buffer-fill": "^1.0.0" + } + }, + "buffer-alloc-unsafe": { + "version": "1.1.0", + "dev": true + }, + "buffer-crc32": { + "version": "0.2.13", + "dev": true + }, + "buffer-fill": { + "version": "1.0.0", + "dev": true + }, + "co": { + "version": "4.6.0", + "dev": true + }, + "compress-commons": { + "version": "1.2.2", + "dev": true, + "requires": { + "buffer-crc32": "^0.2.1", + "crc32-stream": "^2.0.0", + "normalize-path": "^2.0.0", + "readable-stream": "^2.0.0" + } + }, + "concat-map": { + "version": "0.0.1", + "dev": true + }, + "core-util-is": { + "version": "1.0.2", + "dev": true + }, + "crc": { + "version": "3.8.0", + "dev": true, + "requires": { + "buffer": "^5.1.0" + } + }, + "crc32-stream": { + "version": "2.0.0", + "dev": true, + "requires": { + "crc": "^3.4.4", + "readable-stream": "^2.0.0" + } + }, + "end-of-stream": { + "version": "1.4.4", + "dev": true, + "requires": { + "once": "^1.4.0" + } + }, + "fs-constants": { + "version": "1.0.0", + "dev": true + }, + "fs-extra": { + "version": "2.1.2", + "dev": true, + "requires": { + "graceful-fs": "^4.1.2", + "jsonfile": "^2.1.0" + } + }, + "fs.realpath": { + "version": "1.0.0", + "dev": true + }, + "glob": { + "version": "7.1.5", + "dev": true, + "requires": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + } + }, + "graceful-fs": { + "version": "4.2.3", + "dev": true + }, + "ieee754": { + "version": "1.1.13", + "dev": true + }, + "inflight": { + "version": "1.0.6", + "dev": true, + "requires": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "inherits": { + "version": "2.0.4", + "dev": true + }, + "isarray": { + "version": "1.0.0", + "dev": true + }, + "jsonfile": { + "version": "2.4.0", + "dev": true, + "requires": { + "graceful-fs": "^4.1.6" + } + }, + "lazystream": { + "version": "1.0.0", + "dev": true, + "requires": { + "readable-stream": "^2.0.5" + } + }, + "lodash": { + "version": "4.17.21", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", + "dev": true + }, + "minimatch": { + "version": "3.0.4", + "dev": true, + "requires": { + "brace-expansion": "^1.1.7" + } + }, + "node-cmd": { + "version": "3.0.0", + "dev": true + }, + "normalize-path": { + "version": "2.1.1", + "dev": true, + "requires": { + "remove-trailing-separator": "^1.0.1" + } + }, + "once": { + "version": "1.4.0", + "dev": true, + "requires": { + "wrappy": "1" + } + }, + "path-is-absolute": { + "version": "1.0.1", + "dev": true + }, + "process-nextick-args": { + "version": "2.0.1", + "dev": true + }, + "readable-stream": { + "version": "2.3.6", + "dev": true, + "requires": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "remove-trailing-separator": { + "version": "1.1.0", + "dev": true + }, + "safe-buffer": { + "version": "5.1.2", + "dev": true + }, + "string_decoder": { + "version": "1.1.1", + "dev": true, + "requires": { + "safe-buffer": "~5.1.0" + } + }, + "tar-stream": { + "version": "1.6.2", + "dev": true, + "requires": { + "bl": "^1.0.0", + "buffer-alloc": "^1.2.0", + "end-of-stream": "^1.0.0", + "fs-constants": "^1.0.0", + "readable-stream": "^2.3.0", + "to-buffer": "^1.1.1", + "xtend": "^4.0.0" + } + }, + "to-buffer": { + "version": "1.1.1", + "dev": true + }, + "util-deprecate": { + "version": "1.0.2", + "dev": true + }, + "wrappy": { + "version": "1.0.2", + "dev": true + }, + "xtend": { + "version": "4.0.2", + "dev": true + }, + "zip-stream": { + "version": "1.2.0", + "dev": true, + "requires": { + "archiver-utils": "^1.3.0", + "compress-commons": "^1.2.0", + "lodash": "^4.8.0", + "readable-stream": "^2.0.0" + } + } + } +} diff --git a/package.json b/package.json index b94a91c..d1c0bcf 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "acms-easy-setup", - "version": "1.2.3", + "version": "2.0.6", "description": "より簡単に、ご利用の環境に合わせて a-blog cms をアップデートできるパッケージです。", "main": "deploy.js", "scripts": { @@ -25,6 +25,5 @@ "co": "^4.6.0", "fs-extra": "^2.1.2", "node-cmd": "^3.0.0" - }, - "dependencies": {} + } }