This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #!/bin/sh | |
| # sshpassコマンドが利用できること | |
| # --deleteオプションはお好みで | |
| #sshpass用のパスワード | |
| SERVERPASS='sshpassword' | |
| #除外ファイルを指定して纏める | |
| EXCLUDE=("/config/database.php" "/files/") | |
| for i in "${!EXCLUDE[@]}" | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | ー へ | |
| :eye::nose::eye: | |
| ) :lips:( | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <?php | |
| use Symfony\Component\ClassLoader\MapClassLoader; | |
| defined('C5_EXECUTE') or die('Access Denied.'); | |
| /** | |
| * ---------------------------------------------------------------------------- | |
| * Load all composer autoload items. | |
| * ---------------------------------------------------------------------------- | |
| */ | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <?php | |
| /* =============================================== | |
| @application/bootstrap/app.php | |
| jsはapplication/jsへ | |
| cssはapplication/cssへ | |
| =============================================== */ | |
| $al = AssetList::getInstance(); | |
| $al->register( | |
| 'css', | |
| 'my_css_handle', | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <?php | |
| /* =============================================== | |
| @application/bootstrap/app.php | |
| //for ajax | |
| /endpoint/fav/{page_id} にアクセスすると、 | |
| Application\Controller\FavクラスののsetFavoriteメソッドを実行 | |
| {page_id}は引数、この場合はページIDを渡して処理に使ったりとか | |
| URLのルールとかできることはsymfonyのドキュメントとかで | |
| =============================================== */ | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <?php | |
| //毎回忘れる | |
| public function csv_gen($data_array,$user_id){ | |
| try { | |
| //一時ファイルの用意 | |
| $csvFileName = '/tmp/' . time() . rand() . '.csv'; | |
| $res = fopen($csvFileName, 'w'); | |
| if ($res === FALSE) { | |
| throw new Exception('ファイルの書き込みに失敗しました。'); | |
| } | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <?php | |
| $fh = Core::make('helper/form'); | |
| //text | |
| echo $fh->text($name, $default_value, array('style' => 'display:block;'),'cutom_class_01 custom_class_02'); | |
| //submit | |
| echo $fh->submit($name, $default_value, array('style' => 'display:block;'),'cutom_class_01 custom_class_02'); | |
| //label | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | /* =============================================== | |
| ajax_base | |
| =============================================== */ | |
| /* ajax url,nounce | |
| =============================================== */ | |
| function add_ajaxurl_and_nounce() { | |
| ?> | |
| <script> | |
| var ajaxurl = '<?php echo admin_url( 'admin-ajax.php'); ?>'; | |
| var ajaxnounse = '<?php echo wp_create_nonce("ajax_base");?>'; | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #!/bin/sh | |
| #cd インストールディレクトリ/sh/ | |
| #第一引数はconcrete以下からディレクトリを指定ディレクトリを指定、最後に/あり | |
| #第二引数はファイル名 | |
| #実行例 concreet5ディレクトリ内のview.phpをアプリケーション領域の同じ場所へコピー | |
| #./c5_file_copy.sh blocks/faq/ view.php | |
| #シェルの事良くわからん・・・ | |
| PARENT=$(cd $(dirname $0)/..;pwd) | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <?php | |
| // http://concrete5-japan.org/help/5-7/developer/working-with-pages/searching-and-sorting-with-the-pagelist-object/ | |
| $list = new \Concrete\Core\Page\PageList(); | |
| //ページタイプでフィルター | |
| $list->filterByPageTypeHandle('blog_entry'); | |
| //複数のタイプでフィルター | |
| $list->filterByPageTypeHandle(array('blog_entry', 'press_release')); | |
| //キーワードでフィルター(シンプル) |