├── .gitignore ├── system ├── .htaccess ├── scaffolding │ ├── images │ │ ├── logo.jpg │ │ ├── background.jpg │ │ └── index.html │ ├── index.html │ └── views │ │ ├── index.html │ │ ├── footer.php │ │ ├── delete.php │ │ ├── no_data.php │ │ ├── view.php │ │ ├── header.php │ │ ├── add.php │ │ ├── edit.php │ │ └── stylesheet.css ├── index.html ├── cache │ └── index.html ├── core │ ├── index.html │ ├── Model.php │ ├── Controller.php │ └── Benchmark.php ├── fonts │ └── index.html ├── logs │ └── index.html ├── database │ ├── index.html │ └── drivers │ │ ├── index.html │ │ ├── mssql │ │ ├── index.html │ │ └── mssql_utility.php │ │ ├── mysql │ │ └── index.html │ │ ├── mysqli │ │ ├── index.html │ │ └── mysqli_utility.php │ │ ├── oci8 │ │ ├── index.html │ │ └── oci8_utility.php │ │ ├── odbc │ │ ├── index.html │ │ └── odbc_utility.php │ │ ├── postgre │ │ ├── index.html │ │ └── postgre_utility.php │ │ └── sqlite │ │ ├── index.html │ │ └── sqlite_utility.php ├── helpers │ ├── index.html │ ├── language_helper.php │ ├── email_helper.php │ ├── path_helper.php │ ├── xml_helper.php │ ├── number_helper.php │ ├── directory_helper.php │ ├── typography_helper.php │ ├── cookie_helper.php │ ├── array_helper.php │ ├── download_helper.php │ └── security_helper.php ├── language │ ├── index.html │ └── english │ │ ├── index.html │ │ ├── number_lang.php │ │ ├── scaffolding_lang.php │ │ ├── unit_test_lang.php │ │ ├── profiler_lang.php │ │ ├── ftp_lang.php │ │ ├── validation_lang.php │ │ ├── calendar_lang.php │ │ ├── upload_lang.php │ │ ├── email_lang.php │ │ ├── form_validation_lang.php │ │ ├── imglib_lang.php │ │ ├── db_lang.php │ │ └── date_lang.php ├── libraries │ ├── index.html │ ├── Model.php │ ├── Log.php │ ├── Cache │ │ └── drivers │ │ │ └── Cache_dummy.php │ ├── Benchmark.php │ └── Language.php ├── plugins │ └── index.html └── codeigniter │ ├── index.html │ ├── Base5.php │ ├── Base4.php │ └── Compat.php ├── application ├── .htaccess ├── views │ ├── jquery_end.php │ ├── adminfooter_view.php │ ├── touch_footer.php │ ├── jquery_start.php │ ├── redirect_home.php │ ├── footer_view.php │ ├── index.html │ ├── admin_word_edit.php │ ├── admin_user_edit.php │ ├── voice.php │ ├── recaptcha.php │ ├── touch_result.php │ ├── thankyou_view.php │ ├── header_view.php │ ├── adminheader_view.php │ ├── admin_dashboard_view.php │ ├── touch_head.php │ ├── adminlogin_view.php │ ├── result_view.php │ └── touch_view.php ├── cache │ ├── .htaccess │ └── index.html ├── index.html ├── core │ └── index.html ├── hooks │ └── index.html ├── logs │ └── index.html ├── config │ ├── index.html │ ├── recaptcha.php │ ├── hooks.php │ ├── profiler.php │ ├── doctypes.php │ ├── constants.php │ ├── routes.php │ ├── foreign_chars.php │ └── database.php ├── errors │ ├── index.html │ ├── error_php.php │ ├── error_general.php │ ├── error_db.php │ └── error_404.php ├── helpers │ └── index.html ├── libraries │ ├── index.html │ └── spellcheck.php ├── models │ ├── index.html │ └── searchmodel.php ├── controllers │ ├── index.html │ ├── word.php │ ├── voice.php │ ├── user.php │ ├── recaptchademo.php │ ├── touch.php │ ├── home.php │ ├── register.php │ └── search.php ├── third_party │ └── index.html └── language │ └── english │ ├── index.html │ └── recaptcha_lang.php ├── shell ├── phpinfo.php ├── config.php ├── rmstart.php ├── mmtsv.php ├── entsv.php ├── rm_123.php ├── json_db.php ├── myan_split.php ├── myan_split2.php └── reduce.php ├── favicon.png ├── images ├── bg.jpg ├── no.png ├── add.png ├── head.jpg ├── hover.png ├── load.gif ├── logo.png ├── user.png ├── voice.png ├── yes.png ├── approve.png ├── history.png ├── remove.png ├── startup.png ├── indicator.gif ├── onappstore.png ├── onapstore.png ├── user_off.png ├── history_off.png └── fancy_closebox.png ├── backup └── feb162010.zip ├── medias └── player_mp3.swf ├── touch ├── images │ ├── logo.png │ ├── search.gif │ └── startup.png ├── themes │ ├── jqt │ │ └── img │ │ │ ├── button.png │ │ │ ├── on_off.png │ │ │ ├── toggle.png │ │ │ ├── chevron.png │ │ │ ├── loading.gif │ │ │ ├── rowhead.png │ │ │ ├── toggleOn.png │ │ │ ├── toolbar.png │ │ │ ├── back_button.png │ │ │ ├── grayButton.png │ │ │ ├── whiteButton.png │ │ │ ├── button_clicked.png │ │ │ ├── chevron_circle.png │ │ │ └── back_button_clicked.png │ ├── apple │ │ └── img │ │ │ ├── cancel.png │ │ │ ├── on_off.png │ │ │ ├── thumb.png │ │ │ ├── toggle.png │ │ │ ├── chevron.png │ │ │ ├── listGroup.png │ │ │ ├── loading.gif │ │ │ ├── selection.png │ │ │ ├── toggleOn.png │ │ │ ├── toolbar.png │ │ │ ├── #blueButton.png │ │ │ ├── backButton.png │ │ │ ├── blueButton.png │ │ │ ├── grayButton.png │ │ │ ├── list-header.png │ │ │ ├── pinstripes.png │ │ │ ├── toolButton.png │ │ │ ├── whiteButton.png │ │ │ ├── button_clicked.png │ │ │ ├── listArrowSel.png │ │ │ └── back_button_clicked.png │ └── embed.css ├── sample.htaccess ├── extensions │ ├── jqt.autotitles.js │ └── jqt.location.js └── jqtouch │ └── jqtouch.transitions.js ├── sample-database └── dictionary2.sql.zip ├── css ├── jquery.tooltip.css ├── jquery.autocomplete.css ├── jquery.autocomplete_original.css ├── jq_style.css ├── admin.css └── default.css ├── Readme ├── Opensearch └── opensearch.xml ├── sitemap └── sitemap.xml ├── License ├── js ├── jquery.bgiframe.min.js └── jq_box.js └── license.txt /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | -------------------------------------------------------------------------------- /system/.htaccess: -------------------------------------------------------------------------------- 1 | Deny from all -------------------------------------------------------------------------------- /application/.htaccess: -------------------------------------------------------------------------------- 1 | Deny from all -------------------------------------------------------------------------------- /application/views/jquery_end.php: -------------------------------------------------------------------------------- 1 | }); -------------------------------------------------------------------------------- /application/cache/.htaccess: -------------------------------------------------------------------------------- 1 | deny from all -------------------------------------------------------------------------------- /shell/phpinfo.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /application/views/adminfooter_view.php: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /application/views/touch_footer.php: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /application/views/jquery_start.php: -------------------------------------------------------------------------------- 1 | $(document).ready(function(){ -------------------------------------------------------------------------------- /favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saturngod/ornagai-V2/HEAD/favicon.png -------------------------------------------------------------------------------- /images/bg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saturngod/ornagai-V2/HEAD/images/bg.jpg -------------------------------------------------------------------------------- /images/no.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saturngod/ornagai-V2/HEAD/images/no.png -------------------------------------------------------------------------------- /images/add.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saturngod/ornagai-V2/HEAD/images/add.png -------------------------------------------------------------------------------- /images/head.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saturngod/ornagai-V2/HEAD/images/head.jpg -------------------------------------------------------------------------------- /images/hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saturngod/ornagai-V2/HEAD/images/hover.png -------------------------------------------------------------------------------- /images/load.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saturngod/ornagai-V2/HEAD/images/load.gif -------------------------------------------------------------------------------- /images/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saturngod/ornagai-V2/HEAD/images/logo.png -------------------------------------------------------------------------------- /images/user.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saturngod/ornagai-V2/HEAD/images/user.png -------------------------------------------------------------------------------- /images/voice.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saturngod/ornagai-V2/HEAD/images/voice.png -------------------------------------------------------------------------------- /images/yes.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saturngod/ornagai-V2/HEAD/images/yes.png -------------------------------------------------------------------------------- /images/approve.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saturngod/ornagai-V2/HEAD/images/approve.png -------------------------------------------------------------------------------- /images/history.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saturngod/ornagai-V2/HEAD/images/history.png -------------------------------------------------------------------------------- /images/remove.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saturngod/ornagai-V2/HEAD/images/remove.png -------------------------------------------------------------------------------- /images/startup.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saturngod/ornagai-V2/HEAD/images/startup.png -------------------------------------------------------------------------------- /backup/feb162010.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saturngod/ornagai-V2/HEAD/backup/feb162010.zip -------------------------------------------------------------------------------- /images/indicator.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saturngod/ornagai-V2/HEAD/images/indicator.gif -------------------------------------------------------------------------------- /images/onappstore.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saturngod/ornagai-V2/HEAD/images/onappstore.png -------------------------------------------------------------------------------- /images/onapstore.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saturngod/ornagai-V2/HEAD/images/onapstore.png -------------------------------------------------------------------------------- /images/user_off.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saturngod/ornagai-V2/HEAD/images/user_off.png -------------------------------------------------------------------------------- /medias/player_mp3.swf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saturngod/ornagai-V2/HEAD/medias/player_mp3.swf -------------------------------------------------------------------------------- /touch/images/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saturngod/ornagai-V2/HEAD/touch/images/logo.png -------------------------------------------------------------------------------- /application/views/redirect_home.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /images/history_off.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saturngod/ornagai-V2/HEAD/images/history_off.png -------------------------------------------------------------------------------- /touch/images/search.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saturngod/ornagai-V2/HEAD/touch/images/search.gif -------------------------------------------------------------------------------- /images/fancy_closebox.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saturngod/ornagai-V2/HEAD/images/fancy_closebox.png -------------------------------------------------------------------------------- /touch/images/startup.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saturngod/ornagai-V2/HEAD/touch/images/startup.png -------------------------------------------------------------------------------- /touch/themes/jqt/img/button.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saturngod/ornagai-V2/HEAD/touch/themes/jqt/img/button.png -------------------------------------------------------------------------------- /touch/themes/jqt/img/on_off.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saturngod/ornagai-V2/HEAD/touch/themes/jqt/img/on_off.png -------------------------------------------------------------------------------- /touch/themes/jqt/img/toggle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saturngod/ornagai-V2/HEAD/touch/themes/jqt/img/toggle.png -------------------------------------------------------------------------------- /touch/themes/apple/img/cancel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saturngod/ornagai-V2/HEAD/touch/themes/apple/img/cancel.png -------------------------------------------------------------------------------- /touch/themes/apple/img/on_off.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saturngod/ornagai-V2/HEAD/touch/themes/apple/img/on_off.png -------------------------------------------------------------------------------- /touch/themes/apple/img/thumb.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saturngod/ornagai-V2/HEAD/touch/themes/apple/img/thumb.png -------------------------------------------------------------------------------- /touch/themes/apple/img/toggle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saturngod/ornagai-V2/HEAD/touch/themes/apple/img/toggle.png -------------------------------------------------------------------------------- /touch/themes/jqt/img/chevron.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saturngod/ornagai-V2/HEAD/touch/themes/jqt/img/chevron.png -------------------------------------------------------------------------------- /touch/themes/jqt/img/loading.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saturngod/ornagai-V2/HEAD/touch/themes/jqt/img/loading.gif -------------------------------------------------------------------------------- /touch/themes/jqt/img/rowhead.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saturngod/ornagai-V2/HEAD/touch/themes/jqt/img/rowhead.png -------------------------------------------------------------------------------- /touch/themes/jqt/img/toggleOn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saturngod/ornagai-V2/HEAD/touch/themes/jqt/img/toggleOn.png -------------------------------------------------------------------------------- /touch/themes/jqt/img/toolbar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saturngod/ornagai-V2/HEAD/touch/themes/jqt/img/toolbar.png -------------------------------------------------------------------------------- /sample-database/dictionary2.sql.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saturngod/ornagai-V2/HEAD/sample-database/dictionary2.sql.zip -------------------------------------------------------------------------------- /system/scaffolding/images/logo.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saturngod/ornagai-V2/HEAD/system/scaffolding/images/logo.jpg -------------------------------------------------------------------------------- /touch/themes/apple/img/chevron.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saturngod/ornagai-V2/HEAD/touch/themes/apple/img/chevron.png -------------------------------------------------------------------------------- /touch/themes/apple/img/listGroup.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saturngod/ornagai-V2/HEAD/touch/themes/apple/img/listGroup.png -------------------------------------------------------------------------------- /touch/themes/apple/img/loading.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saturngod/ornagai-V2/HEAD/touch/themes/apple/img/loading.gif -------------------------------------------------------------------------------- /touch/themes/apple/img/selection.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saturngod/ornagai-V2/HEAD/touch/themes/apple/img/selection.png -------------------------------------------------------------------------------- /touch/themes/apple/img/toggleOn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saturngod/ornagai-V2/HEAD/touch/themes/apple/img/toggleOn.png -------------------------------------------------------------------------------- /touch/themes/apple/img/toolbar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saturngod/ornagai-V2/HEAD/touch/themes/apple/img/toolbar.png -------------------------------------------------------------------------------- /touch/themes/jqt/img/back_button.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saturngod/ornagai-V2/HEAD/touch/themes/jqt/img/back_button.png -------------------------------------------------------------------------------- /touch/themes/jqt/img/grayButton.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saturngod/ornagai-V2/HEAD/touch/themes/jqt/img/grayButton.png -------------------------------------------------------------------------------- /touch/themes/jqt/img/whiteButton.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saturngod/ornagai-V2/HEAD/touch/themes/jqt/img/whiteButton.png -------------------------------------------------------------------------------- /application/views/footer_view.php: -------------------------------------------------------------------------------- 1 | load->helper("google"); 3 | echo google_analytics(); 4 | ?> 5 | 6 | -------------------------------------------------------------------------------- /touch/themes/apple/img/#blueButton.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saturngod/ornagai-V2/HEAD/touch/themes/apple/img/#blueButton.png -------------------------------------------------------------------------------- /touch/themes/apple/img/backButton.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saturngod/ornagai-V2/HEAD/touch/themes/apple/img/backButton.png -------------------------------------------------------------------------------- /touch/themes/apple/img/blueButton.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saturngod/ornagai-V2/HEAD/touch/themes/apple/img/blueButton.png -------------------------------------------------------------------------------- /touch/themes/apple/img/grayButton.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saturngod/ornagai-V2/HEAD/touch/themes/apple/img/grayButton.png -------------------------------------------------------------------------------- /touch/themes/apple/img/list-header.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saturngod/ornagai-V2/HEAD/touch/themes/apple/img/list-header.png -------------------------------------------------------------------------------- /touch/themes/apple/img/pinstripes.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saturngod/ornagai-V2/HEAD/touch/themes/apple/img/pinstripes.png -------------------------------------------------------------------------------- /touch/themes/apple/img/toolButton.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saturngod/ornagai-V2/HEAD/touch/themes/apple/img/toolButton.png -------------------------------------------------------------------------------- /touch/themes/apple/img/whiteButton.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saturngod/ornagai-V2/HEAD/touch/themes/apple/img/whiteButton.png -------------------------------------------------------------------------------- /system/scaffolding/images/background.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saturngod/ornagai-V2/HEAD/system/scaffolding/images/background.jpg -------------------------------------------------------------------------------- /touch/themes/apple/img/button_clicked.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saturngod/ornagai-V2/HEAD/touch/themes/apple/img/button_clicked.png -------------------------------------------------------------------------------- /touch/themes/apple/img/listArrowSel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saturngod/ornagai-V2/HEAD/touch/themes/apple/img/listArrowSel.png -------------------------------------------------------------------------------- /touch/themes/jqt/img/button_clicked.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saturngod/ornagai-V2/HEAD/touch/themes/jqt/img/button_clicked.png -------------------------------------------------------------------------------- /touch/themes/jqt/img/chevron_circle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saturngod/ornagai-V2/HEAD/touch/themes/jqt/img/chevron_circle.png -------------------------------------------------------------------------------- /touch/themes/apple/img/back_button_clicked.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saturngod/ornagai-V2/HEAD/touch/themes/apple/img/back_button_clicked.png -------------------------------------------------------------------------------- /touch/themes/jqt/img/back_button_clicked.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saturngod/ornagai-V2/HEAD/touch/themes/jqt/img/back_button_clicked.png -------------------------------------------------------------------------------- /system/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /application/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /system/cache/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /system/core/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /system/fonts/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /system/logs/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /application/cache/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /application/core/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /application/hooks/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /application/logs/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /application/views/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /system/database/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /system/helpers/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /system/language/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /system/libraries/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /system/plugins/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /application/config/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /application/errors/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /application/helpers/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /application/libraries/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /application/models/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /system/codeigniter/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /system/scaffolding/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /application/controllers/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /application/third_party/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /system/database/drivers/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /system/language/english/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /system/scaffolding/images/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /system/scaffolding/views/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /application/language/english/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /system/database/drivers/mssql/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /system/database/drivers/mysql/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /system/database/drivers/mysqli/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /system/database/drivers/oci8/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /system/database/drivers/odbc/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /system/database/drivers/postgre/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /system/database/drivers/sqlite/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /css/jquery.tooltip.css: -------------------------------------------------------------------------------- 1 | #tooltip {position: absolute;z-index: 3000;border: 1px solid #DDD;background-color: #EEE;padding: 4px;opacity: 0.9;font-size:10px;font-weight:100;} 2 | #tooltip h3, #tooltip div { margin: 0; padding:0px; } -------------------------------------------------------------------------------- /system/scaffolding/views/footer.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /application/views/admin_word_edit.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /system/language/english/number_lang.php: -------------------------------------------------------------------------------- 1 | load->view('header'); ?> 2 | 3 |

4 | 5 |

  |   6 | 7 | load->view('footer'); 8 | /* End of file delete.php */ 9 | /* Location: ./system/scaffolding/views/delete.php */ 10 | -------------------------------------------------------------------------------- /system/scaffolding/views/no_data.php: -------------------------------------------------------------------------------- 1 | load->view('header'); ?> 2 | 3 |

4 |

5 | 6 | load->view('footer'); 7 | /* End of file no_data.php */ 8 | /* Location: ./system/scaffolding/views/no_data.php */ -------------------------------------------------------------------------------- /application/errors/error_php.php: -------------------------------------------------------------------------------- 1 |
2 | 3 |

A PHP Error was encountered

4 | 5 |

Severity:

6 |

Message:

7 |

Filename:

8 |

Line Number:

9 | 10 |
-------------------------------------------------------------------------------- /touch/themes/embed.css: -------------------------------------------------------------------------------- 1 | @font-face { 2 | font-family: 'Zawgyi-OneRegular'; 3 | src: local('Zawgyi-One'), local('Zawgyi-One'), url('../embed/ezawgyi.svg#Zawgyi-One') format('svg'); 4 | } 5 | *, body, h1, h2, h3, h4, h5, h6, strong, b, table,input,a { 6 | letter-spacing: normal; 7 | line-height:normal; 8 | font-weight: normal; 9 | font-family: 'Zawgyi-OneRegular'; 10 | } 11 | 12 | -------------------------------------------------------------------------------- /Readme: -------------------------------------------------------------------------------- 1 | Ornagai is a Online English To Myanmar, Myanmar To English Dictionary. 2 | All of the english to myanmar word from MZ dictionary. 3 | 4 | 5 | Developer 6 | -- Saturngod (Htain Lin Shwe) 7 | 8 | MySQL Query for search by 9 | -- Charles Reace (http://charles-reace.com) 10 | 11 | Using 12 | --PHP 13 | --CodeIgniter Framework 2.0 14 | --Jquery 1.3 15 | --MySQL 16 | 17 | jQuery Plugin 18 | --jqTouch 19 | --jqBox -------------------------------------------------------------------------------- /Opensearch/opensearch.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Ornagai Dictionary 5 | Search in Ornagai 6 | ornagai 7 | 9 | http://www.ornagai.com/favicon.png 10 | 11 | 12 | -------------------------------------------------------------------------------- /application/controllers/word.php: -------------------------------------------------------------------------------- 1 | load->model("words"); 13 | $this->words->add($word,$state,$def); 14 | echo "true"; 15 | } 16 | echo "Error"; 17 | } 18 | } 19 | ?> -------------------------------------------------------------------------------- /application/views/admin_user_edit.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | ban==1) ? "checked":"" ?> /> 10 | -------------------------------------------------------------------------------- /shell/config.php: -------------------------------------------------------------------------------- 1 | 41 | 42 | -------------------------------------------------------------------------------- /css/jquery.autocomplete.css: -------------------------------------------------------------------------------- 1 | .ac_results{padding:0px;border:1px solid black;background-color:white;overflow:hidden;z-index:99999;font-family:"Zawgyi-One",Zawgyi1}.ac_results ul{width:100%;list-style-position:outside;list-style:none;padding:0;margin:0}.ac_results li{margin:0px;padding:2px 5px;cursor:default;display:block;font:menu;font-size:12px;line-height:16px;overflow:hidden;font-family:"Zawgyi-One",Zawgyi1}.ac_loading{background:white url('../images/indicator.gif') right center no-repeat}.ac_odd{background-color:#D4DDE6}.ac_over{background:#95A5C6;color:#233136} -------------------------------------------------------------------------------- /application/config/recaptcha.php: -------------------------------------------------------------------------------- 1 | '6Leg0QgAAAAAAG56ibAYPZ8K8BZhElJ5OyzwmkIL ', 10 | 'private'=>'6Leg0QgAAAAAAFTBTIwwQ9Rdp0Tdl0XmhUPU4RHg', 11 | 'RECAPTCHA_API_SERVER' =>'http://api.recaptcha.net', 12 | 'RECAPTCHA_API_SECURE_SERVER'=>'https://api-secure.recaptcha.net', 13 | 'RECAPTCHA_VERIFY_SERVER' =>'api-verify.recaptcha.net', 14 | 'theme' => 'white' 15 | ); 16 | -------------------------------------------------------------------------------- /application/views/voice.php: -------------------------------------------------------------------------------- 1 | 5 | 8 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /application/config/hooks.php: -------------------------------------------------------------------------------- 1 | 2 | var RecaptchaOptions = { 3 | theme:"", 4 | lang:"" 5 | }; 6 | 7 | 8 | -------------------------------------------------------------------------------- /application/errors/error_general.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | Error 4 | 27 | 28 | 29 |
30 |

31 | 32 |
33 | 34 | -------------------------------------------------------------------------------- /sitemap/sitemap.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | http://www.ornagai.com/ 4 | 2010-03-14T04:11:45+00:00 5 | daily 6 | 1.0 7 | 8 | 9 | 10 | http://www.ornagai.com/index.php/touch 11 | 2010-03-14T04:11:45+00:00 12 | daily 13 | 1.0 14 | 15 | 16 | -------------------------------------------------------------------------------- /application/errors/error_db.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | Database Error 4 | 27 | 28 | 29 |
30 |

31 | 32 |
33 | 34 | -------------------------------------------------------------------------------- /application/errors/error_404.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 404 Page Not Found 4 | 27 | 28 | 29 |
30 |

31 | 32 |
33 | 34 | -------------------------------------------------------------------------------- /application/controllers/voice.php: -------------------------------------------------------------------------------- 1 | config->item('base_url'); 11 | $data['sound']="http://translate.google.com/translate_tts?tl=en&q=".stripslashes($this->uri->segment(3)); 12 | $data['sound']=urlencode($data['sound']); 13 | $data['mp3']=false; 14 | $this->load->library('user_agent'); 15 | 16 | if ($this->agent->is_browser()) 17 | { 18 | /*if($this->agent->browser()=="Safari") 19 | { 20 | $data['mp3']=true; 21 | } 22 | */ 23 | } 24 | 25 | $this->load->view('voice.php',$data); 26 | 27 | 28 | } 29 | } 30 | ?> -------------------------------------------------------------------------------- /system/language/english/scaffolding_lang.php: -------------------------------------------------------------------------------- 1 | 6 |
  • Word ?>( state ?> )
  • 7 |
  • def) ?>
  • 8 | 11 | 17 | 41 | -------------------------------------------------------------------------------- /application/views/thankyou_view.php: -------------------------------------------------------------------------------- 1 | load->view("header_view",$data); 5 | 6 | ?> 7 | 30 |
    31 |

    Registration Completed.

    32 |

    Thank you for register.
    Go to the home page

    33 |
    -------------------------------------------------------------------------------- /system/scaffolding/views/view.php: -------------------------------------------------------------------------------- 1 | load->view('header'); ?> 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | result() as $row): ?> 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 |
    EditDelete
     $primary), $scaff_edit); ?> $primary), $scaff_delete); ?>$field);?>
    22 | 23 | 24 | 25 | load->view('footer'); 26 | /* End of file view.php */ 27 | /* Location: ./system/scaffolding/views/view.php */ -------------------------------------------------------------------------------- /application/controllers/user.php: -------------------------------------------------------------------------------- 1 | load->model("users"); 10 | 11 | $result=$this->users->login($username,$pwd); 12 | if($result) echo "true"; 13 | else echo "false"; 14 | } 15 | 16 | function logout() 17 | { 18 | $this->load->model("users"); 19 | $this->users->logout(); 20 | $this->load->helper('url'); 21 | redirect(''); 22 | } 23 | 24 | function changepwd() 25 | { 26 | $this->load->model("users"); 27 | $currpwd=$_POST['currpwd']; 28 | $newpwd=$_POST['newpwd']; 29 | $uid=$this->session->userdata('user_id'); 30 | $res=$this->users->changepwd($uid,$currpwd,$newpwd); 31 | if(!$res) 32 | { 33 | echo "false"; 34 | } 35 | } 36 | } 37 | ?> -------------------------------------------------------------------------------- /system/scaffolding/views/header.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | <?php echo $title; ?> 6 | 7 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 27 | 28 |
    29 |
    -------------------------------------------------------------------------------- /system/language/english/unit_test_lang.php: -------------------------------------------------------------------------------- 1 | 47 | -------------------------------------------------------------------------------- /application/views/header_view.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | <?php echo (isset($title)) ? $title : "Ornagai :: English <=> Myanmar Dictionary" ?> 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /shell/mmtsv.php: -------------------------------------------------------------------------------- 1 | "; 13 | $myFile = "tsv/mmtab.tsv"; 14 | $fh = fopen($myFile, 'w') or die("can't open file"); 15 | 16 | 17 | $myFile2 = "stardict/ornagaimm.tab"; 18 | $fh2 = fopen($myFile2, 'w') or die("can't open file"); 19 | 20 | while ($row = mysql_fetch_assoc($result)) 21 | { 22 | if(($row['Word']!="") and ($row['state']!="") and ($row['def']!="")) 23 | { 24 | 25 | $tmp=str_replace("|","",$row['def'])." ".$row['Word']." ".$row['state']; 26 | $tmp2=str_replace("|","",$row['def'])." ".$row['Word']."\\n".$row['state']; 27 | fwrite($fh,$tmp."\n"); 28 | fwrite($fh2,$tmp2."\n"); 29 | } 30 | echo "Working...".$row['Word']."\n"; 31 | } 32 | 33 | fclose($fh); 34 | fclose($fh2); 35 | ?> 36 | 37 | -------------------------------------------------------------------------------- /system/scaffolding/views/add.php: -------------------------------------------------------------------------------- 1 | load->view('header'); ?> 2 | 3 |

    4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | primary_key == 1) continue; ?> 12 | 13 | 14 | 15 | 16 | type == 'blob'): ?> 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 |
    name; echo ' '.$field->default; ?>
    25 | 26 | 27 | 28 | 29 | 30 | load->view('footer'); 31 | /* End of file add.php */ 32 | /* Location: ./system/scaffolding/views/add.php */ 33 | -------------------------------------------------------------------------------- /system/scaffolding/views/edit.php: -------------------------------------------------------------------------------- 1 | load->view('header'); ?> 2 | 3 | 4 |

    5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | primary_key == 1) continue; ?> 13 | 14 | 15 | 16 | 17 | type == 'blob'): ?> 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 |
    name; ?>
    26 | 27 | 28 | 29 | 30 | 31 | load->view('footer'); 32 | /* End of file edit.php */ 33 | /* Location: ./system/scaffolding/views/edit.php */ -------------------------------------------------------------------------------- /system/language/english/profiler_lang.php: -------------------------------------------------------------------------------- 1 | "; 13 | $myFile = "tsv/entab.tsv"; 14 | $fh = fopen($myFile, 'w') or die("can't open file"); 15 | 16 | 17 | $myFile2 = "stardict/ornagaien.tab"; 18 | $fh2 = fopen($myFile2, 'w') or die("can't open file"); 19 | 20 | while ($row = mysql_fetch_assoc($result)) 21 | { 22 | if(($row['Word']!="") and ($row['def']!="")) 23 | { 24 | 25 | $tmp=trim($row['Word'])." ".$row['state']." ".trim($row['def']); 26 | $tmp2=trim($row['Word'])." ".$row['state']."\\n".trim($row['def']); 27 | fwrite($fh,$tmp."\n"); 28 | fwrite($fh2,$tmp2."\n"); 29 | } 30 | echo "Working...".$row['Word']."\n"; 31 | } 32 | 33 | fclose($fh); 34 | fclose($fh2); 35 | /*echo shell_exec("zip -r entsv.zip entab.tsv"); 36 | echo shell_exec("zip -r stardict.zip stardict.tab"); 37 | */ 38 | ?> 39 | 40 | -------------------------------------------------------------------------------- /License: -------------------------------------------------------------------------------- 1 | Copyright (c) 2010 Htain Lin Shwe 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. -------------------------------------------------------------------------------- /application/libraries/spellcheck.php: -------------------------------------------------------------------------------- 1 | '; 12 | $body .= ''; 13 | $body .= ''.$text.''; 14 | $body .= ''; 15 | 16 | $ch = curl_init(); 17 | curl_setopt($ch, CURLOPT_URL, $url); 18 | curl_setopt($ch, CURLOPT_POST, 1); 19 | curl_setopt($ch, CURLOPT_POSTFIELDS, $body); 20 | curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); 21 | curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 22 | $contents = curl_exec($ch); 23 | curl_close($ch); 24 | 25 | $doc = new DOMDocument(); 26 | $doc->loadXML($contents); 27 | $component = $doc->getElementsByTagName('c')->item(0); 28 | if($component!=NULL) 29 | { 30 | $result=preg_split('/ /',$component->nodeValue); 31 | return $result; 32 | } 33 | return false; 34 | 35 | } 36 | } 37 | ?> -------------------------------------------------------------------------------- /application/config/doctypes.php: -------------------------------------------------------------------------------- 1 | '', 5 | 'xhtml1-strict' => '', 6 | 'xhtml1-trans' => '', 7 | 'xhtml1-frame' => '', 8 | 'html5' => '', 9 | 'html4-strict' => '', 10 | 'html4-trans' => '', 11 | 'html4-frame' => '' 12 | ); 13 | 14 | /* End of file doctypes.php */ 15 | /* Location: ./application/config/doctypes.php */ -------------------------------------------------------------------------------- /css/jq_style.css: -------------------------------------------------------------------------------- 1 | body 2 | { 3 | margin:0px; 4 | } 5 | .jqbox_shadow 6 | { 7 | position: fixed; 8 | width: 100%; 9 | opacity: 0.9; 10 | top:0px; 11 | margin:0px; 12 | min-height:200px; 13 | height:100%; 14 | z-index: 0; 15 | background: #000; 16 | font-size: 20px; 17 | text-align: center; 18 | display: none; 19 | 20 | } 21 | .jqbox_innerhtml 22 | { 23 | position: fixed; 24 | width:200px; 25 | height:200px; 26 | background-color:#FFF; 27 | padding:10px; 28 | border:5px solid #CCC; 29 | z-index:200; 30 | top: 50%; 31 | left: 50%; 32 | margin-top: -100px; 33 | margin-left: -100px; 34 | display: none; 35 | 36 | } 37 | 38 | .jqbox_close 39 | { 40 | float: right; 41 | text-align: right; 42 | top:-15px; 43 | right: -15px; 44 | position: absolute; 45 | cursor: pointer; 46 | } 47 | 48 | .jqbox_bottom 49 | { 50 | width: 100%; 51 | background-color: #AAA; 52 | bottom: 0px; 53 | position: absolute; 54 | margin: 0px; 55 | margin-left: -10px; 56 | height: 30px; 57 | 58 | } 59 | 60 | .jqbox_btn 61 | { 62 | border: 1px solid #333; 63 | width: 50px; 64 | float: right; 65 | text-align: center; 66 | background-color: #EEE; 67 | height: 20px; 68 | margin-top: 4px; 69 | margin-right: 10px; 70 | cursor: pointer; 71 | } 72 | -------------------------------------------------------------------------------- /application/views/adminheader_view.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | <?php echo (isset($title)) ? $title : "Ornagai :: English <> Myanmar Dictionary" ?> 6 | 7 | 8 | 9 | 10 | 11 | 12 | 15 | 16 |
    17 | 23 |
    -------------------------------------------------------------------------------- /shell/rm_123.php: -------------------------------------------------------------------------------- 1 | 46 | -------------------------------------------------------------------------------- /application/controllers/recaptchademo.php: -------------------------------------------------------------------------------- 1 | load->library('recaptcha'); 8 | $this->load->library('form_validation'); 9 | $this->load->helper('form'); 10 | $this->lang->load('recaptcha'); 11 | 12 | if ($this->form_validation->run()) 13 | { 14 | $this->load->view('recaptcha_demo',array('recaptcha'=>'Yay! You got it right!')); 15 | } 16 | else 17 | { 18 | //the desired language code string can be passed to the get_html() method 19 | //"en" is the default if you don't pass the parameter 20 | //valid codes can be found here:http://recaptcha.net/apidocs/captcha/client.html 21 | $this->load->view('recaptcha_demo',array('recaptcha'=>$this->recaptcha->get_html())); 22 | } 23 | } 24 | 25 | function check_captcha($val) { 26 | if ($this->recaptcha->check_answer($this->input->ip_address(),$this->input->post('recaptcha_challenge_field'),$val)) { 27 | return TRUE; 28 | } else { 29 | $this->form_validation->set_message('check_captcha',$this->lang->line('recaptcha_incorrect_response')); 30 | return FALSE; 31 | } 32 | } 33 | } 34 | 35 | /* End of file welcome.php */ 36 | /* Location: ./system/application/controllers/welcome.php */ -------------------------------------------------------------------------------- /system/language/english/ftp_lang.php: -------------------------------------------------------------------------------- 1 | ';return this.each(function(){if($('> iframe.bgiframe',this).length==0)this.insertBefore(document.createElement(html),this.firstChild);});}return this;};})(jQuery); -------------------------------------------------------------------------------- /system/core/Model.php: -------------------------------------------------------------------------------- 1 | $key; 51 | } 52 | } 53 | // END Model Class 54 | 55 | /* End of file Model.php */ 56 | /* Location: ./system/core/Model.php */ -------------------------------------------------------------------------------- /system/codeigniter/Base5.php: -------------------------------------------------------------------------------- 1 | load->view("adminheader_view",$data); 5 | ?> 6 | 12 |
    13 |
    14 | 23 |
    24 | 25 |
    26 |
      27 |
    • 28 |
    • 29 |
    • 30 |
    • 31 |
    • 32 |
    • 33 |
    • 34 |
    35 |
    36 |
    37 | load->view("adminfooter_view",$data); 41 | ?> -------------------------------------------------------------------------------- /application/controllers/touch.php: -------------------------------------------------------------------------------- 1 | config->item('base_url'); 9 | $data['login']=$this->session->userdata('logged_in'); 10 | $data['title']="Ornagai::Touch"; 11 | //Check Mobile 12 | 13 | $iphone = strpos($_SERVER['HTTP_USER_AGENT'],"iPhone"); 14 | $data['theme']='jqt'; 15 | if ($iphone == true) { 16 | $data['theme']='apple'; 17 | } 18 | 19 | $this->load->view('touch_view',$data); 20 | } 21 | 22 | function search() 23 | { 24 | $data['title']="Result for ".$_POST['search']; 25 | $data['base']=$this->config->item('base_url'); 26 | $q=$_POST['search']; 27 | $page=1; 28 | $this->load->model('searchmodel'); 29 | $myanmar=$this->searchmodel->detect_langauage($q); 30 | 31 | if($myanmar) 32 | { 33 | $this->load->library("zawgyi"); 34 | $q=$this->zawgyi->normalize($q,"|",true); 35 | } 36 | $data['query']=$this->searchmodel->query($q,$myanmar,$page); 37 | $data['result']=$q; 38 | $data['mm']=$myanmar; 39 | 40 | $data['num_rows']=$this->searchmodel->query_numrows($q,$myanmar); 41 | 42 | $data['numshow']=10; 43 | 44 | if($data['query']) 45 | { 46 | $this->load->view("touch_result",$data); 47 | } 48 | else{ 49 | echo "Can't Find"; 50 | } 51 | 52 | 53 | 54 | } 55 | } 56 | 57 | ?> -------------------------------------------------------------------------------- /shell/json_db.php: -------------------------------------------------------------------------------- 1 | '".$end_word."' order by `Word`"; 17 | } 18 | $result=mysql_query($sql); 19 | 20 | 21 | if (!$result) { 22 | die('Invalid query: ' . mysql_error()); 23 | } 24 | for($i=$start;$i<=$stop;$i++) 25 | { 26 | ${$i} = fopen("data/".$i.".json", 'w') or die("can't open file"); 27 | $json='{"data":['; 28 | fwrite(${$i},$json); 29 | if($i==$stop) break; 30 | 31 | } 32 | 33 | while ($row = mysql_fetch_assoc($result)) 34 | { 35 | 36 | if(($row['Word']!="") and ($row['state']!="") and ($row['def']!="")) 37 | { 38 | $two_start=strtolower(substr($row['Word'],0,2)); 39 | 40 | //{"word":"awaking","state":"v[ing]","def":"နိုးေန"}, 41 | if(isset(${$two_start})) 42 | { 43 | $data='{"word":"'.trim($row['Word']).'","state":"'.trim($row['state']).'","def":"'.trim($row['def']).'"},'; 44 | fwrite(${$two_start}, $data); 45 | 46 | } 47 | } 48 | } 49 | 50 | for($i=$start;$i<=$stop;$i++) 51 | { 52 | $json="\n]}"; 53 | fwrite(${$i},$json); 54 | fclose(${$i}); 55 | 56 | if($i==$stop) break; 57 | 58 | unset(${$i}); 59 | } 60 | } 61 | 62 | json_write("aa","jq",""); 63 | json_write("jr","tc","joys"); 64 | json_write("td","zz","taxpayers"); 65 | 66 | echo "\nCOMPLETE!!!"; 67 | ?> 68 | -------------------------------------------------------------------------------- /touch/sample.htaccess: -------------------------------------------------------------------------------- 1 | # A .htaccess file is a hidden file which runs on Unix servers 2 | # and provides directives. Renaming this file to .htaccess and 3 | # placing in your root directory _should_ enable GZip compression, 4 | # reducing the weight of pages/scripts being served. 5 | 6 | 7 | mod_gzip_on Yes 8 | mod_gzip_dechunk Yes 9 | mod_gzip_item_include file \.(html?|txt|css|js|php|pl)$ 10 | mod_gzip_item_include handler ^cgi-script$ 11 | mod_gzip_item_include mime ^text/.* 12 | mod_gzip_item_include mime ^application/x-javascript.* 13 | mod_gzip_item_exclude mime ^image/.* 14 | mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.* 15 | 16 | 17 | 18 | AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/x-javascript 19 | 20 | 21 | 22 | ExpiresActive On 23 | ExpiresDefault "access plus 1 seconds" 24 | ExpiresByType text/html "access plus 1 seconds" 25 | ExpiresByType image/gif "access plus 2592000 seconds" 26 | ExpiresByType image/jpeg "access plus 2592000 seconds" 27 | ExpiresByType image/png "access plus 2592000 seconds" 28 | ExpiresByType text/css "access plus 604800 seconds" 29 | ExpiresByType text/javascript "access plus 216000 seconds" 30 | ExpiresByType application/x-javascript "access plus 216000 seconds" 31 | 32 | 33 | 34 | Header unset ETag 35 | 36 | 37 | FileETag None 38 | 39 | 40 | Header unset Last-Modified 41 | 42 | 43 | AddType text/cache-manifest .manifest -------------------------------------------------------------------------------- /system/helpers/language_helper.php: -------------------------------------------------------------------------------- 1 | lang->line($line); 46 | 47 | if ($id != '') 48 | { 49 | $line = '"; 50 | } 51 | 52 | return $line; 53 | } 54 | } 55 | 56 | // ------------------------------------------------------------------------ 57 | /* End of file language_helper.php */ 58 | /* Location: ./system/helpers/language_helper.php */ -------------------------------------------------------------------------------- /system/language/english/calendar_lang.php: -------------------------------------------------------------------------------- 1 | 77 | -------------------------------------------------------------------------------- /application/config/foreign_chars.php: -------------------------------------------------------------------------------- 1 | 'ae', 12 | '/ö|œ/' => 'oe', 13 | '/ü/' => 'ue', 14 | '/Ä/' => 'Ae', 15 | '/Ü/' => 'Ue', 16 | '/Ö/' => 'Oe', 17 | '/À|Á|Â|Ã|Ä|Å|Ǻ|Ā|Ă|Ą|Ǎ/' => 'A', 18 | '/à|á|â|ã|å|ǻ|ā|ă|ą|ǎ|ª/' => 'a', 19 | '/Ç|Ć|Ĉ|Ċ|Č/' => 'C', 20 | '/ç|ć|ĉ|ċ|č/' => 'c', 21 | '/Ð|Ď|Đ/' => 'D', 22 | '/ð|ď|đ/' => 'd', 23 | '/È|É|Ê|Ë|Ē|Ĕ|Ė|Ę|Ě/' => 'E', 24 | '/è|é|ê|ë|ē|ĕ|ė|ę|ě/' => 'e', 25 | '/Ĝ|Ğ|Ġ|Ģ/' => 'G', 26 | '/ĝ|ğ|ġ|ģ/' => 'g', 27 | '/Ĥ|Ħ/' => 'H', 28 | '/ĥ|ħ/' => 'h', 29 | '/Ì|Í|Î|Ï|Ĩ|Ī|Ĭ|Ǐ|Į|İ/' => 'I', 30 | '/ì|í|î|ï|ĩ|ī|ĭ|ǐ|į|ı/' => 'i', 31 | '/Ĵ/' => 'J', 32 | '/ĵ/' => 'j', 33 | '/Ķ/' => 'K', 34 | '/ķ/' => 'k', 35 | '/Ĺ|Ļ|Ľ|Ŀ|Ł/' => 'L', 36 | '/ĺ|ļ|ľ|ŀ|ł/' => 'l', 37 | '/Ñ|Ń|Ņ|Ň/' => 'N', 38 | '/ñ|ń|ņ|ň|ʼn/' => 'n', 39 | '/Ò|Ó|Ô|Õ|Ō|Ŏ|Ǒ|Ő|Ơ|Ø|Ǿ/' => 'O', 40 | '/ò|ó|ô|õ|ō|ŏ|ǒ|ő|ơ|ø|ǿ|º/' => 'o', 41 | '/Ŕ|Ŗ|Ř/' => 'R', 42 | '/ŕ|ŗ|ř/' => 'r', 43 | '/Ś|Ŝ|Ş|Š/' => 'S', 44 | '/ś|ŝ|ş|š|ſ/' => 's', 45 | '/Ţ|Ť|Ŧ/' => 'T', 46 | '/ţ|ť|ŧ/' => 't', 47 | '/Ù|Ú|Û|Ũ|Ū|Ŭ|Ů|Ű|Ų|Ư|Ǔ|Ǖ|Ǘ|Ǚ|Ǜ/' => 'U', 48 | '/ù|ú|û|ũ|ū|ŭ|ů|ű|ų|ư|ǔ|ǖ|ǘ|ǚ|ǜ/' => 'u', 49 | '/Ý|Ÿ|Ŷ/' => 'Y', 50 | '/ý|ÿ|ŷ/' => 'y', 51 | '/Ŵ/' => 'W', 52 | '/ŵ/' => 'w', 53 | '/Ź|Ż|Ž/' => 'Z', 54 | '/ź|ż|ž/' => 'z', 55 | '/Æ|Ǽ/' => 'AE', 56 | '/ß/'=> 'ss', 57 | '/IJ/' => 'IJ', 58 | '/ij/' => 'ij', 59 | '/Œ/' => 'OE', 60 | '/ƒ/' => 'f' 61 | ); 62 | 63 | /* End of file foreign_chars.php */ 64 | /* Location: ./application/config/foreign_chars.php */ -------------------------------------------------------------------------------- /system/language/english/form_validation_lang.php: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 7 | 8 | <?php echo $title ?> 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 31 | 32 | -------------------------------------------------------------------------------- /touch/extensions/jqt.autotitles.js: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | _/ _/_/ _/_/_/_/_/ _/ 4 | _/ _/ _/ _/_/ _/ _/ _/_/_/ _/_/_/ 5 | _/ _/ _/_/ _/ _/ _/ _/ _/ _/ _/ _/ 6 | _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ 7 | _/ _/_/ _/ _/ _/_/ _/_/_/ _/_/_/ _/ _/ 8 | _/ 9 | _/ 10 | 11 | Created by David Kaneda 12 | Documentation and issue tracking on Google Code 13 | 14 | Special thanks to Jonathan Stark 15 | and pinch/zoom 16 | 17 | (c) 2009 by jQTouch project members. 18 | See LICENSE.txt for license. 19 | 20 | */ 21 | 22 | (function($) { 23 | if ($.jQTouch) 24 | { 25 | $.jQTouch.addExtension(function AutoTitles(jQT){ 26 | 27 | var titleSelector='.toolbar h1'; 28 | 29 | $(function(){ 30 | $('body').bind('pageAnimationStart', function(e, data){ 31 | if (data.direction === 'in'){ 32 | var $title = $(titleSelector, $(e.target)); 33 | var $ref = $(e.target).data('referrer'); 34 | if ($title.length && $ref){ 35 | $title.html($ref.text()); 36 | } 37 | } 38 | }); 39 | }); 40 | 41 | function setTitleSelector(ts){ 42 | titleSelector=ts; 43 | } 44 | 45 | return { 46 | setTitleSelector: setTitleSelector 47 | } 48 | 49 | }); 50 | } 51 | })(jQuery); -------------------------------------------------------------------------------- /system/core/Controller.php: -------------------------------------------------------------------------------- 1 | $class) 45 | { 46 | $this->$var =& load_class($class); 47 | } 48 | 49 | $this->load =& load_class('Loader', 'core'); 50 | 51 | $this->load->_base_classes =& is_loaded(); 52 | 53 | $this->load->_ci_autoloader(); 54 | 55 | log_message('debug', "Controller Class Initialized"); 56 | 57 | } 58 | 59 | public static function &get_instance() 60 | { 61 | return self::$instance; 62 | } 63 | } 64 | // END Controller class 65 | 66 | /* End of file Controller.php */ 67 | /* Location: ./system/core/Controller.php */ -------------------------------------------------------------------------------- /shell/myan_split2.php: -------------------------------------------------------------------------------- 1 | 82 | -------------------------------------------------------------------------------- /application/controllers/home.php: -------------------------------------------------------------------------------- 1 | 5 | * @version 2.0 6 | * @package Ornagai 7 | * @category Controller 8 | * @todo need to check HTTPS 9 | */ 10 | class Home extends CI_Controller { 11 | 12 | 13 | /* 14 | * Index page call home_view View 15 | */ 16 | function index() 17 | { 18 | $data['base']=$this->config->item('base_url'); 19 | 20 | $this->load->helper('url'); 21 | $iphone = strpos($_SERVER['HTTP_USER_AGENT'],"iPhone"); 22 | $android = strpos($_SERVER['HTTP_USER_AGENT'],"Android"); 23 | 24 | if ($iphone == true || $android==true) { 25 | redirect("/touch/"); 26 | exit(); 27 | } 28 | 29 | 30 | if($_SERVER['HTTP_HOST']!="localhost") 31 | { 32 | $portocol="http://"; 33 | 34 | if($portocol.$_SERVER['HTTP_HOST']!=$data['base']) 35 | { 36 | 37 | echo "Redirect"; 38 | $this->load->view("redirect_home",$data); 39 | 40 | } 41 | 42 | } 43 | 44 | //Total En mm word 45 | $this->load->model("words"); 46 | $data['entotal']=$this->words->get_en_total(); 47 | $data['mmtotal']=$this->words->get_mm_total(); 48 | 49 | 50 | 51 | $data['login']=$this->session->userdata('logged_in'); 52 | $this->load->view('home_view',$data); 53 | 54 | } 55 | function fbprofile() 56 | { 57 | $data['base']=$this->config->item('base_url'); 58 | 59 | $this->load->helper('url'); 60 | 61 | //Total En mm word 62 | $this->load->model("words"); 63 | $data['entotal']=$this->words->get_en_total(); 64 | $data['mmtotal']=$this->words->get_mm_total(); 65 | 66 | 67 | 68 | $data['login']=$this->session->userdata('logged_in'); 69 | $data['fbprofile']=true; 70 | $this->load->view('home_view',$data); 71 | } 72 | } 73 | 74 | ?> -------------------------------------------------------------------------------- /system/helpers/path_helper.php: -------------------------------------------------------------------------------- 1 | ","\"", "'", "-"), 53 | array("&", "<", ">", """, "'", "-"), 54 | $str); 55 | 56 | // Decode the temp markers back to entities 57 | $str = preg_replace("/$temp(\d+);/","&#\\1;",$str); 58 | 59 | if ($protect_all === TRUE) 60 | { 61 | $str = preg_replace("/$temp(\w+);/","&\\1;", $str); 62 | } 63 | 64 | return $str; 65 | } 66 | } 67 | 68 | // ------------------------------------------------------------------------ 69 | 70 | /* End of file xml_helper.php */ 71 | /* Location: ./system/helpers/xml_helper.php */ -------------------------------------------------------------------------------- /system/language/english/imglib_lang.php: -------------------------------------------------------------------------------- 1 | load->view("header_view",$data); 5 | ?> 6 | 85 |
    86 | ".$err."
    " : ""); ?> 87 |
    88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 |
    96 |
    -------------------------------------------------------------------------------- /system/codeigniter/Base4.php: -------------------------------------------------------------------------------- 1 | load->library('email') to instantiate 26 | * classes that can then be used within controllers as $this->email->send() 27 | * 28 | * PHP 4 also has trouble referencing the CI super object within application 29 | * constructors since objects do not exist until the class is fully 30 | * instantiated. Basically PHP 4 sucks... 31 | * 32 | * Since PHP 5 doesn't suffer from this problem so we load one of 33 | * two files based on the version of PHP being run. 34 | * 35 | * @package CodeIgniter 36 | * @subpackage codeigniter 37 | * @category front-controller 38 | * @author ExpressionEngine Dev Team 39 | * @link http://codeigniter.com/user_guide/ 40 | */ 41 | class CI_Base extends CI_Loader { 42 | 43 | function CI_Base() 44 | { 45 | // This allows syntax like $this->load->foo() to work 46 | parent::CI_Loader(); 47 | $this->load =& $this; 48 | 49 | // This allows resources used within controller constructors to work 50 | global $OBJ; 51 | $OBJ = $this->load; // Do NOT use a reference. 52 | } 53 | } 54 | 55 | function &get_instance() 56 | { 57 | global $CI, $OBJ; 58 | 59 | if (is_object($CI)) 60 | { 61 | return $CI; 62 | } 63 | 64 | return $OBJ->load; 65 | } 66 | 67 | 68 | /* End of file Base4.php */ 69 | /* Location: ./system/codeigniter/Base4.php */ -------------------------------------------------------------------------------- /system/helpers/number_helper.php: -------------------------------------------------------------------------------- 1 | lang->load('number'); 43 | 44 | if ($num >= 1000000000000) 45 | { 46 | $num = round($num / 1099511627776, $precision); 47 | $unit = $CI->lang->line('terabyte_abbr'); 48 | } 49 | elseif ($num >= 1000000000) 50 | { 51 | $num = round($num / 1073741824, $precision); 52 | $unit = $CI->lang->line('gigabyte_abbr'); 53 | } 54 | elseif ($num >= 1000000) 55 | { 56 | $num = round($num / 1048576, $precision); 57 | $unit = $CI->lang->line('megabyte_abbr'); 58 | } 59 | elseif ($num >= 1000) 60 | { 61 | $num = round($num / 1024, $precision); 62 | $unit = $CI->lang->line('kilobyte_abbr'); 63 | } 64 | else 65 | { 66 | $unit = $CI->lang->line('bytes'); 67 | return number_format($num).' '.$unit; 68 | } 69 | 70 | return number_format($num, $precision).' '.$unit; 71 | } 72 | } 73 | 74 | 75 | /* End of file number_helper.php */ 76 | /* Location: ./system/helpers/number_helper.php */ -------------------------------------------------------------------------------- /system/database/drivers/postgre/postgre_utility.php: -------------------------------------------------------------------------------- 1 | db->display_error('db_unsuported_feature'); 83 | } 84 | } 85 | 86 | 87 | /* End of file postgre_utility.php */ 88 | /* Location: ./system/database/drivers/postgre/postgre_utility.php */ -------------------------------------------------------------------------------- /application/controllers/register.php: -------------------------------------------------------------------------------- 1 | load->library('recaptcha'); 8 | $this->load->library('form_validation'); 9 | $this->lang->load('recaptcha'); 10 | $this->load->helper('form'); 11 | $this->form_validation->set_rules('recaptcha_response_field','lang:recaptcha_field_name','required|callback_check_captcha'); 12 | 13 | if(isset($_POST['username'])) 14 | { 15 | 16 | if ($this->form_validation->run()) 17 | { 18 | $this->load->model("users"); 19 | $this->users->save($_POST); 20 | header("Location:".$this->config->item('base_url')."/index.php/register/thankyou"); 21 | } 22 | } 23 | 24 | $data['base']=$this->config->item('base_url'); 25 | $data['title']="Ornagai :: Signup"; 26 | $data['recaptcha']=$this->recaptcha->get_html(); 27 | $this->load->library("recaptcha"); 28 | $this->load->view("register_view",$data); 29 | } 30 | 31 | function checkusr() 32 | { 33 | $usr=$_POST['name']; 34 | 35 | $this->load->model("users"); 36 | $res=$this->users->check_exist($usr); 37 | 38 | if($res) 39 | { 40 | echo "true"; 41 | } 42 | else{ 43 | echo "false"; 44 | } 45 | } 46 | 47 | function thankyou() 48 | { 49 | $data['base']=$this->config->item('base_url'); 50 | $data['title']="Ornagai :: Thank You For Register"; 51 | $this->load->view("thankyou_view",$data); 52 | } 53 | function forgotpwd() 54 | { 55 | $email=$_POST['email']; 56 | $this->load->model("users"); 57 | if($this->users->check_email($email)) 58 | { 59 | $this->users->forget_send_mail($email); 60 | } 61 | else 62 | { 63 | echo "false"; 64 | } 65 | } 66 | } 67 | ?> -------------------------------------------------------------------------------- /css/admin.css: -------------------------------------------------------------------------------- 1 | body 2 | { 3 | padding: 0px; 4 | margin: 0px; 5 | } 6 | .statics 7 | { 8 | padding:0px; 9 | } 10 | 11 | .left > ul , .right > ul 12 | { 13 | margin:0px; 14 | padding:0px; 15 | } 16 | .left 17 | { 18 | padding:0px; 19 | margin:0px; 20 | float:left; 21 | width:200px; 22 | font-weight: bold; 23 | } 24 | 25 | a , a:visited 26 | { 27 | text-decoration: none; 28 | color: #333; 29 | } 30 | 31 | .right 32 | { 33 | padding:0px; 34 | list-style:none; 35 | float:left; 36 | width:200px; 37 | } 38 | 39 | .left > ul > li, .right > ul > li { 40 | list-style:none; 41 | padding:0px; 42 | margin:0px; 43 | } 44 | 45 | 46 | .table_header 47 | { 48 | background-color: #D4DDE6; 49 | } 50 | 51 | .table_admin td 52 | { 53 | border: 0px; 54 | padding-left: 5px; 55 | padding-right: 5px; 56 | } 57 | 58 | .table_header th 59 | { 60 | border-top: 1px solid #7082AA; 61 | border-bottom: 1px solid #E2E9F6; 62 | } 63 | 64 | .popup 65 | { 66 | 67 | position: fixed; 68 | width: 100%; 69 | opacity: 0.9; 70 | top:0px; 71 | min-height:200px; 72 | height:100%; 73 | z-index: 100; 74 | background: #FFFFFF; 75 | font-size: 20px; 76 | text-align: center; 77 | display:none; 78 | } 79 | 80 | .admin_menu_wrapper 81 | { 82 | width: 100%; 83 | background-color: #CCC; 84 | padding: 0px; 85 | margin: 0px; 86 | } 87 | 88 | .admin_menu 89 | { 90 | padding: 0px; 91 | margin: 0px; 92 | list-style: none; 93 | } 94 | 95 | .admin_menu li 96 | { 97 | display: inline; 98 | border-right: 1px #444 solid; 99 | padding-left: 5px; 100 | padding-right: 5px; 101 | } 102 | 103 | input[type=button],input[type=submit],input[type=reset] 104 | { 105 | 106 | background-color:#E9E9E9; 107 | border:1px solid #5C5C5C; 108 | -moz-border-radius: 2em; 109 | border-radius: 2em; 110 | -webkit-border-radius: 2em; 111 | margin-left:5px; 112 | outline:none; 113 | -moz-outline-style: none; 114 | 115 | } 116 | 117 | input[type=button]:hover,input[type=submit]:hover,input[type=reset]:hover 118 | { 119 | background-color:#97C6EE; 120 | color: #FFF; 121 | } 122 | 123 | .btnbar 124 | { 125 | padding: 5px; 126 | } -------------------------------------------------------------------------------- /system/database/drivers/oci8/oci8_utility.php: -------------------------------------------------------------------------------- 1 | db->display_error('db_unsuported_feature'); 83 | } 84 | } 85 | 86 | /* End of file oci8_utility.php */ 87 | /* Location: ./system/database/drivers/oci8/oci8_utility.php */ -------------------------------------------------------------------------------- /application/views/result_view.php: -------------------------------------------------------------------------------- 1 | 8 | 9 |
    10 | 11 | "; 17 | echo "
  • Did you mean:
  • "; 18 | foreach($spelling as $spell_word) 19 | { 20 | echo "
  • ".$spell_word."
  • "; 21 | } 22 | 23 | echo ""; 24 | } 25 | 26 | $voice=$base.'/images/voice.png'; 27 | $approve=$base.'/images/approve.png'; 28 | foreach ($query as $row) 29 | { 30 | echo "
    "; 31 | 32 | 33 | 34 | if(!$mm) 35 | { 36 | echo str_replace($result,"".$result."",$row->Word); 37 | } 38 | else{ 39 | echo $row->Word; 40 | } 41 | ?> 42 | 43 | approve==0) 46 | { 47 | echo "approve"; 48 | } 49 | echo ''; 50 | echo "voice"; 51 | echo ""; 52 | echo "
    "; 53 | echo "".$row->state.""; 54 | echo "
    "; 55 | if(!$mm) 56 | { 57 | echo str_replace("|","",$row->def); 58 | } 59 | else{ 60 | $result=str_replace("|","",$result); 61 | echo str_replace($result,"".$result."", str_replace("|","",$row->def)); 62 | } 63 | echo "
    "; 64 | } 65 | 66 | 67 | $start=floor($page/$numshow); 68 | $end=$start+10; // 10 is show number of page nav in current page 69 | 70 | $tot_page=ceil($num_rows/$numshow); 71 | $start_mod=$page % $numshow; 72 | if($start_mod==0) $start=$start-1; 73 | $start=$start * $numshow; 74 | if($start==0) $start=1; 75 | 76 | ?> 77 |
    78 | $tot_page) break; 82 | 83 | if($i==$page) 84 | { 85 | echo "$i "; 86 | } 87 | else 88 | { 89 | echo "$i "; 90 | } 91 | } 92 | ?> 93 |
    94 | 95 | -------------------------------------------------------------------------------- /system/language/english/db_lang.php: -------------------------------------------------------------------------------- 1 | db->display_error('db_unsuported_feature'); 83 | } 84 | 85 | } 86 | 87 | /* End of file mssql_utility.php */ 88 | /* Location: ./system/database/drivers/mssql/mssql_utility.php */ -------------------------------------------------------------------------------- /system/database/drivers/mysqli/mysqli_utility.php: -------------------------------------------------------------------------------- 1 | db->_escape_identifiers($table); 52 | } 53 | 54 | // -------------------------------------------------------------------- 55 | 56 | /** 57 | * Repair table query 58 | * 59 | * Generates a platform-specific query so that a table can be repaired 60 | * 61 | * @access private 62 | * @param string the table name 63 | * @return object 64 | */ 65 | function _repair_table($table) 66 | { 67 | return "REPAIR TABLE ".$this->db->_escape_identifiers($table); 68 | } 69 | 70 | // -------------------------------------------------------------------- 71 | 72 | /** 73 | * MySQLi Export 74 | * 75 | * @access private 76 | * @param array Preferences 77 | * @return mixed 78 | */ 79 | function _backup($params = array()) 80 | { 81 | // Currently unsupported 82 | return $this->db->display_error('db_unsuported_feature'); 83 | } 84 | } 85 | 86 | /* End of file mysqli_utility.php */ 87 | /* Location: ./system/database/drivers/mysqli/mysqli_utility.php */ -------------------------------------------------------------------------------- /touch/jqtouch/jqtouch.transitions.js: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | _/ _/_/ _/_/_/_/_/ _/ 4 | _/ _/ _/ _/_/ _/ _/ _/_/_/ _/_/_/ 5 | _/ _/ _/_/ _/ _/ _/ _/ _/ _/ _/ _/ 6 | _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ 7 | _/ _/_/ _/ _/ _/_/ _/_/_/ _/_/_/ _/ _/ 8 | _/ 9 | _/ 10 | 11 | Created by David Kaneda 12 | Documentation and issue tracking on Google Code 13 | 14 | Special thanks to Jonathan Stark 15 | and pinch/zoom 16 | 17 | (c) 2009 by jQTouch project members. 18 | See LICENSE.txt for license. 19 | 20 | */ 21 | 22 | (function($) { 23 | 24 | $.fn.transition = function(css, options) { 25 | return this.each(function(){ 26 | var $el = $(this); 27 | var defaults = { 28 | speed : '300ms', 29 | callback: null, 30 | ease: 'ease-in-out' 31 | }; 32 | var settings = $.extend({}, defaults, options); 33 | if(settings.speed === 0) { 34 | $el.css(css); 35 | window.setTimeout(settings.callback, 0); 36 | } else { 37 | if ($.browser.safari) 38 | { 39 | var s = []; 40 | for(var i in css) { 41 | s.push(i); 42 | } 43 | $el.css({ 44 | webkitTransitionProperty: s.join(", "), 45 | webkitTransitionDuration: settings.speed, 46 | webkitTransitionTimingFunction: settings.ease 47 | }); 48 | if (settings.callback) { 49 | $el.one('webkitTransitionEnd', settings.callback); 50 | } 51 | setTimeout(function(el){ el.css(css) }, 0, $el); 52 | } 53 | else 54 | { 55 | $el.animate(css, settings.speed, settings.callback); 56 | } 57 | } 58 | }); 59 | } 60 | })(jQuery); -------------------------------------------------------------------------------- /system/helpers/directory_helper.php: -------------------------------------------------------------------------------- 1 | 0) && @is_dir($source_dir.$file)) 61 | { 62 | $filedata[$file] = directory_map($source_dir.$file.DIRECTORY_SEPARATOR, $new_depth, $hidden); 63 | } 64 | else 65 | { 66 | $filedata[] = $file; 67 | } 68 | } 69 | 70 | closedir($fp); 71 | return $filedata; 72 | } 73 | 74 | return FALSE; 75 | } 76 | } 77 | 78 | 79 | /* End of file directory_helper.php */ 80 | /* Location: ./system/helpers/directory_helper.php */ -------------------------------------------------------------------------------- /system/codeigniter/Compat.php: -------------------------------------------------------------------------------- 1 | _assign_libraries( (method_exists($this, '__get') OR method_exists($this, '__set')) ? FALSE : TRUE ); 40 | 41 | // We don't want to assign the model object to itself when using the 42 | // assign_libraries function below so we'll grab the name of the model parent 43 | $this->_parent_name = ucfirst(get_class($this)); 44 | 45 | log_message('debug', "Model Class Initialized"); 46 | } 47 | 48 | /** 49 | * Assign Libraries 50 | * 51 | * Creates local references to all currently instantiated objects 52 | * so that any syntax that can be legally used in a controller 53 | * can be used within models. 54 | * 55 | * @access private 56 | */ 57 | function _assign_libraries($use_reference = TRUE) 58 | { 59 | $CI =& get_instance(); 60 | foreach (array_keys(get_object_vars($CI)) as $key) 61 | { 62 | if ( ! isset($this->$key) AND $key != $this->_parent_name) 63 | { 64 | // In some cases using references can cause 65 | // problems so we'll conditionally use them 66 | if ($use_reference == TRUE) 67 | { 68 | $this->$key = NULL; // Needed to prevent reference errors with some configurations 69 | $this->$key =& $CI->$key; 70 | } 71 | else 72 | { 73 | $this->$key = $CI->$key; 74 | } 75 | } 76 | } 77 | } 78 | 79 | } 80 | // END Model Class 81 | 82 | /* End of file Model.php */ 83 | /* Location: ./system/libraries/Model.php */ -------------------------------------------------------------------------------- /application/views/touch_view.php: -------------------------------------------------------------------------------- 1 | load->view("touch_head",$data); 6 | ?> 7 |
    8 |
     Searching...
    9 |
    10 |

    Ornagai

    11 |
    12 |
      13 |
    • 14 |
    15 | Search 16 | 17 |

    External Links

    18 | 22 | 23 | 58 | 63 |
    64 | 65 |
    66 |
    67 |

    68 | Back 69 |
    70 |
      71 | 72 | 73 |
    74 | 75 |
    76 | 77 | load->view("touch_footer"); 79 | ?> -------------------------------------------------------------------------------- /system/database/drivers/sqlite/sqlite_utility.php: -------------------------------------------------------------------------------- 1 | db_debug) 41 | { 42 | return $this->db->display_error('db_unsuported_feature'); 43 | } 44 | return array(); 45 | } 46 | 47 | // -------------------------------------------------------------------- 48 | 49 | /** 50 | * Optimize table query 51 | * 52 | * Is optimization even supported in SQLite? 53 | * 54 | * @access private 55 | * @param string the table name 56 | * @return object 57 | */ 58 | function _optimize_table($table) 59 | { 60 | return FALSE; 61 | } 62 | 63 | // -------------------------------------------------------------------- 64 | 65 | /** 66 | * Repair table query 67 | * 68 | * Are table repairs even supported in SQLite? 69 | * 70 | * @access private 71 | * @param string the table name 72 | * @return object 73 | */ 74 | function _repair_table($table) 75 | { 76 | return FALSE; 77 | } 78 | 79 | // -------------------------------------------------------------------- 80 | 81 | /** 82 | * SQLite Export 83 | * 84 | * @access private 85 | * @param array Preferences 86 | * @return mixed 87 | */ 88 | function _backup($params = array()) 89 | { 90 | // Currently unsupported 91 | return $this->db->display_error('db_unsuported_feature'); 92 | } 93 | } 94 | 95 | /* End of file sqlite_utility.php */ 96 | /* Location: ./system/database/drivers/sqlite/sqlite_utility.php */ -------------------------------------------------------------------------------- /touch/extensions/jqt.location.js: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | _/ _/_/ _/_/_/_/_/ _/ 4 | _/ _/ _/ _/_/ _/ _/ _/_/_/ _/_/_/ 5 | _/ _/ _/_/ _/ _/ _/ _/ _/ _/ _/ _/ 6 | _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ 7 | _/ _/_/ _/ _/ _/_/ _/_/_/ _/_/_/ _/ _/ 8 | _/ 9 | _/ 10 | 11 | Created by David Kaneda 12 | Documentation and issue tracking on Google Code 13 | 14 | Special thanks to Jonathan Stark 15 | and pinch/zoom 16 | 17 | (c) 2009 by jQTouch project members. 18 | See LICENSE.txt for license. 19 | 20 | */ 21 | 22 | (function($) { 23 | if ($.jQTouch) 24 | { 25 | $.jQTouch.addExtension(function Location(){ 26 | 27 | var latitude, longitude, callback; 28 | 29 | function checkGeoLocation() { 30 | return navigator.geolocation; 31 | } 32 | function updateLocation(fn) { 33 | if (checkGeoLocation()) 34 | { 35 | callback = fn; 36 | navigator.geolocation.getCurrentPosition(savePosition); 37 | return true; 38 | } else { 39 | console.log('Device not capable of geo-location.'); 40 | fn(false); 41 | return false; 42 | } 43 | } 44 | function savePosition(position) { 45 | latitude = position.coords.latitude; 46 | longitude = position.coords.longitude; 47 | if (callback) { 48 | callback(getLocation()); 49 | } 50 | } 51 | function getLocation() { 52 | if (latitude && longitude) { 53 | return { 54 | latitude: latitude, 55 | longitude: longitude 56 | } 57 | } else { 58 | console.log('No location available. Try calling updateLocation() first.'); 59 | return false; 60 | } 61 | } 62 | return { 63 | updateLocation: updateLocation, 64 | getLocation: getLocation 65 | } 66 | }); 67 | } 68 | })(jQuery); -------------------------------------------------------------------------------- /system/helpers/typography_helper.php: -------------------------------------------------------------------------------- 1 | load->library('typography'); 44 | 45 | return $CI->typography->nl2br_except_pre($str); 46 | } 47 | } 48 | 49 | // ------------------------------------------------------------------------ 50 | 51 | /** 52 | * Auto Typography Wrapper Function 53 | * 54 | * 55 | * @access public 56 | * @param string 57 | * @param bool whether to allow javascript event handlers 58 | * @param bool whether to reduce multiple instances of double newlines to two 59 | * @return string 60 | */ 61 | if ( ! function_exists('auto_typography')) 62 | { 63 | function auto_typography($str, $strip_js_event_handlers = TRUE, $reduce_linebreaks = FALSE) 64 | { 65 | $CI =& get_instance(); 66 | $CI->load->library('typography'); 67 | return $CI->typography->auto_typography($str, $strip_js_event_handlers, $reduce_linebreaks); 68 | } 69 | } 70 | 71 | 72 | // -------------------------------------------------------------------- 73 | 74 | /** 75 | * HTML Entities Decode 76 | * 77 | * This function is a replacement for html_entity_decode() 78 | * 79 | * @access public 80 | * @param string 81 | * @return string 82 | */ 83 | if ( ! function_exists('entity_decode')) 84 | { 85 | function entity_decode($str, $charset='UTF-8') 86 | { 87 | global $SEC; 88 | return $SEC->entity_decode($str, $charset); 89 | } 90 | } 91 | 92 | /* End of file typography_helper.php */ 93 | /* Location: ./system/helpers/typography_helper.php */ -------------------------------------------------------------------------------- /license.txt: -------------------------------------------------------------------------------- 1 | Copyright (c) 2008 - 2011, EllisLab, Inc. 2 | All rights reserved. 3 | 4 | This license is a legal agreement between you and EllisLab Inc. for the use 5 | of CodeIgniter Software (the "Software"). By obtaining the Software you 6 | agree to comply with the terms and conditions of this license. 7 | 8 | PERMITTED USE 9 | You are permitted to use, copy, modify, and distribute the Software and its 10 | documentation, with or without modification, for any purpose, provided that 11 | the following conditions are met: 12 | 13 | 1. A copy of this license agreement must be included with the distribution. 14 | 15 | 2. Redistributions of source code must retain the above copyright notice in 16 | all source code files. 17 | 18 | 3. Redistributions in binary form must reproduce the above copyright notice 19 | in the documentation and/or other materials provided with the distribution. 20 | 21 | 4. Any files that have been modified must carry notices stating the nature 22 | of the change and the names of those who changed them. 23 | 24 | 5. Products derived from the Software must include an acknowledgment that 25 | they are derived from CodeIgniter in their documentation and/or other 26 | materials provided with the distribution. 27 | 28 | 6. Products derived from the Software may not be called "CodeIgniter", 29 | nor may "CodeIgniter" appear in their name, without prior written 30 | permission from EllisLab, Inc. 31 | 32 | INDEMNITY 33 | You agree to indemnify and hold harmless the authors of the Software and 34 | any contributors for any direct, indirect, incidental, or consequential 35 | third-party claims, actions or suits, as well as any related expenses, 36 | liabilities, damages, settlements or fees arising from your use or misuse 37 | of the Software, or a violation of any terms of this license. 38 | 39 | DISCLAIMER OF WARRANTY 40 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESSED OR 41 | IMPLIED, INCLUDING, BUT NOT LIMITED TO, WARRANTIES OF QUALITY, PERFORMANCE, 42 | NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE. 43 | 44 | LIMITATIONS OF LIABILITY 45 | YOU ASSUME ALL RISK ASSOCIATED WITH THE INSTALLATION AND USE OF THE SOFTWARE. 46 | IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS OF THE SOFTWARE BE LIABLE 47 | FOR CLAIMS, DAMAGES OR OTHER LIABILITY ARISING FROM, OUT OF, OR IN CONNECTION 48 | WITH THE SOFTWARE. LICENSE HOLDERS ARE SOLELY RESPONSIBLE FOR DETERMINING THE 49 | APPROPRIATENESS OF USE AND ASSUME ALL RISKS ASSOCIATED WITH ITS USE, INCLUDING 50 | BUT NOT LIMITED TO THE RISKS OF PROGRAM ERRORS, DAMAGE TO EQUIPMENT, LOSS OF 51 | DATA OR SOFTWARE PROGRAMS, OR UNAVAILABILITY OR INTERRUPTION OF OPERATIONS. 52 | -------------------------------------------------------------------------------- /system/scaffolding/views/stylesheet.css: -------------------------------------------------------------------------------- 1 | body { 2 | margin: 0; 3 | padding: 0; 4 | font-family: Lucida Grande, Verdana, Geneva, Sans-serif; 5 | font-size: 11px; 6 | color: #4F5155; 7 | background: #fff url(background.jpg) repeat-x left top; 8 | } 9 | 10 | a { 11 | color: #8B0D00; 12 | background-color: transparent; 13 | text-decoration: none; 14 | font-weight: bold; 15 | } 16 | 17 | a:visited { 18 | color: #8B0D00; 19 | background-color: transparent; 20 | text-decoration: none; 21 | } 22 | 23 | a:hover { 24 | color: #000; 25 | text-decoration: none; 26 | background-color: transparent; 27 | } 28 | 29 | 30 | #header { 31 | margin: 0; 32 | padding: 0; 33 | } 34 | 35 | #header_left { 36 | background-color: transparent; 37 | float: left; 38 | padding: 21px 0 0 32px; 39 | margin: 0 40 | } 41 | 42 | #header_right { 43 | background-color: transparent; 44 | float: right; 45 | text-align: right; 46 | padding: 35px 50px 20px 0; 47 | margin: 0 48 | } 49 | 50 | #footer { 51 | margin: 20px 0 15px 0; 52 | padding: 0; 53 | } 54 | 55 | #footer p { 56 | font-size: 10px; 57 | color: #999; 58 | text-align: center; 59 | } 60 | 61 | #outer { 62 | margin: 30px 40px 0 40px; 63 | } 64 | 65 | img { 66 | padding:0; 67 | border: 0; 68 | margin: 0; 69 | } 70 | 71 | .nopad { 72 | padding:0; 73 | border: 0; 74 | margin: 0; 75 | } 76 | 77 | table { 78 | background-color: #efefef; 79 | } 80 | 81 | th { 82 | background-color: #eee; 83 | font-weight: bold; 84 | padding: 6px; 85 | text-align: left; 86 | } 87 | 88 | td { 89 | background-color: #fff; 90 | padding: 6px; 91 | } 92 | 93 | 94 | form { 95 | margin: 0; 96 | padding: 0; 97 | } 98 | 99 | .input { 100 | font-family: Lucida Grande, Verdana, Geneva, Sans-serif; 101 | font-size: 11px; 102 | width: 600px; 103 | color: #333; 104 | border: 1px solid #B3B4BD; 105 | font-size: 11px; 106 | height: 2em; 107 | padding: 0; 108 | margin: 0; 109 | } 110 | 111 | .textarea { 112 | font-family: Lucida Grande, Verdana, Geneva, Sans-serif; 113 | font-size: 12px; 114 | width: 600px; 115 | color: #333; 116 | border: 1px solid #B3B4BD; 117 | padding: 0; 118 | margin: 0; 119 | } 120 | 121 | .select { 122 | background-color: #fff; 123 | font-size: 11px; 124 | font-weight: normal; 125 | color: #333; 126 | padding: 0; 127 | margin: 0 0 3px 0; 128 | } 129 | 130 | .checkbox { 131 | background-color: transparent; 132 | padding: 0; 133 | border: 0; 134 | } 135 | 136 | .submit { 137 | background-color: #8B0D00; 138 | color: #FFF; 139 | font-weight: normal; 140 | border: 1px solid #000; 141 | margin: 6px 0 0 0; 142 | padding: 1px 5px 1px 5px; 143 | } 144 | -------------------------------------------------------------------------------- /js/jq_box.js: -------------------------------------------------------------------------------- 1 | (function($){ 2 | $.fn.jqbox = function(options) { 3 | 4 | var defaults = { 5 | html: "", 6 | width:200, 7 | height:200, 8 | alertbox:false, 9 | confirmbox:false, 10 | onyes:"", 11 | onno:"", 12 | onok:"", 13 | yestxt: "YES", 14 | notxt:"NO", 15 | oktxt: "OK", 16 | closebtn:true 17 | 18 | }; 19 | 20 | var options = $.extend(defaults, options); 21 | 22 | return this.each(function() { 23 | 24 | $(".jqbox_innerhtml").remove(); 25 | $(".jqbox_shadow").remove(); 26 | 27 | margin_top=(options.height/2)+50; 28 | margin_left=(options.width/2) 29 | 30 | 31 | $("body").append("
    "); 32 | $("body").append("
    "+options.html+"
    "); 33 | if(options.closebtn) 34 | { 35 | $(".jqbox_innerhtml").append(""); 36 | } 37 | 38 | if(options.alertbox) 39 | { 40 | $(".jqbox_innerhtml").append("
    "+options.oktxt+"
    "); 41 | } 42 | else if(options.confirmbox) 43 | { 44 | $(".jqbox_innerhtml").append("
    "+options.yestxt+"
    "+options.notxt+"
    "); 45 | } 46 | 47 | 48 | 49 | 50 | $(".jqbox_innerhtml").css("width",options.width+"px"); 51 | $(".jqbox_innerhtml").css("height",options.height+"px"); 52 | $(".jqbox_innerhtml").css("margin-top","-"+margin_top+"px"); 53 | $(".jqbox_innerhtml").css("margin-left","-"+margin_left+"px"); 54 | 55 | $(".jqbox_shadow").fadeIn(); 56 | $(".jqbox_innerhtml").fadeIn("slow"); 57 | 58 | if(options.closebtn) 59 | { 60 | $(".jqbox_close").click(function(){ 61 | $(".jqbox_innerhtml").fadeOut("slow"); 62 | $(".jqbox_shadow").fadeOut("slow"); 63 | 64 | }); 65 | } 66 | 67 | $(".jqbox_ok").click(function(){ 68 | $(".jqbox_innerhtml").fadeOut("slow"); 69 | $(".jqbox_shadow").fadeOut("slow"); 70 | 71 | if(options.onok!="") eval(options.onok); 72 | 73 | }); 74 | 75 | $(".jqbox_yes").click(function(){ 76 | $(".jqbox_innerhtml").fadeOut("slow"); 77 | $(".jqbox_shadow").fadeOut("slow"); 78 | if(options.onyes!="") eval(options.onyes); 79 | }); 80 | 81 | 82 | $(".jqbox_no").click(function(){ 83 | $(".jqbox_innerhtml").fadeOut("slow"); 84 | $(".jqbox_shadow").fadeOut("slow"); 85 | if(options.onno!="") eval(options.onno); 86 | }); 87 | 88 | 89 | 90 | }); 91 | 92 | }; 93 | })(jQuery); -------------------------------------------------------------------------------- /application/models/searchmodel.php: -------------------------------------------------------------------------------- 1 | db->query($sql); 52 | 53 | 54 | if($query->num_rows() > 0) 55 | { 56 | return $query->result(); 57 | } 58 | else{ 59 | return false; 60 | } 61 | 62 | 63 | } 64 | 65 | function query_numrows($q,$mm) 66 | { 67 | 68 | if($mm) 69 | { 70 | 71 | $my_data=mysql_real_escape_string($q); 72 | $sql=" 73 | 74 | SELECT * , IF( `def` = '$my_data', 1, IF( `def` LIKE '$my_data%', 2, IF( `def` LIKE '%$my_data', 4, 3 ) ) ) AS `sort` 75 | FROM `mydblist` 76 | WHERE `def` LIKE '%$my_data%' 77 | ORDER BY `sort` , `def` 78 | 79 | "; 80 | 81 | } 82 | else{ 83 | $data_q=mysql_real_escape_string($q); 84 | $sql=" 85 | SELECT * , IF( `Word` = '$data_q', 1, IF( `Word` LIKE '$data_q%', 2, IF( `Word` LIKE '%$data_q', 4, 3 ) ) ) AS `sort` 86 | FROM `dblist` 87 | WHERE `Word` LIKE '%$data_q%' 88 | ORDER BY `sort` , `Word` 89 | 90 | "; 91 | 92 | } 93 | 94 | 95 | 96 | $query=$this->db->query($sql); 97 | 98 | return $query->num_rows; 99 | 100 | 101 | 102 | } 103 | 104 | 105 | 106 | } 107 | 108 | ?> -------------------------------------------------------------------------------- /system/database/drivers/odbc/odbc_utility.php: -------------------------------------------------------------------------------- 1 | db->db_debug) 37 | { 38 | return $this->db->display_error('db_unsuported_feature'); 39 | } 40 | return FALSE; 41 | } 42 | 43 | // -------------------------------------------------------------------- 44 | 45 | /** 46 | * Optimize table query 47 | * 48 | * Generates a platform-specific query so that a table can be optimized 49 | * 50 | * @access private 51 | * @param string the table name 52 | * @return object 53 | */ 54 | function _optimize_table($table) 55 | { 56 | // Not a supported ODBC feature 57 | if ($this->db->db_debug) 58 | { 59 | return $this->db->display_error('db_unsuported_feature'); 60 | } 61 | return FALSE; 62 | } 63 | 64 | // -------------------------------------------------------------------- 65 | 66 | /** 67 | * Repair table query 68 | * 69 | * Generates a platform-specific query so that a table can be repaired 70 | * 71 | * @access private 72 | * @param string the table name 73 | * @return object 74 | */ 75 | function _repair_table($table) 76 | { 77 | // Not a supported ODBC feature 78 | if ($this->db->db_debug) 79 | { 80 | return $this->db->display_error('db_unsuported_feature'); 81 | } 82 | return FALSE; 83 | } 84 | 85 | // -------------------------------------------------------------------- 86 | 87 | /** 88 | * ODBC Export 89 | * 90 | * @access private 91 | * @param array Preferences 92 | * @return mixed 93 | */ 94 | function _backup($params = array()) 95 | { 96 | // Currently unsupported 97 | return $this->db->display_error('db_unsuported_feature'); 98 | } 99 | 100 | } 101 | 102 | /* End of file odbc_utility.php */ 103 | /* Location: ./system/database/drivers/odbc/odbc_utility.php */ -------------------------------------------------------------------------------- /application/config/database.php: -------------------------------------------------------------------------------- 1 | input->set_cookie($name, $value, $expire, $domain, $path, $prefix, $secure); 52 | } 53 | } 54 | 55 | // -------------------------------------------------------------------- 56 | 57 | /** 58 | * Fetch an item from the COOKIE array 59 | * 60 | * @access public 61 | * @param string 62 | * @param bool 63 | * @return mixed 64 | */ 65 | if ( ! function_exists('get_cookie')) 66 | { 67 | function get_cookie($index = '', $xss_clean = FALSE) 68 | { 69 | $CI =& get_instance(); 70 | 71 | $prefix = ''; 72 | 73 | if ( ! isset($_COOKIE[$index]) && config_item('cookie_prefix') != '') 74 | { 75 | $prefix = config_item('cookie_prefix'); 76 | } 77 | 78 | return $CI->input->cookie($prefix.$index, $xss_clean); 79 | } 80 | } 81 | 82 | // -------------------------------------------------------------------- 83 | 84 | /** 85 | * Delete a COOKIE 86 | * 87 | * @param mixed 88 | * @param string the cookie domain. Usually: .yourdomain.com 89 | * @param string the cookie path 90 | * @param string the cookie prefix 91 | * @return void 92 | */ 93 | if ( ! function_exists('delete_cookie')) 94 | { 95 | function delete_cookie($name = '', $domain = '', $path = '/', $prefix = '') 96 | { 97 | set_cookie($name, '', '', $domain, $path, $prefix); 98 | } 99 | } 100 | 101 | 102 | /* End of file cookie_helper.php */ 103 | /* Location: ./system/helpers/cookie_helper.php */ -------------------------------------------------------------------------------- /shell/reduce.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /system/helpers/array_helper.php: -------------------------------------------------------------------------------- 1 | '1', 'DEBUG' => '2', 'INFO' => '3', 'ALL' => '4'); 34 | 35 | /** 36 | * Constructor 37 | */ 38 | public function __construct() 39 | { 40 | $config =& get_config(); 41 | 42 | $this->_log_path = ($config['log_path'] != '') ? $config['log_path'] : APPPATH.'logs/'; 43 | 44 | if ( ! is_dir($this->_log_path) OR ! is_really_writable($this->_log_path)) 45 | { 46 | $this->_enabled = FALSE; 47 | } 48 | 49 | if (is_numeric($config['log_threshold'])) 50 | { 51 | $this->_threshold = $config['log_threshold']; 52 | } 53 | 54 | if ($config['log_date_format'] != '') 55 | { 56 | $this->_date_fmt = $config['log_date_format']; 57 | } 58 | } 59 | 60 | // -------------------------------------------------------------------- 61 | 62 | /** 63 | * Write Log File 64 | * 65 | * Generally this function will be called using the global log_message() function 66 | * 67 | * @param string the error level 68 | * @param string the error message 69 | * @param bool whether the error is a native PHP error 70 | * @return bool 71 | */ 72 | public function write_log($level = 'error', $msg, $php_error = FALSE) 73 | { 74 | if ($this->_enabled === FALSE) 75 | { 76 | return FALSE; 77 | } 78 | 79 | $level = strtoupper($level); 80 | 81 | if ( ! isset($this->_levels[$level]) OR ($this->_levels[$level] > $this->_threshold)) 82 | { 83 | return FALSE; 84 | } 85 | 86 | $filepath = $this->_log_path.'log-'.date('Y-m-d').EXT; 87 | $message = ''; 88 | 89 | if ( ! file_exists($filepath)) 90 | { 91 | $message .= "<"."?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); ?".">\n\n"; 92 | } 93 | 94 | if ( ! $fp = @fopen($filepath, FOPEN_WRITE_CREATE)) 95 | { 96 | return FALSE; 97 | } 98 | 99 | $message .= $level.' '.(($level == 'INFO') ? ' -' : '-').' '.date($this->_date_fmt). ' --> '.$msg."\n"; 100 | 101 | flock($fp, LOCK_EX); 102 | fwrite($fp, $message); 103 | flock($fp, LOCK_UN); 104 | fclose($fp); 105 | 106 | @chmod($filepath, FILE_WRITE_MODE); 107 | return TRUE; 108 | } 109 | 110 | } 111 | // END Log Class 112 | 113 | /* End of file Log.php */ 114 | /* Location: ./system/libraries/Log.php */ -------------------------------------------------------------------------------- /system/helpers/download_helper.php: -------------------------------------------------------------------------------- 1 | config->item('base_url'); 11 | 12 | 13 | if(isset($_POST['message']) and ($_POST['message']!="")) 14 | { 15 | $q=trim($_POST['message']); 16 | 17 | if(isset($_POST['page'])) 18 | { 19 | $page=$_POST['page']; 20 | } 21 | else 22 | { 23 | $page=1; 24 | } 25 | $this->load->model('searchmodel'); 26 | $myanmar=$this->searchmodel->detect_langauage($q); 27 | 28 | if($myanmar) 29 | { 30 | $this->load->library("zawgyi"); 31 | $q=$this->zawgyi->normalize($q,"|",true); 32 | $data['spelling']=false; 33 | } 34 | else 35 | { 36 | //specll check 37 | $this->load->library("spellcheck"); 38 | $data['spelling']=$this->spellcheck->check($q); 39 | } 40 | $data['query']=$this->searchmodel->query($q,$myanmar,$page); 41 | $data['result']=$q; 42 | $data['mm']=$myanmar; 43 | $data['num_rows']=$this->searchmodel->query_numrows($q,$myanmar); 44 | 45 | $data['numshow']=10; 46 | 47 | $data['page']=$page; 48 | if($data['query']) 49 | { 50 | $this->load->view('result_view',$data); 51 | } 52 | else{ 53 | echo '
    '; 54 | if($data['spelling']) 55 | { 56 | 57 | echo "
      "; 58 | echo "
    • Did you mean:
    • "; 59 | foreach($data['spelling'] as $spell_word) 60 | { 61 | echo "
    • ".$spell_word."
    • "; 62 | } 63 | 64 | echo "
    "; 65 | } 66 | echo "Can't Find"; 67 | echo "
    "; 68 | } 69 | 70 | 71 | } 72 | else 73 | { 74 | //header("Location:".$this->config->item('base_url')); 75 | echo "Can't Find"; 76 | } 77 | } 78 | 79 | function autocomplete() 80 | { 81 | parse_str($_SERVER['QUERY_STRING'],$_GET); 82 | 83 | $q=$_GET['q']; 84 | 85 | $this->load->model('searchmodel'); 86 | $myanmar=$this->searchmodel->detect_langauage($q); 87 | 88 | if($myanmar) 89 | { 90 | $this->load->library("zawgyi"); 91 | $this->zawgyi->normalize($q,"|",true); 92 | } 93 | $query=$this->searchmodel->query($q,$myanmar); 94 | $num_row=$this->searchmodel->query_numrows($q,$myanmar); 95 | if($num_row>0) 96 | { 97 | foreach($query as $rows) 98 | { 99 | if($myanmar) 100 | { 101 | $def=$rows->def; 102 | $def=str_replace("|","",$def); 103 | echo $def."\n"; 104 | } 105 | else 106 | { 107 | echo $rows->Word."\n"; 108 | } 109 | } 110 | } 111 | } 112 | } 113 | 114 | 115 | ?> -------------------------------------------------------------------------------- /system/helpers/security_helper.php: -------------------------------------------------------------------------------- 1 | security->xss_clean($str, $is_image); 44 | } 45 | } 46 | 47 | // ------------------------------------------------------------------------ 48 | 49 | /** 50 | * Sanitize Filename 51 | * 52 | * @access public 53 | * @param string 54 | * @return string 55 | */ 56 | if ( ! function_exists('sanitize_filename')) 57 | { 58 | function sanitize_filename($filename) 59 | { 60 | $CI =& get_instance(); 61 | return $CI->security->sanitize_filename($filename); 62 | } 63 | } 64 | 65 | // -------------------------------------------------------------------- 66 | 67 | /** 68 | * Hash encode a string 69 | * 70 | * @access public 71 | * @param string 72 | * @return string 73 | */ 74 | if ( ! function_exists('do_hash')) 75 | { 76 | function do_hash($str, $type = 'sha1') 77 | { 78 | if ($type == 'sha1') 79 | { 80 | return sha1($str); 81 | } 82 | else 83 | { 84 | return md5($str); 85 | } 86 | } 87 | } 88 | 89 | // ------------------------------------------------------------------------ 90 | 91 | /** 92 | * Strip Image Tags 93 | * 94 | * @access public 95 | * @param string 96 | * @return string 97 | */ 98 | if ( ! function_exists('strip_image_tags')) 99 | { 100 | function strip_image_tags($str) 101 | { 102 | $str = preg_replace("##", "\\1", $str); 103 | $str = preg_replace("##", "\\1", $str); 104 | 105 | return $str; 106 | } 107 | } 108 | 109 | // ------------------------------------------------------------------------ 110 | 111 | /** 112 | * Convert PHP tags to entities 113 | * 114 | * @access public 115 | * @param string 116 | * @return string 117 | */ 118 | if ( ! function_exists('encode_php_tags')) 119 | { 120 | function encode_php_tags($str) 121 | { 122 | return str_replace(array(''), array('<?php', '<?PHP', '<?', '?>'), $str); 123 | } 124 | } 125 | 126 | 127 | /* End of file security_helper.php */ 128 | /* Location: ./system/helpers/security_helper.php */ -------------------------------------------------------------------------------- /system/libraries/Cache/drivers/Cache_dummy.php: -------------------------------------------------------------------------------- 1 | marker[$name] = microtime(); 49 | } 50 | 51 | // -------------------------------------------------------------------- 52 | 53 | /** 54 | * Calculates the time difference between two marked points. 55 | * 56 | * If the first parameter is empty this function instead returns the 57 | * {elapsed_time} pseudo-variable. This permits the full system 58 | * execution time to be shown in a template. The output class will 59 | * swap the real value for this variable. 60 | * 61 | * @access public 62 | * @param string a particular marked point 63 | * @param string a particular marked point 64 | * @param integer the number of decimal places 65 | * @return mixed 66 | */ 67 | function elapsed_time($point1 = '', $point2 = '', $decimals = 4) 68 | { 69 | if ($point1 == '') 70 | { 71 | return '{elapsed_time}'; 72 | } 73 | 74 | if ( ! isset($this->marker[$point1])) 75 | { 76 | return ''; 77 | } 78 | 79 | if ( ! isset($this->marker[$point2])) 80 | { 81 | $this->marker[$point2] = microtime(); 82 | } 83 | 84 | list($sm, $ss) = explode(' ', $this->marker[$point1]); 85 | list($em, $es) = explode(' ', $this->marker[$point2]); 86 | 87 | return number_format(($em + $es) - ($sm + $ss), $decimals); 88 | } 89 | 90 | // -------------------------------------------------------------------- 91 | 92 | /** 93 | * Memory Usage 94 | * 95 | * This function returns the {memory_usage} pseudo-variable. 96 | * This permits it to be put it anywhere in a template 97 | * without the memory being calculated until the end. 98 | * The output class will swap the real value for this variable. 99 | * 100 | * @access public 101 | * @return string 102 | */ 103 | function memory_usage() 104 | { 105 | return '{memory_usage}'; 106 | } 107 | 108 | } 109 | 110 | // END CI_Benchmark class 111 | 112 | /* End of file Benchmark.php */ 113 | /* Location: ./system/core/Benchmark.php */ -------------------------------------------------------------------------------- /system/libraries/Benchmark.php: -------------------------------------------------------------------------------- 1 | marker[$name] = microtime(); 49 | } 50 | 51 | // -------------------------------------------------------------------- 52 | 53 | /** 54 | * Calculates the time difference between two marked points. 55 | * 56 | * If the first parameter is empty this function instead returns the 57 | * {elapsed_time} pseudo-variable. This permits the full system 58 | * execution time to be shown in a template. The output class will 59 | * swap the real value for this variable. 60 | * 61 | * @access public 62 | * @param string a particular marked point 63 | * @param string a particular marked point 64 | * @param integer the number of decimal places 65 | * @return mixed 66 | */ 67 | function elapsed_time($point1 = '', $point2 = '', $decimals = 4) 68 | { 69 | if ($point1 == '') 70 | { 71 | return '{elapsed_time}'; 72 | } 73 | 74 | if ( ! isset($this->marker[$point1])) 75 | { 76 | return ''; 77 | } 78 | 79 | if ( ! isset($this->marker[$point2])) 80 | { 81 | $this->marker[$point2] = microtime(); 82 | } 83 | 84 | list($sm, $ss) = explode(' ', $this->marker[$point1]); 85 | list($em, $es) = explode(' ', $this->marker[$point2]); 86 | 87 | return number_format(($em + $es) - ($sm + $ss), $decimals); 88 | } 89 | 90 | // -------------------------------------------------------------------- 91 | 92 | /** 93 | * Memory Usage 94 | * 95 | * This function returns the {memory_usage} pseudo-variable. 96 | * This permits it to be put it anywhere in a template 97 | * without the memory being calculated until the end. 98 | * The output class will swap the real value for this variable. 99 | * 100 | * @access public 101 | * @return string 102 | */ 103 | function memory_usage() 104 | { 105 | return '{memory_usage}'; 106 | } 107 | 108 | } 109 | 110 | // END CI_Benchmark class 111 | 112 | /* End of file Benchmark.php */ 113 | /* Location: ./system/libraries/Benchmark.php */ -------------------------------------------------------------------------------- /system/libraries/Language.php: -------------------------------------------------------------------------------- 1 | is_loaded, TRUE)) 57 | { 58 | return; 59 | } 60 | 61 | if ($idiom == '') 62 | { 63 | $CI =& get_instance(); 64 | $deft_lang = $CI->config->item('language'); 65 | $idiom = ($deft_lang == '') ? 'english' : $deft_lang; 66 | } 67 | 68 | // Determine where the language file is and load it 69 | if (file_exists(APPPATH.'language/'.$idiom.'/'.$langfile)) 70 | { 71 | include(APPPATH.'language/'.$idiom.'/'.$langfile); 72 | } 73 | else 74 | { 75 | if (file_exists(BASEPATH.'language/'.$idiom.'/'.$langfile)) 76 | { 77 | include(BASEPATH.'language/'.$idiom.'/'.$langfile); 78 | } 79 | else 80 | { 81 | show_error('Unable to load the requested language file: language/'.$idiom.'/'.$langfile); 82 | } 83 | } 84 | 85 | if ( ! isset($lang)) 86 | { 87 | log_message('error', 'Language file contains no data: language/'.$idiom.'/'.$langfile); 88 | return; 89 | } 90 | 91 | if ($return == TRUE) 92 | { 93 | return $lang; 94 | } 95 | 96 | $this->is_loaded[] = $langfile; 97 | $this->language = array_merge($this->language, $lang); 98 | unset($lang); 99 | 100 | log_message('debug', 'Language file loaded: language/'.$idiom.'/'.$langfile); 101 | return TRUE; 102 | } 103 | 104 | // -------------------------------------------------------------------- 105 | 106 | /** 107 | * Fetch a single line of text from the language array 108 | * 109 | * @access public 110 | * @param string $line the language line 111 | * @return string 112 | */ 113 | function line($line = '') 114 | { 115 | $line = ($line == '' OR ! isset($this->language[$line])) ? FALSE : $this->language[$line]; 116 | return $line; 117 | } 118 | 119 | } 120 | // END Language Class 121 | 122 | /* End of file Language.php */ 123 | /* Location: ./system/libraries/Language.php */ --------------------------------------------------------------------------------