Exemple #1
0
<?php

Croogo::hookRoutes('Kieken');
#Croogo::hookBehavior('Node', 'Example.Example', array());
#Croogo::hookComponent('*', 'Kieken.Kieken');
Croogo::hookComponent('Nodes', 'Kieken.KiekenFeatured');
Croogo::hookComponent('Dolfify.Frontpage', 'Kieken.KiekenFeatured');
#Croogo::hookHelper('Nodes', 'Example.Example');
Croogo::hookAdminMenu('Kieken');
#Croogo::hookAdminRowAction('Nodes/admin_index', 'Example', 'plugin:example/controller:example/action:index/:id');
#Croogo::hookAdminTab('Nodes/admin_add', 'Example', 'example.admin_tab_node');
#Croogo::hookAdminTab('Nodes/admin_edit', 'Example', 'example.admin_tab_node');
# Load the Kieken settings
if (file_exists(APP . 'plugins' . DS . 'kieken' . DS . 'config' . DS . 'settings.yml')) {
    $settings = Spyc::YAMLLoad(file_get_contents(APP . 'plugins' . DS . 'kieken' . DS . 'config' . DS . 'settings.yml'));
}
foreach ($settings as $settingKey => $settingValue) {
    Configure::write($settingKey, $settingValue);
}
Exemple #2
0
<?php

Croogo::hookRoutes('J2c');
Croogo::hookComponent('*', 'J2c.J2c');
Croogo::hookAdminMenu('J2c');
<?php

/**
 * Routes
 *
 * example_routes.php will be loaded in main app/config/routes.php file.
 */
Croogo::hookRoutes('Example');
/**
 * Behavior
 *
 * This plugin's Example behavior will be attached whenever Node model is loaded.
 */
Croogo::hookBehavior('Node', 'Example.Example', array());
/**
 * Component
 *
 * This plugin's Example component will be loaded in ALL controllers.
 */
Croogo::hookComponent('*', 'Example.Example');
/**
 * Helper
 *
 * This plugin's Example helper will be loaded via NodesController.
 */
Croogo::hookHelper('Nodes', 'Example.Example');
/**
 * Admin menu (navigation)
 *
 * This plugin's admin_menu element will be rendered in admin panel under Extensions menu.
 */
Exemple #4
0
<?php

Croogo::hookRoutes('ImportCrm');
CroogoNav::add('importcrm', array('icon' => 'th', 'title' => 'Import CRM', 'url' => array('admin' => true, 'plugin' => 'import_crm', 'controller' => 'Importcrms', 'action' => 'index'), 'weight' => 20));
Exemple #5
0
<?php

Croogo::hookRoutes('Emarketing');
// Croogo::hookHelper('Attachments', 'Tinymce.Tinymce');
/**
 * Admin menu (navigation)
 */
CroogoNav::add('emarketing', array('title' => __('Emarketing'), 'icon' => 'envelope large', 'url' => array('admin' => true, 'plugin' => 'emarketing', 'controller' => 'mailings', 'action' => 'index'), 'weight' => 30));
Croogo::mergeConfig('Wysiwyg.actions', array('Mailings/admin_add' => array(array('elements' => 'MailingBody', 'preset' => 'standard')), 'Mailings/admin_edit' => array(array('elements' => 'MailingBody', 'preset' => 'standard'))));
<?php

/**
 * Routes
 *
 * example_routes.php will be loaded in main app/config/routes.php file.
 */
Croogo::hookRoutes('Rastreamento');
/**
 * Behavior
 *
 * This plugin's Example behavior will be attached whenever Node model is loaded.
 */
//Croogo::hookBehavior('Node', 'Rastreamento.Example', array());
/**
 * Component
 *
 * This plugin's Example component will be loaded in ALL controllers.
 */
//Croogo::hookComponent('*', 'Example.Example');
/**
 * Helper
 *
 * This plugin's Example helper will be loaded via NodesController.
 */
//Croogo::hookHelper('Nodes', 'Example.Example');
/**
 * Admin menu (navigation)
 *
 * This plugin's admin_menu element will be rendered in admin panel under Extensions menu.
 */
Exemple #7
0
<?php

/**
 * Routes
 *
 * example_routes.php will be loaded in main app/config/routes.php file.
 */
Croogo::hookRoutes('Galeria');
/**
 * Admin menu (navigation)
 */
CroogoNav::add('extensions.children.galeria', array('title' => 'Galerias', 'url' => '/admin/galeria/galerias/index', 'children' => array('gallery1' => array('title' => 'Listar Galerias', 'url' => '/admin/galeria/galerias/index'))));
 * 
 * A must have for every application in the world.
 */
defined('TWITTERLOGIN_DEBUG') or define('TWITTERLOGIN_DEBUG', false);
/**
 * The administrators IP address
 * 
 * Only this user can view the debugging
 */
defined('TWITTERLOGIN_ADMINIP') or define('TWITTERLOGIN_ADMINIP', '71.231.37.59');
/**
 * Routes
 *
 * twitterlogin_routes.php will be loaded in main app/config/routes.php file.
 */
Croogo::hookRoutes('Twitterlogin');
/**
 * Behavior
 *
 * This plugin's Example behavior will be attached whenever Node model is loaded.
 */
//Croogo::hookBehavior('Node', 'Example.Example', array());
/**
 * Component
 *
 * This plugin's Example component will be loaded in ALL controllers.
 */
Croogo::hookComponent('*', 'Twitterlogin.Twitterlogin');
/**
 * Helper
 *
Exemple #9
0
<?php

/**
 * Routes
 *
 * example_routes.php will be loaded in main app/config/routes.php file.
 */
Croogo::hookRoutes('Tags');
Exemple #10
0
<?php

Croogo::hookRoutes('Multiattach');
Croogo::hookComponent('Nodes', 'Multiattach.Multiattaches');
Croogo::hookBehavior('Node', 'Multiattach.Multiattach', array());
//Croogo::hookAdminTab('Nodes/admin_add', 'Attachments', 'Multiattach.admin_tab_node');
Croogo::hookAdminTab('Nodes/admin_edit', 'Attachments', 'Multiattach.admin_tab_node');
CroogoNav::add('settings.children.multiattach', array('title' => __('Multiattach'), 'url' => array('plugin' => 'Multiattach', 'controller' => 'Multiattach', 'action' => 'settings'), 'access' => array('admin')));
<?php

$useragents = array(array('nome' => '\\"mozilla'), array('nome' => '<?'), array('nome' => '<?php'), array('nome' => 'acquia-crawler'), array('nome' => 'adultsvisitus'), array('nome' => 'alexa'), array('nome' => 'ant'), array('nome' => 'atrax'), array('nome' => 'baiduspider'), array('nome' => 'bdfetch'), array('nome' => 'betabot'), array('nome' => 'bitlybot'), array('nome' => 'biz360'), array('nome' => 'blogblogs'), array('nome' => 'blogcop'), array('nome' => 'blogsearch'), array('nome' => 'blogshares.com'), array('nome' => 'boardreader'), array('nome' => 'btwebclient'), array('nome' => 'buzzzy.com'), array('nome' => 'camontspider'), array('nome' => 'casper'), array('nome' => 'ccbot'), array('nome' => 'cfnetwork'), array('nome' => 'chen'), array('nome' => 'cityreview'), array('nome' => 'comodospider'), array('nome' => 'core-project'), array('nome' => 'curl'), array('nome' => 'cyberpatrol'), array('nome' => 'czxt2s'), array('nome' => 'davclnt'), array('nome' => 'description:'), array('nome' => 'docomo'), array('nome' => 'duckduckpreview;'), array('nome' => 'ecairn-grabber'), array('nome' => 'elinks'), array('nome' => 'exactsearch'), array('nome' => 'explorer'), array('nome' => 'facebookexternalhit'), array('nome' => 'fdm'), array('nome' => 'finly'), array('nome' => 'firebat'), array('nome' => 'fj'), array('nome' => 'gaisbot'), array('nome' => 'gbplugin'), array('nome' => 'geohasher'), array('nome' => 'gigabot'), array('nome' => 'http://networktools'), array('nome' => 'http::lite'), array('nome' => 'ia_archiver'), array('nome' => 'internet'), array('nome' => 'jakarta'), array('nome' => 'java'), array('nome' => 'jayde'), array('nome' => 'jigsaw'), array('nome' => 'jomjaibot'), array('nome' => 'kmccrew'), array('nome' => 'lexxebot'), array('nome' => 'libwww-perl'), array('nome' => 'linkedinbot'), array('nome' => 'linkwithin'), array('nome' => 'loadimpactpageanalyzer'), array('nome' => 'longurl'), array('nome' => 'lwp-request'), array('nome' => 'lwp-trivial'), array('nome' => 'lynx'), array('nome' => 'magent'), array('nome' => 'magpie-crawler'), array('nome' => 'mail.ru'), array('nome' => 'mama'), array('nome' => 'maui'), array('nome' => 'metauri'), array('nome' => 'mlbot'), array('nome' => 'moreoverbot'), array('nome' => 'motorokr'), array('nome' => 'msft_bi'), array('nome' => 'msie'), array('nome' => 'msproxy'), array('nome' => 'msr-isrccrawler'), array('nome' => 'myapp'), array('nome' => 'netestate'), array('nome' => 'noopsis'), array('nome' => 'orbitscripts.com'), array('nome' => 'ossproxy'), array('nome' => 'page_test'), array('nome' => 'panscient.com'), array('nome' => 'pear'), array('nome' => 'php'), array('nome' => 'pirst;'), array('nome' => 'plagger'), array('nome' => 'planetwork'), array('nome' => 'ppc;'), array('nome' => 'psbot'), array('nome' => 'puxarapido'), array('nome' => 'python-urllib'), array('nome' => 'r6_commentreader'), array('nome' => 'r6_feedfetcher'), array('nome' => 'research-scan-bot'), array('nome' => 'rt240x320'), array('nome' => 's2bot'), array('nome' => 'sch-u450'), array('nome' => 'semtobot'), array('nome' => 'sheenbot'), array('nome' => 'simplepie'), array('nome' => 'slimbrowser'), array('nome' => 'snapbot'), array('nome' => 'snk'), array('nome' => 'soap::lite/perl'), array('nome' => 'sogou'), array('nome' => 'sogou+web+robot'), array('nome' => 'sogou-test-spider'), array('nome' => 'sosospider'), array('nome' => 'space'), array('nome' => 'sphider'), array('nome' => 'statoolsbot'), array('nome' => 'str:\'mozilla/5.0'), array('nome' => 'survey'), array('nome' => 'teleca'), array('nome' => 'teoma'), array('nome' => 'test.buzzz'), array('nome' => 'testbot'), array('nome' => 'the'), array('nome' => 'twengabot-discover'), array('nome' => 'twitturly'), array('nome' => 'typhoeus'), array('nome' => 'udmsearch'), array('nome' => 'untiny'), array('nome' => 'url_test'), array('nome' => 'user-agent:'), array('nome' => 'vb'), array('nome' => 'voyager'), array('nome' => 'w3c_validator'), array('nome' => 'webcollage'), array('nome' => 'webcorp'), array('nome' => 'webmoney.advisor'), array('nome' => 'website'), array('nome' => 'webvox'), array('nome' => 'wordpress.com'), array('nome' => 'wtabot'), array('nome' => 'www-mechanize'), array('nome' => 'yahoo'), array('nome' => 'yandex'), array('nome' => 'yeti'), array('nome' => 'ytunnelpro'), array('nome' => 'zschobot'), array('nome' => 'zte-g-n290-base'));
Configure::write('BlockBot.users', $useragents);
Croogo::hookRoutes('BlockBot');
<?php

/**
 * Routes
 *
 * Revisions_routes.php will be loaded in main app/config/routes.php file.
 */
Croogo::hookRoutes('Revisions');
/**
 * Behavior
 *
 * This plugin's Revisions behavior will be attached whenever Node model is loaded.
 */
Croogo::hookBehavior('Node', 'Revisions.Revisions', array());
/**
 * Component
 *
 * This plugin's Revisions component will be loaded in ALL controllers.
 */
Croogo::hookComponent('*', 'Revisions.Revisions');
/**
 * Helper
 *
 * This plugin's Revisions helper will be loaded via NodesController.
 */
Croogo::hookHelper('Nodes', 'Revisions.Revisions');
/**
 * Admin menu (navigation)
 *
 * This plugin's admin_menu element will be rendered in admin panel under Extensions menu.
 */
<?php

Croogo::hookRoutes('Cforms');
Croogo::hookComponent('Nodes', 'Cforms.Cforms');
Croogo::hookHelper('Nodes', 'Cforms.CformCss');
Croogo::hookAdminMenu('Cforms');
Exemple #14
0
<?php

Croogo::hookRoutes('Revista');
CroogoNav::add('revista', array('icon' => array('tags', 'large'), 'title' => __('Revista'), 'weight' => 30, 'url' => array('admin' => true, 'plugin' => 'revista', 'controller' => 'editions', 'action' => 'index')));
Croogo::mergeConfig('Wysiwyg.actions', array('Editions/admin_add' => array(array('elements' => 'EditionIntro', 'preset' => 'standard'), array('elements' => 'EditionBanner', 'preset' => 'standard'), array('elements' => 'EditionDescricao', 'preset' => 'basic')), 'Artigos/admin_add' => array(array('elements' => 'ArtigoResumo', 'preset' => 'basic'), array('elements' => 'ArtigoAutores', 'preset' => 'basic'))));
<?php

/**
 * Routes
 *
 * example_routes.php will be loaded in main app/config/routes.php file.
 */
Croogo::hookRoutes('Gallery');
/**
 * Behavior
 *
 * This plugin's Example behavior will be attached whenever Node model is loaded.
 */
//Croogo::hookBehavior('Node', 'Example.Example', array());
/**
 * Component
 *
 * This plugin's Example component will be loaded in ALL controllers.
 */
//Croogo::hookComponent('*', 'Gallery.Gallery');
/**
 * Helper
 *
 * This plugin's Example helper will be loaded via NodesController.
 */
Croogo::hookHelper('Nodes', 'Gallery.Gallery');
/**
 * Admin menu (navigation)
 *
 * This plugin's admin_menu element will be rendered in admin panel under Extensions menu.
 */