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 | |
/** | |
* HelloWorld plugin for Piwik 2.0 | |
* | |
* @author Sean Pinegar | |
* @link http://seanpinegar.com | |
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later | |
* | |
* @category Piwik_Plugins | |
* @package HelloWorld |
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
{ | |
"HelloWorld": { | |
"PluginDescription": "Piwik 2.0 Hello World Tutorial", | |
"submenu": "Overview" | |
} | |
} |
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
<h1>Hello World</h1> |
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 | |
/** | |
* HelloWorld plugin for Piwik 2.0 | |
* | |
* @author Sean Pinegar | |
* @link http://seanpinegar.com | |
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later | |
* | |
* @category Piwik_Plugins | |
* @package HelloWorld |
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
{ | |
"name": "HelloWorld", | |
"version": "1.0", | |
"description": "HelloWorld Plugin for Piwik 2.0", | |
"theme": false, | |
"author": "Sean Pinegar", | |
"author_homepage": "http://seanpinegar.com", | |
"license": "GPL v3", | |
"license_homepage": "http://www.gnu.org/licenses/gpl-3.0.html" | |
} |
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
├── Piwik/ | |
| | | |
| ├── plugins/ | |
| │ │ | |
| │ ├── HelloWorld/ | |
| │ │ │ | |
| │ │ ├── API.php | |
| │ │ ├── Controller.php | |
| │ │ │ | |
| │ │ ├── lang/ |
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 | |
/** | |
* HelloWorld plugin for Piwik 2.0 | |
* | |
* @author Sean Pinegar | |
* @link http://seanpinegar.com | |
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later | |
* | |
* @category Piwik_Plugins | |
* @package HelloWorld |
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 | |
class Helpers { | |
/* | |
|-------------------------------------------------------------------------- | |
| Recursive Array Search | |
|-------------------------------------------------------------------------- | |
| | |
| Check if array contains specified key or value |
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 | |
class AuthController extends BaseController { | |
public function login() | |
{ | |
try | |
{ | |
// Set login credentials | |
$credentials = array( | |
'email' => Input::get('email') ?: null, | |
'password' => Input::get('password') ?: null |
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
OPTIMIZE TABLE accounts; | |
OPTIMIZE TABLE accounts_audit; | |
OPTIMIZE TABLE accounts_bugs; | |
OPTIMIZE TABLE accounts_cases; | |
OPTIMIZE TABLE accounts_contacts; | |
OPTIMIZE TABLE accounts_cstm; | |
OPTIMIZE TABLE accounts_opportunities; | |
OPTIMIZE TABLE accro_account_roles; | |
OPTIMIZE TABLE accro_account_roles_accounts_c; | |
OPTIMIZE TABLE accro_account_roles_audit; |