This file contains 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 | |
/** | |
* Sql_import class. | |
* | |
* Reads a SQL file (e.g. a dump from phpmyadmin) and executes it programmatically. | |
* | |
* Handles procedures, triggers etc. and can load large dumps. Great for | |
* installer scripts to load up a db schema and populate with initial data. | |
* | |
* Came from: http://stackoverflow.com/questions/147821/loading-sql-files-from-within-php |
This file contains 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 | |
/** | |
* Description | |
* | |
* @author Denis Chenu <denis@sondages.pro> | |
* @copyright 2017 Denis Chenu <http://www.sondages.pro> | |
* @license WTFPL | |
* @version 0.0.1 | |
* | |
* This program is free software: you can redistribute it and/or modify |
This file contains 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 | |
/** | |
* CLI events of LimeSurvey | |
* To be move to limesurvey/plugins/cliEvent directory | |
* | |
* @author Denis Chenu <denis@sondages.pro> | |
* @copyright 2016-2019 Denis Chenu <http://www.sondages.pro> | |
* @license WTFPL (Do What The Fuck You Want to Public License) | |
* @version 0.1.0 | |
* |
This file contains 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 | |
require_once './jsonrpcphp/includes/jsonRPCClient.php'; | |
$rpcUrl="http://example.org/plugins/unsecure?plugin=extendRemoteControl&function=action"; | |
$rpcUser="rcUser"; | |
$rpcPassword="rcPassword"; | |
$iSurveyId=1234; | |
$lsJSONRPCClient = new jsonRPCClient($rpcUrl); |
This file contains 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
### Keybase proof | |
I hereby claim: | |
* I am shnoulle on github. | |
* I am shnoulle (https://keybase.io/shnoulle) on keybase. | |
* I have a public key ASCJ2FRtJOBNorXKgNCT1aNCktrBcQpqlwQ6vcvgHgdA-go | |
To claim this, I am signing this object: |
This file contains 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
/* in config */ | |
'myCache'=>array( | |
'class'=>'system.caching.CDbCache', | |
'gCProbability'=>1000, | |
), | |
/* Usage */ | |
Yii::app()->myCache->get($cacheId);// Get from cache | |
Yii::app()->myCache->set($cacheId,$oObject);// Set in cache (+ another specifi options here |
This file contains 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
'messages' => array( | |
'class' => 'CGettextMessageSource', | |
'cachingDuration'=>3600, | |
'forceTranslation' => true, | |
'useMoFile' => true, | |
'basePath' => __DIR__ . DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'locale' | |
), | |
'messagesPlugin' => array( | |
'class' => 'PluginMessageSource', // to be created | |
'cachingDuration'=>3600, |
This file contains 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 | |
/** | |
* extend admin statitics with own controller extending the LS core controller | |
* | |
* @author Denis Chenu <denis@sondages.pro> | |
* @copyright 2016 Denis Chenu <http://www.sondages.pro> | |
* @license WTFPL | |
* @version 0.0.0 | |
* | |
* This program is free software: you can redistribute it and/or modify |
This file contains 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 | |
/** | |
* extend admin statitics with own controller extending the LS core controller | |
* | |
* @author Denis Chenu <denis@sondages.pro> | |
* @copyright 2016 Denis Chenu <http://www.sondages.pro> | |
* @license WTFPL | |
* @version 0.0.0 | |
* | |
* This program is free software: you can redistribute it and/or modify |
NewerOlder