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 | |
// そのままでは動きません | |
if (!defined('XOOPS_ROOT_PATH')) { | |
exit(); | |
} | |
class EncryptSha1Password extends XCube_ActionFilter | |
{ | |
public function preFilter() | |
{ |
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 | |
/** | |
* Cycle.php | |
* | |
* @author Ryuji AMANO <[email protected]> | |
*/ | |
/** | |
* Class Cycle | |
*/ |
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 | |
if (!defined('XOOPS_ROOT_PATH')) exit(); | |
class htmlReplace extends XCube_ActionFilter | |
{ | |
function preFilter() | |
{ | |
$this->mRoot->mDelegateManager->add('XoopsTpl.New', array( &$this , 'xoopsTplHook' ) ) ; | |
} |
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 | |
function smarty_modifier_inline_image($url) | |
{ | |
// $urlを内部パスに置き換える | |
$path = str_replace(XOOPS_URL , XOOPS_ROOT_PATH, $url); | |
if(strpos($path, XOOPS_ROOT_PATH) === false){ | |
// 内部パスに置き換えられなければ元のURLを返す | |
return $url; | |
} |
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 | |
$questionnaire = $this->_getQuestionnaireForAnswerCsv($questionnaireKey); | |
$csv = new CsvExporter(); | |
// 回答データを一気に全部取得するのは、データ爆発の可能性があるので | |
// QUESTIONNAIRE_CSV_UNIT_NUMBER分に制限して取得する | |
$offset = 0; | |
do { | |
$datas = $this->QuestionnaireAnswerSummaryCsv->getAnswerSummaryCsv($questionnaire, QuestionnairesComponent::QUESTIONNAIRE_CSV_UNIT_NUMBER, $offset); |
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 | |
// @see http://xoops.ryus.co.jp/modules/d3blog/details.php?bid=373 | |
// @see http://qiita.com/RyujiAMANO/items/24f5f0397621f007c07e | |
class IsToppage extends XCube_ActionFilter | |
{ | |
protected $isTop = false; | |
public function preBlockFilter() | |
{ | |
$this->mController->mRoot->mDelegateManager->add("Legacypage.Top.Access", array(&$this, 'topAccess')); | |
} |
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 | |
App::uses('FormHelper', 'View/Helper'); | |
class CubeCakeFormHelper extends FormHelper | |
{ | |
public $labelDomain = null; | |
public function __construct(View $View, $settings = array()) | |
{ | |
parent::__construct($View, $settings); |
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/bash -e | |
PROJECT=`pwd` | |
APP="" | |
PLUGIN="" | |
if [ ! -z `echo $PROJECT | egrep 'app/Plugin'` ] | |
then | |
APP=`echo $PROJECT | sed 's/\/\w\+\/\w\+\/\w\+$//'` | |
PLUGIN=`echo $PROJECT | sed 's/.*\/\(\w\+\)$/\1/'` | |
fi |
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 | |
if(isset($_POST['Writeable'])){ | |
chmod( "install.inc.php", 0644); | |
} | |
if(isset($_POST['ReadOnly'])){ | |
chmod( "install.inc.php", 0444); | |
} | |
?> | |
<html> |
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 | |
/** | |
* インストール時configファイル | |
* | |
* @package NetCommons.component | |
* @author Noriko Arai,Ryuji Masukawa | |
* @copyright 2006-2007 NetCommons Project | |
* @license http://www.netcommons.org/license.txt NetCommons License | |
* @project NetCommons Project, supported by National Institute of Informatics | |
* @access public |
NewerOlder