Browsing projects by Tag(s)

Select a tag to browse associated projects and drill deeper into the tag cloud.

Showing page 1 of 1

Kohana 中文代码仓库(Kohana Code Depository)Kohana 中文爱好者为 中文 Kohana 用户创建的一个交流平台,立志把 Kohana 做好本地化工作,目前主要任务是翻译和维护官方的文档。其次同时为开源项目做出贡献。 这个地方主要存放 Kohana ... [More] 中文爱好者用户公开发布的一些代码文件,比如辅助函数(Helpers),库(Libraries),扩展(Modules)和一些相关的其他东西。 希望大家可以踊跃参与进来。 下面列表是本仓库已经包含的代码文件: 辅助函数(Helpers) google - Google API,目前只有翻译功能以及对 URI 地址进行 SEO 友好化处理 color - 颜色之间的转换和随机颜色的生成 库(Libraries) Akismet - 利用 Akismet.com 网站服务构建的防垃圾评论库 Input - 扩展系统内建的 input 库,添加 IP 归属地功能(需求:QQ纯真数据库) Modules - Kohana 扩展(Modules)管理库 OAuth - OAuth 验证类(需求: OAuth Class 和 RESTRequest Library) Database - 扩展系统内建的 Database 库,增加数据库多配置(需求:database.php配置文件夹) Logger - Kohana 系统日志查看工具 扩展(Modules) DBManager - 数据库管理 其他(Others) Kohana 项目模板 For NetBeans - 为 Netbeans 6.5+ 制作的Kohana 项目模板 如果你也有想贡献自己的代码和大家分享,那就加入我们吧! [Less]

3.0
   
  0 reviews  |  1 user  |  2,919 lines of code  |  0 current contributors  |  Analyzed 3 days ago
 
 

UpdateI won't have time in the near future to do bugfixes, new features etc. Feel free to fork any of the stuff in this repo with attribution. MPTT for KohanaThis project has been superseded by a behaviour for ORM which does the same An implementation of MPTT for Kohanaphp using Kohana's ... [More] ORM functionality. It is based on the implementation of MPTT for CI: http://www.codeigniter.com/wiki/Nested_Sets/ but some major modifications to support ORM, scopes and parent ids This means it is in functionality and syntax more similar to http://trac.symfony-project.com/wiki/sfPropelActAsNestedSetBehaviorPlugin See Documentation for more information about getting file and installing and such. Please submit bugs when you see them. Be clear about the exact circumstances of when a method breaks integrity of a table. Roadmap for MPTT Changelog for MPTT Tree behaviour for Kohana ORMBehaviour for Kohana ORM to do adjacency list trees. SpamCheck library for KohanaSpamCheck module for Kohana. Download libraries into a /libraries folder and you're done. Gives scores ranging between -100 (bad) and +100 (good). Or just a boolean Currently a links and a Akismet plugin Links $spam=new SpamCheck; $spam->add_check('links')->set_link_penalty(4)->set_max_links(2); $spam->add_field('content','some content'); $score=$spam->check(); if(!$spam->is_spam()) echo 'no spam';If there are more than 2 links a penalty is given -(number_of_links^4) else a bonus of 100 points. $spam=new SpamCheck; $spam->add_check('links',2)->set_link_penalty(4)->set_max_links(2); $spam->add_check('akismet')->setAPIKey('api_key')->setBlogURL('http://blog url'); $spam->set_weight('akismet',1); $spam->add_field('content','some content'); $score=$spam->check(); if(!$spam->is_spam()) echo 'no spam'; $spam->get_weighted_scores(); $spam->get_scores(); Uses akismet for spam check of comments. Bear in mind you should have more fields than the 'content' field for a better success rate. Will be documented later. The score is now an average between the links and the akismet plugin. The links plugin has a second argument giving it's weight. So the links plugin has the weight of 2 so is more important. Adding new plugins is not hard. Stuff like the Defensio API might be added, or a bad words list. Formation/ValidationForm generation and validation for Kohana. Latest release on the right Formation_Documentation [Less]

0
 
  0 reviews  |  0 users  |  5,143 lines of code  |  0 current contributors  |  Analyzed 7 days ago
 
 

Модуль фильтрует спам с помощью сервиса akismet.com. Пример использования: $akismet = new Akismet; $akismet->author = $post->name; $akismet->email = $post->email; $akismet->url = $post->site; $akismet->content = ... [More] $post->comment; $akismet->type = 'comment'; if ($akismet->check_spam() OR $akismet->get_errors()) { $post->add_error($field, 'is_spam'); Kohana::log ('akismet.spam_detected', 'info'); } или {{{ $post = new Validation($_POST)->add_callbacks('comment', 'Akismet::verify'); }}} [http://progik.ru/ Author's site] [Less]

0
 
  0 reviews  |  0 users  |  133 lines of code  |  0 current contributors  |  Analyzed 9 days ago
 
 
 
 

Creative Commons License Copyright © 2013 Black Duck Software, Inc. and its contributors, Some Rights Reserved. Unless otherwise marked, this work is licensed under a Creative Commons Attribution 3.0 Unported License . Ohloh ® and the Ohloh logo are trademarks of Black Duck Software, Inc. in the United States and/or other jurisdictions. All other trademarks are the property of their respective holders.