├── .editorconfig ├── .gitignore ├── .htaccess ├── application ├── .htaccess ├── cache │ └── index.html ├── config │ ├── autoload.php │ ├── config.php │ ├── constants.php │ ├── database.php │ ├── doctypes.php │ ├── foreign_chars.php │ ├── hooks.php │ ├── index.html │ ├── memcached.php │ ├── migration.php │ ├── mimes.php │ ├── profiler.php │ ├── routes.php │ ├── smileys.php │ └── user_agents.php ├── controllers │ ├── Admin.php │ ├── Complaint.php │ ├── Login.php │ ├── Site.php │ ├── Upload.php │ ├── Validate.php │ ├── Worker.php │ ├── index.html │ ├── reports.php │ └── validation.php ├── core │ └── index.html ├── helpers │ └── index.html ├── hooks │ └── index.html ├── index.html ├── language │ ├── english │ │ └── index.html │ └── index.html ├── libraries │ └── index.html ├── logs │ └── index.html ├── models │ ├── MailModel.php │ ├── complaintmodel.php │ ├── index.html │ ├── loginModel.php │ ├── user.php │ └── workermodel.php ├── third_party │ └── index.html └── views │ ├── admin │ ├── add-worker.php │ ├── addcategory.php │ ├── adminhome.php │ ├── category.php │ ├── login.php │ ├── print.php │ ├── reports.php │ ├── worker.php │ └── workerjs.php │ ├── errors │ ├── cli │ │ ├── error_404.php │ │ ├── error_db.php │ │ ├── error_exception.php │ │ ├── error_general.php │ │ ├── error_php.php │ │ └── index.html │ ├── html │ │ ├── error_404.php │ │ ├── error_db.php │ │ ├── error_exception.php │ │ ├── error_general.php │ │ ├── error_php.php │ │ └── index.html │ └── index.html │ ├── public │ ├── complaintregister.php │ ├── complaints.php │ ├── complaintsuccess.php │ ├── feedback.php │ ├── footer.php │ ├── header.php │ ├── home.php │ ├── login.php │ ├── register.php │ ├── trackcomplaint.php │ ├── userprofile.php │ └── validations.php │ └── worker │ └── home.php ├── assets ├── css │ ├── bootstrap-select.min.css │ ├── bootstrap-theme.css │ ├── bootstrap-theme.css.map │ ├── bootstrap-theme.min.css │ ├── bootstrap-theme.min.css.map │ ├── bootstrap.css │ ├── bootstrap.css.map │ ├── bootstrap.min.css │ ├── bootstrap.min.css.map │ ├── css-style.css │ ├── datatables.min.css │ └── emoji.css ├── extra │ └── chart.html ├── fonts │ ├── glyphicons-halflings-regular.eot │ ├── glyphicons-halflings-regular.svg │ ├── glyphicons-halflings-regular.ttf │ ├── glyphicons-halflings-regular.woff │ └── glyphicons-halflings-regular.woff2 ├── images │ ├── 171px-Gujarat_Vidyapith_(emblem).png │ ├── background.jpg │ ├── carpenter.png │ ├── civil.png │ ├── drainage-repairs.jpg │ ├── drainage.png │ ├── dranage.png │ ├── electrician.png │ ├── favicon.ico │ ├── happy_ampvnc.svg │ ├── header-bg - Copy.jpg │ ├── header-bg.jpg │ ├── images.png │ ├── neutral_t3q8hz.svg │ ├── plumb.jpg │ ├── plumbing.jpg │ ├── plumbing.png │ ├── sad_bj1tuj.svg │ └── uploads │ │ ├── profile.png │ │ ├── profile101.jpg │ │ ├── profile1011.jpg │ │ ├── profile1012.jpg │ │ ├── profile102.jpg │ │ ├── profile103.jpg │ │ ├── profile104.jpg │ │ ├── profile105.jpg │ │ ├── profile1051.jpg │ │ ├── profile1052.jpg │ │ ├── profile1053.jpg │ │ ├── profilefdgfdg.jpg │ │ ├── profilefdsd.jpg │ │ ├── profilegfdgfd.jpg │ │ └── profilegfdgfd1.jpg └── js │ ├── bootstrap-select.min.js │ ├── bootstrap.js │ ├── bootstrap.min.js │ ├── chart.js │ ├── datatables.min.js │ ├── jjspdf.min.js │ ├── jquery-2.2.0.min.js │ ├── jspdf.debug.js │ ├── jspdf.min.js │ ├── jspdf.plugin.autotable.js │ ├── npm.js │ └── validation.js ├── composer.json ├── contributing.md ├── database └── complaint.sql ├── index.php ├── license.txt ├── readme.rst └── system ├── .htaccess ├── core ├── Benchmark.php ├── CodeIgniter.php ├── Common.php ├── Config.php ├── Controller.php ├── Exceptions.php ├── Hooks.php ├── Input.php ├── Lang.php ├── Loader.php ├── Log.php ├── Model.php ├── Output.php ├── Router.php ├── Security.php ├── URI.php ├── Utf8.php ├── compat │ ├── hash.php │ ├── index.html │ ├── mbstring.php │ ├── password.php │ └── standard.php └── index.html ├── database ├── DB.php ├── DB_cache.php ├── DB_driver.php ├── DB_forge.php ├── DB_query_builder.php ├── DB_result.php ├── DB_utility.php ├── drivers │ ├── cubrid │ │ ├── cubrid_driver.php │ │ ├── cubrid_forge.php │ │ ├── cubrid_result.php │ │ ├── cubrid_utility.php │ │ └── index.html │ ├── ibase │ │ ├── ibase_driver.php │ │ ├── ibase_forge.php │ │ ├── ibase_result.php │ │ ├── ibase_utility.php │ │ └── index.html │ ├── index.html │ ├── mssql │ │ ├── index.html │ │ ├── mssql_driver.php │ │ ├── mssql_forge.php │ │ ├── mssql_result.php │ │ └── mssql_utility.php │ ├── mysql │ │ ├── index.html │ │ ├── mysql_driver.php │ │ ├── mysql_forge.php │ │ ├── mysql_result.php │ │ └── mysql_utility.php │ ├── mysqli │ │ ├── index.html │ │ ├── mysqli_driver.php │ │ ├── mysqli_forge.php │ │ ├── mysqli_result.php │ │ └── mysqli_utility.php │ ├── oci8 │ │ ├── index.html │ │ ├── oci8_driver.php │ │ ├── oci8_forge.php │ │ ├── oci8_result.php │ │ └── oci8_utility.php │ ├── odbc │ │ ├── index.html │ │ ├── odbc_driver.php │ │ ├── odbc_forge.php │ │ ├── odbc_result.php │ │ └── odbc_utility.php │ ├── pdo │ │ ├── index.html │ │ ├── pdo_driver.php │ │ ├── pdo_forge.php │ │ ├── pdo_result.php │ │ ├── pdo_utility.php │ │ └── subdrivers │ │ │ ├── index.html │ │ │ ├── pdo_4d_driver.php │ │ │ ├── pdo_4d_forge.php │ │ │ ├── pdo_cubrid_driver.php │ │ │ ├── pdo_cubrid_forge.php │ │ │ ├── pdo_dblib_driver.php │ │ │ ├── pdo_dblib_forge.php │ │ │ ├── pdo_firebird_driver.php │ │ │ ├── pdo_firebird_forge.php │ │ │ ├── pdo_ibm_driver.php │ │ │ ├── pdo_ibm_forge.php │ │ │ ├── pdo_informix_driver.php │ │ │ ├── pdo_informix_forge.php │ │ │ ├── pdo_mysql_driver.php │ │ │ ├── pdo_mysql_forge.php │ │ │ ├── pdo_oci_driver.php │ │ │ ├── pdo_oci_forge.php │ │ │ ├── pdo_odbc_driver.php │ │ │ ├── pdo_odbc_forge.php │ │ │ ├── pdo_pgsql_driver.php │ │ │ ├── pdo_pgsql_forge.php │ │ │ ├── pdo_sqlite_driver.php │ │ │ ├── pdo_sqlite_forge.php │ │ │ ├── pdo_sqlsrv_driver.php │ │ │ └── pdo_sqlsrv_forge.php │ ├── postgre │ │ ├── index.html │ │ ├── postgre_driver.php │ │ ├── postgre_forge.php │ │ ├── postgre_result.php │ │ └── postgre_utility.php │ ├── sqlite │ │ ├── index.html │ │ ├── sqlite_driver.php │ │ ├── sqlite_forge.php │ │ ├── sqlite_result.php │ │ └── sqlite_utility.php │ ├── sqlite3 │ │ ├── index.html │ │ ├── sqlite3_driver.php │ │ ├── sqlite3_forge.php │ │ ├── sqlite3_result.php │ │ └── sqlite3_utility.php │ └── sqlsrv │ │ ├── index.html │ │ ├── sqlsrv_driver.php │ │ ├── sqlsrv_forge.php │ │ ├── sqlsrv_result.php │ │ └── sqlsrv_utility.php └── index.html ├── fonts ├── index.html └── texb.ttf ├── helpers ├── array_helper.php ├── captcha_helper.php ├── cookie_helper.php ├── date_helper.php ├── directory_helper.php ├── download_helper.php ├── email_helper.php ├── file_helper.php ├── form_helper.php ├── html_helper.php ├── index.html ├── inflector_helper.php ├── language_helper.php ├── number_helper.php ├── path_helper.php ├── security_helper.php ├── smiley_helper.php ├── string_helper.php ├── text_helper.php ├── typography_helper.php ├── url_helper.php └── xml_helper.php ├── index.html ├── language ├── english │ ├── calendar_lang.php │ ├── date_lang.php │ ├── db_lang.php │ ├── email_lang.php │ ├── form_validation_lang.php │ ├── ftp_lang.php │ ├── imglib_lang.php │ ├── index.html │ ├── migration_lang.php │ ├── number_lang.php │ ├── pagination_lang.php │ ├── profiler_lang.php │ ├── unit_test_lang.php │ └── upload_lang.php └── index.html └── libraries ├── Cache ├── Cache.php ├── drivers │ ├── Cache_apc.php │ ├── Cache_dummy.php │ ├── Cache_file.php │ ├── Cache_memcached.php │ ├── Cache_redis.php │ ├── Cache_wincache.php │ └── index.html └── index.html ├── Calendar.php ├── Cart.php ├── Driver.php ├── Email.php ├── Encrypt.php ├── Encryption.php ├── Form_validation.php ├── Ftp.php ├── Image_lib.php ├── Javascript.php ├── Javascript ├── Jquery.php └── index.html ├── Migration.php ├── Pagination.php ├── Parser.php ├── Profiler.php ├── Session ├── Session.php ├── SessionHandlerInterface.php ├── Session_driver.php ├── drivers │ ├── Session_database_driver.php │ ├── Session_files_driver.php │ ├── Session_memcached_driver.php │ ├── Session_redis_driver.php │ └── index.html └── index.html ├── Table.php ├── Trackback.php ├── Typography.php ├── Unit_test.php ├── Upload.php ├── User_agent.php ├── Xmlrpc.php ├── Xmlrpcs.php ├── Zip.php └── index.html /.editorconfig: -------------------------------------------------------------------------------- 1 | # top-most EditorConfig file 2 | root = true 3 | 4 | # Unix-style newlines with a newline ending every file 5 | [*] 6 | end_of_line = lf 7 | insert_final_newline = true 8 | 9 | # Matches multiple files with brace expansion notation 10 | # Set default charset 11 | [*] 12 | charset = utf-8 13 | 14 | # Tab indentation (no size specified) 15 | indent_style = tab 16 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | */config/development 2 | */logs/log-*.php 3 | !*/logs/index.html 4 | */cache/* 5 | !*/cache/index.html 6 | !*/cache/.htaccess 7 | 8 | user_guide_src/build/* 9 | user_guide_src/cilexer/build/* 10 | user_guide_src/cilexer/dist/* 11 | user_guide_src/cilexer/pycilexer.egg-info/* 12 | 13 | #codeigniter 3 14 | application/logs/* 15 | !application/logs/index.html 16 | !application/logs/.htaccess 17 | /vendor/ 18 | -------------------------------------------------------------------------------- /.htaccess: -------------------------------------------------------------------------------- 1 | RewriteEngine On 2 | RewriteBase /complaint 3 | RewriteCond %{REQUEST_FILENAME} !-d 4 | RewriteCond %{REQUEST_FILENAME} !-f 5 | RewriteRule ^(.*)$ index.php/$1 [PT,L] 6 | -------------------------------------------------------------------------------- /application/.htaccess: -------------------------------------------------------------------------------- 1 | 2 | Require all denied 3 | 4 | 5 | Deny from all 6 | -------------------------------------------------------------------------------- /application/cache/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /application/config/doctypes.php: -------------------------------------------------------------------------------- 1 | '', 6 | 'xhtml1-strict' => '', 7 | 'xhtml1-trans' => '', 8 | 'xhtml1-frame' => '', 9 | 'xhtml-basic11' => '', 10 | 'html5' => '', 11 | 'html4-strict' => '', 12 | 'html4-trans' => '', 13 | 'html4-frame' => '', 14 | 'mathml1' => '', 15 | 'mathml2' => '', 16 | 'svg10' => '', 17 | 'svg11' => '', 18 | 'svg11-basic' => '', 19 | 'svg11-tiny' => '', 20 | 'xhtml-math-svg-xh' => '', 21 | 'xhtml-math-svg-sh' => '', 22 | 'xhtml-rdfa-1' => '', 23 | 'xhtml-rdfa-2' => '' 24 | ); 25 | -------------------------------------------------------------------------------- /application/config/foreign_chars.php: -------------------------------------------------------------------------------- 1 | 'ae', 14 | '/ö|œ/' => 'oe', 15 | '/ü/' => 'ue', 16 | '/Ä/' => 'Ae', 17 | '/Ü/' => 'Ue', 18 | '/Ö/' => 'Oe', 19 | '/À|Á|Â|Ã|Ä|Å|Ǻ|Ā|Ă|Ą|Ǎ|Α|Ά|Ả|Ạ|Ầ|Ẫ|Ẩ|Ậ|Ằ|Ắ|Ẵ|Ẳ|Ặ|А/' => 'A', 20 | '/à|á|â|ã|å|ǻ|ā|ă|ą|ǎ|ª|α|ά|ả|ạ|ầ|ấ|ẫ|ẩ|ậ|ằ|ắ|ẵ|ẳ|ặ|а/' => 'a', 21 | '/Б/' => 'B', 22 | '/б/' => 'b', 23 | '/Ç|Ć|Ĉ|Ċ|Č/' => 'C', 24 | '/ç|ć|ĉ|ċ|č/' => 'c', 25 | '/Д/' => 'D', 26 | '/д/' => 'd', 27 | '/Ð|Ď|Đ|Δ/' => 'Dj', 28 | '/ð|ď|đ|δ/' => 'dj', 29 | '/È|É|Ê|Ë|Ē|Ĕ|Ė|Ę|Ě|Ε|Έ|Ẽ|Ẻ|Ẹ|Ề|Ế|Ễ|Ể|Ệ|Е|Э/' => 'E', 30 | '/è|é|ê|ë|ē|ĕ|ė|ę|ě|έ|ε|ẽ|ẻ|ẹ|ề|ế|ễ|ể|ệ|е|э/' => 'e', 31 | '/Ф/' => 'F', 32 | '/ф/' => 'f', 33 | '/Ĝ|Ğ|Ġ|Ģ|Γ|Г|Ґ/' => 'G', 34 | '/ĝ|ğ|ġ|ģ|γ|г|ґ/' => 'g', 35 | '/Ĥ|Ħ/' => 'H', 36 | '/ĥ|ħ/' => 'h', 37 | '/Ì|Í|Î|Ï|Ĩ|Ī|Ĭ|Ǐ|Į|İ|Η|Ή|Ί|Ι|Ϊ|Ỉ|Ị|И|Ы/' => 'I', 38 | '/ì|í|î|ï|ĩ|ī|ĭ|ǐ|į|ı|η|ή|ί|ι|ϊ|ỉ|ị|и|ы|ї/' => 'i', 39 | '/Ĵ/' => 'J', 40 | '/ĵ/' => 'j', 41 | '/Ķ|Κ|К/' => 'K', 42 | '/ķ|κ|к/' => 'k', 43 | '/Ĺ|Ļ|Ľ|Ŀ|Ł|Λ|Л/' => 'L', 44 | '/ĺ|ļ|ľ|ŀ|ł|λ|л/' => 'l', 45 | '/М/' => 'M', 46 | '/м/' => 'm', 47 | '/Ñ|Ń|Ņ|Ň|Ν|Н/' => 'N', 48 | '/ñ|ń|ņ|ň|ʼn|ν|н/' => 'n', 49 | '/Ò|Ó|Ô|Õ|Ō|Ŏ|Ǒ|Ő|Ơ|Ø|Ǿ|Ο|Ό|Ω|Ώ|Ỏ|Ọ|Ồ|Ố|Ỗ|Ổ|Ộ|Ờ|Ớ|Ỡ|Ở|Ợ|О/' => 'O', 50 | '/ò|ó|ô|õ|ō|ŏ|ǒ|ő|ơ|ø|ǿ|º|ο|ό|ω|ώ|ỏ|ọ|ồ|ố|ỗ|ổ|ộ|ờ|ớ|ỡ|ở|ợ|о/' => 'o', 51 | '/П/' => 'P', 52 | '/п/' => 'p', 53 | '/Ŕ|Ŗ|Ř|Ρ|Р/' => 'R', 54 | '/ŕ|ŗ|ř|ρ|р/' => 'r', 55 | '/Ś|Ŝ|Ş|Ș|Š|Σ|С/' => 'S', 56 | '/ś|ŝ|ş|ș|š|ſ|σ|ς|с/' => 's', 57 | '/Ț|Ţ|Ť|Ŧ|τ|Т/' => 'T', 58 | '/ț|ţ|ť|ŧ|т/' => 't', 59 | '/Þ|þ/' => 'th', 60 | '/Ù|Ú|Û|Ũ|Ū|Ŭ|Ů|Ű|Ų|Ư|Ǔ|Ǖ|Ǘ|Ǚ|Ǜ|Ũ|Ủ|Ụ|Ừ|Ứ|Ữ|Ử|Ự|У/' => 'U', 61 | '/ù|ú|û|ũ|ū|ŭ|ů|ű|ų|ư|ǔ|ǖ|ǘ|ǚ|ǜ|υ|ύ|ϋ|ủ|ụ|ừ|ứ|ữ|ử|ự|у/' => 'u', 62 | '/Ý|Ÿ|Ŷ|Υ|Ύ|Ϋ|Ỳ|Ỹ|Ỷ|Ỵ|Й/' => 'Y', 63 | '/ý|ÿ|ŷ|ỳ|ỹ|ỷ|ỵ|й/' => 'y', 64 | '/В/' => 'V', 65 | '/в/' => 'v', 66 | '/Ŵ/' => 'W', 67 | '/ŵ/' => 'w', 68 | '/Ź|Ż|Ž|Ζ|З/' => 'Z', 69 | '/ź|ż|ž|ζ|з/' => 'z', 70 | '/Æ|Ǽ/' => 'AE', 71 | '/ß/' => 'ss', 72 | '/IJ/' => 'IJ', 73 | '/ij/' => 'ij', 74 | '/Œ/' => 'OE', 75 | '/ƒ/' => 'f', 76 | '/ξ/' => 'ks', 77 | '/π/' => 'p', 78 | '/β/' => 'v', 79 | '/μ/' => 'm', 80 | '/ψ/' => 'ps', 81 | '/Ё/' => 'Yo', 82 | '/ё/' => 'yo', 83 | '/Є/' => 'Ye', 84 | '/є/' => 'ye', 85 | '/Ї/' => 'Yi', 86 | '/Ж/' => 'Zh', 87 | '/ж/' => 'zh', 88 | '/Х/' => 'Kh', 89 | '/х/' => 'kh', 90 | '/Ц/' => 'Ts', 91 | '/ц/' => 'ts', 92 | '/Ч/' => 'Ch', 93 | '/ч/' => 'ch', 94 | '/Ш/' => 'Sh', 95 | '/ш/' => 'sh', 96 | '/Щ/' => 'Shch', 97 | '/щ/' => 'shch', 98 | '/Ъ|ъ|Ь|ь/' => '', 99 | '/Ю/' => 'Yu', 100 | '/ю/' => 'yu', 101 | '/Я/' => 'Ya', 102 | '/я/' => 'ya' 103 | ); 104 | -------------------------------------------------------------------------------- /application/config/hooks.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /application/config/memcached.php: -------------------------------------------------------------------------------- 1 | array( 15 | 'hostname' => '127.0.0.1', 16 | 'port' => '11211', 17 | 'weight' => '1', 18 | ), 19 | ); 20 | -------------------------------------------------------------------------------- /application/config/migration.php: -------------------------------------------------------------------------------- 1 | migration->current() this is the version that schema will 69 | | be upgraded / downgraded to. 70 | | 71 | */ 72 | $config['migration_version'] = 0; 73 | 74 | /* 75 | |-------------------------------------------------------------------------- 76 | | Migrations Path 77 | |-------------------------------------------------------------------------- 78 | | 79 | | Path to your migrations folder. 80 | | Typically, it will be within your application path. 81 | | Also, writing permission is required within the migrations path. 82 | | 83 | */ 84 | $config['migration_path'] = APPPATH.'migrations/'; 85 | -------------------------------------------------------------------------------- /application/config/profiler.php: -------------------------------------------------------------------------------- 1 | my_controller/index 50 | | my-controller/my-method -> my_controller/my_method 51 | */ 52 | $route['default_controller'] = 'Site/view'; 53 | $route['complaintregister/(:any)'] = 'Site/view/complaintregister'; 54 | $route['admin']='admin/view'; 55 | $route['admin/(:any)']='admin/view/$1'; 56 | $route['worker']='worker/view'; 57 | $route['worker/(:any)']='worker/view/$1'; 58 | $route['(:any)']='Site/view/$1'; 59 | $route['404_override'] = ''; 60 | $route['translate_uri_dashes'] = FALSE; 61 | -------------------------------------------------------------------------------- /application/config/smileys.php: -------------------------------------------------------------------------------- 1 | array('grin.gif', '19', '19', 'grin'), 21 | ':lol:' => array('lol.gif', '19', '19', 'LOL'), 22 | ':cheese:' => array('cheese.gif', '19', '19', 'cheese'), 23 | ':)' => array('smile.gif', '19', '19', 'smile'), 24 | ';-)' => array('wink.gif', '19', '19', 'wink'), 25 | ';)' => array('wink.gif', '19', '19', 'wink'), 26 | ':smirk:' => array('smirk.gif', '19', '19', 'smirk'), 27 | ':roll:' => array('rolleyes.gif', '19', '19', 'rolleyes'), 28 | ':-S' => array('confused.gif', '19', '19', 'confused'), 29 | ':wow:' => array('surprise.gif', '19', '19', 'surprised'), 30 | ':bug:' => array('bigsurprise.gif', '19', '19', 'big surprise'), 31 | ':-P' => array('tongue_laugh.gif', '19', '19', 'tongue laugh'), 32 | '%-P' => array('tongue_rolleye.gif', '19', '19', 'tongue rolleye'), 33 | ';-P' => array('tongue_wink.gif', '19', '19', 'tongue wink'), 34 | ':P' => array('raspberry.gif', '19', '19', 'raspberry'), 35 | ':blank:' => array('blank.gif', '19', '19', 'blank stare'), 36 | ':long:' => array('longface.gif', '19', '19', 'long face'), 37 | ':ohh:' => array('ohh.gif', '19', '19', 'ohh'), 38 | ':grrr:' => array('grrr.gif', '19', '19', 'grrr'), 39 | ':gulp:' => array('gulp.gif', '19', '19', 'gulp'), 40 | '8-/' => array('ohoh.gif', '19', '19', 'oh oh'), 41 | ':down:' => array('downer.gif', '19', '19', 'downer'), 42 | ':red:' => array('embarrassed.gif', '19', '19', 'red face'), 43 | ':sick:' => array('sick.gif', '19', '19', 'sick'), 44 | ':shut:' => array('shuteye.gif', '19', '19', 'shut eye'), 45 | ':-/' => array('hmm.gif', '19', '19', 'hmmm'), 46 | '>:(' => array('mad.gif', '19', '19', 'mad'), 47 | ':mad:' => array('mad.gif', '19', '19', 'mad'), 48 | '>:-(' => array('angry.gif', '19', '19', 'angry'), 49 | ':angry:' => array('angry.gif', '19', '19', 'angry'), 50 | ':zip:' => array('zip.gif', '19', '19', 'zipper'), 51 | ':kiss:' => array('kiss.gif', '19', '19', 'kiss'), 52 | ':ahhh:' => array('shock.gif', '19', '19', 'shock'), 53 | ':coolsmile:' => array('shade_smile.gif', '19', '19', 'cool smile'), 54 | ':coolsmirk:' => array('shade_smirk.gif', '19', '19', 'cool smirk'), 55 | ':coolgrin:' => array('shade_grin.gif', '19', '19', 'cool grin'), 56 | ':coolhmm:' => array('shade_hmm.gif', '19', '19', 'cool hmm'), 57 | ':coolmad:' => array('shade_mad.gif', '19', '19', 'cool mad'), 58 | ':coolcheese:' => array('shade_cheese.gif', '19', '19', 'cool cheese'), 59 | ':vampire:' => array('vampire.gif', '19', '19', 'vampire'), 60 | ':snake:' => array('snake.gif', '19', '19', 'snake'), 61 | ':exclaim:' => array('exclaim.gif', '19', '19', 'exclaim'), 62 | ':question:' => array('question.gif', '19', '19', 'question') 63 | 64 | ); 65 | -------------------------------------------------------------------------------- /application/controllers/Admin.php: -------------------------------------------------------------------------------- 1 | load->model('ComplaintModel'); 10 | $this->load->model('LoginModel'); 11 | } 12 | public function view($page = 'adminhome') 13 | { 14 | if(!file_exists(APPPATH.'views/admin/'.$page.'.php')) 15 | { 16 | show_404(); 17 | } 18 | 19 | //check login or not 20 | if($this->session->userdata('admin_id')) 21 | $data['islogin'] = TRUE; 22 | else 23 | $data['islogin'] = FALSE; 24 | 25 | if($page == 'login') 26 | { 27 | 28 | if($this->session->userdata('check_login') ) 29 | $data['logincheck'] = TRUE; 30 | else 31 | $data['logincheck'] = FALSE; 32 | } 33 | else if($page == 'adminhome' || $page == 'worker' || $page == 'category') 34 | { 35 | $data['complain_caategory'] = $this->ComplaintModel->get_complaint_category(); 36 | } 37 | else if($page == 'print') 38 | { 39 | $data['printc'] = $this->session->userdata('printc'); 40 | $data['printcomplaint'] = $this->ComplaintModel->get_complaint_details_by_cid($data['printc']['c_id']); 41 | } 42 | else if($page == 'reports') 43 | { 44 | $data['categories'] = $this->ComplaintModel->get_complaint_category(); 45 | } 46 | $data['title'] = ucfirst($page); 47 | $data['viewuser'] = 'admin'; 48 | 49 | $this->load->view('public/header',$data); 50 | $this->load->view('admin/'.$page,$data); 51 | } 52 | public function get_complaint_for_home() 53 | { 54 | $old = $this->ComplaintModel->get_old_complaint_list_cat(4,'all'); 55 | $new = $this->ComplaintModel->get_new_complaint_list_cat(4,'all'); 56 | return array_merge($old,$new); 57 | } 58 | public function get_complaint_list() 59 | { 60 | $cate = $this->input->post('id'); 61 | $old = $this->ComplaintModel->get_old_complaint_list_cat(4,$cate); 62 | $new = $this->ComplaintModel->get_new_complaint_list_cat(4,$cate); 63 | echo json_encode(array_merge($old,$new)); 64 | } 65 | } 66 | ?> 67 | -------------------------------------------------------------------------------- /application/controllers/Complaint.php: -------------------------------------------------------------------------------- 1 | load->model('ComplaintModel'); 9 | $this->load->model('User'); 10 | date_default_timezone_set('Asia/kolkata'); 11 | } 12 | public function get_category() 13 | { 14 | $json_obj = $this->input->post('obj'); 15 | $obj = json_decode($json_obj); 16 | if($obj->location == 'residance') 17 | echo json_encode($this->ComplaintModel->get_category_description($obj->id,2)); 18 | else 19 | echo json_encode($this->ComplaintModel->get_category_description($obj->id,1)); 20 | } 21 | public function get_user_address() 22 | { 23 | $json_obj = $this->input->post('obj'); 24 | $obj = json_decode($json_obj); 25 | if( $obj->location == 'hostel' || $obj->location == 'residance') 26 | { 27 | $user = $this->User->get_user($obj->uid); 28 | echo $user[0]->address; 29 | } 30 | else if( $obj->location == 'department') 31 | { 32 | $office = $this->User->get_ofice_location($obj->uid); 33 | echo $office[0]->office_location; 34 | } 35 | } 36 | public function register() 37 | { 38 | $cate_id = $this->input->post('complaintype'); 39 | $uid = $this->input->post('empnumber'); 40 | $description = $this->input->post('cdescription'); 41 | $date = date('Y-m-d'); 42 | $location = $this->input->post('address'); 43 | $cinfo = array('cate_id' => $cate_id, 'u_id' => $uid, 'c_description' => $description, 'c_date' => $date,'c_status' => 1); 44 | $this->ComplaintModel->register_complaint($cinfo,$location); 45 | redirect(base_url('complaintsuccess')); 46 | } 47 | public function track() 48 | { 49 | $cid = $this->input->post('complainid'); 50 | $details = $this->ComplaintModel->track_complaint($cid); 51 | if(sizeof($details) != 0) 52 | { 53 | $this->session->set_userdata('cdetails',$details); 54 | redirect(base_url('trackcomplaint')); 55 | } 56 | else 57 | { 58 | $this->session->set_userdata('cdetails',"error"); 59 | redirect(base_url('login')); 60 | } 61 | } 62 | public function get_description() 63 | { 64 | $id = $this->input->post('id'); 65 | $result = $this->ComplaintModel->get_common_complaints($id); 66 | echo json_encode($result); 67 | } 68 | public function change_status() 69 | { 70 | $obj_json = $this->input->post('obj'); 71 | $obj = json_decode($obj_json); 72 | $this->ComplaintModel->update_complaint_status($obj->status,$obj->cid); 73 | echo $obj->status; 74 | } 75 | public function submit_feedback() 76 | { 77 | $cid = $this->input->post('cid'); 78 | $rating = $this->input->post('work'); 79 | $submit_response = $this->ComplaintModel->submit_feedback($rating,$cid); 80 | } 81 | public function add_complaint_category() 82 | { 83 | $c_category = $this->input->post('ccategory'); 84 | $data=array('category'=>$c_category); 85 | //echo $data[0]; 86 | $this->ComplaintModel->add_new_category($data); 87 | redirect(base_url('admin/category')); 88 | } 89 | public function add_common_complaint() 90 | { 91 | $category = $this->input->post('category'); 92 | $cdescription = $this->input->post('cdescription'); 93 | $forwhom = $this->input->post('forwhom'); 94 | $compinfo = array('cate_id' => $category, 'c_level' => $forwhom, 'description' => $cdescription); 95 | $this->ComplaintModel->add_new_common_complaint($compinfo); 96 | redirect(base_url('admin/category')); 97 | } 98 | public function delete_common_complaint() 99 | { 100 | $co_id =$this->input->post('cid'); 101 | echo $this->ComplaintModel->delete_common_complaint($co_id); 102 | } 103 | public function update_common() 104 | { 105 | $json_obj = $this->input->post('obj'); 106 | $obj = json_decode($json_obj); 107 | echo $this->ComplaintModel->update_common($obj); 108 | } 109 | } 110 | ?> 111 | -------------------------------------------------------------------------------- /application/controllers/Login.php: -------------------------------------------------------------------------------- 1 | load->model('ComplaintModel'); 10 | $this->load->model('LoginModel'); 11 | } 12 | public function validate_login() 13 | { 14 | $utype=$this->input->post('usertype'); 15 | if($utype=='admin') 16 | { 17 | $logindata = array('email' => $this->input->post('email'), 'password' => $this->input->post('password')); 18 | 19 | $login_id = $this->LoginModel->admin_login($logindata); 20 | 21 | if($login_id) 22 | { 23 | $this->session->set_userdata('check_login',FALSE); 24 | $this->session->set_userdata('admin_id',$login_id); 25 | $this->session->set_userdata('usertype',$utype); 26 | redirect(base_url('admin/adminhome')); 27 | } 28 | else 29 | { 30 | $this->session->set_userdata('check_login',TRUE); 31 | redirect(base_url('login')); 32 | } 33 | } 34 | else if($utype=='worker') 35 | { 36 | $logindata = array('email' => $this->input->post('email'), 'password' => $this->input->post('password')); 37 | 38 | $login_id = $this->LoginModel->worker_login($logindata); 39 | 40 | if($login_id) 41 | { 42 | $this->session->set_userdata('check_login',FALSE); 43 | $this->session->set_userdata('w_id',$login_id); 44 | $this->session->set_userdata('usertype',$utype); 45 | redirect(base_url('worker/home')); 46 | } 47 | else 48 | { 49 | $this->session->set_userdata('check_login',TRUE); 50 | redirect(base_url('login')); 51 | } 52 | 53 | } 54 | else 55 | { 56 | $loginenrol = array('emp_no' => $this->input->post('email'), 'password' => $this->input->post('password'),'u_type' => $this->input->post('usertype')); 57 | $login_id = $this->LoginModel->user_login($loginenrol); 58 | if($login_id) 59 | { 60 | $this->session->set_userdata('check_login',FALSE); 61 | $this->session->set_userdata('user_id',$login_id); 62 | $this->session->set_userdata('usertype',$utype); 63 | $pending_feedback = $this->ComplaintModel->get_pending_feedback($this->session->userdata('user_id')); 64 | if(sizeof($pending_feedback) > 0) 65 | { 66 | $this->session->set_userdata('pending_feedback',$pending_feedback); 67 | redirect(base_url('feedback')); 68 | } 69 | else 70 | redirect(base_url('home')); 71 | } 72 | else 73 | { 74 | $this->session->set_userdata('check_login',TRUE); 75 | redirect(base_url('login')); 76 | } 77 | } 78 | } 79 | public function logout() 80 | { 81 | if($this->session->userdata('user_id') ) 82 | { 83 | $this->session->unset_userdata('user_id'); 84 | } 85 | elseif($this->session->userdata('w_id') ) 86 | { 87 | $this->session->unset_userdata('w_id'); 88 | } 89 | else 90 | { 91 | $this->session->unset_userdata('admin_id'); 92 | } 93 | redirect(base_url('login')); 94 | } 95 | public function get_complaint_list() 96 | { 97 | $cate = $this->input->post('id'); 98 | $old = $this->ComplaintModel->get_old_complaint_list_cat(5,$cate); 99 | $new = $this->ComplaintModel->get_new_complaint_list_cat(5,$cate); 100 | echo json_encode(array_merge($old,$new)); 101 | } 102 | public function generate_password() 103 | { 104 | $data['password'] = $this->input->post('npassword'); 105 | $data['email'] = $this->input->post('email'); 106 | $data['utype'] = $this->input->post('futype'); 107 | $this->LoginModel->generate_password($data); 108 | redirect(base_url("login")); 109 | } 110 | public function send_otp() 111 | { 112 | $jsonobj = $this->input->post('obj'); 113 | $data = json_decode($jsonobj,TRUE); 114 | $otp = $this->LoginModel->send_otp($data); 115 | $this->load->model('MailModel','mymail'); 116 | $this->mymail->send($otp['maildata']); 117 | echo $otp['otp']; 118 | } 119 | } 120 | ?> 121 | -------------------------------------------------------------------------------- /application/controllers/Upload.php: -------------------------------------------------------------------------------- 1 | load->helper(array('html','url')); 8 | } 9 | public function upload_image() 10 | { 11 | $config['upload_path'] = './assets/images/uploads'; 12 | $config['allowed_types'] = 'gif|jpg|jpeg|png'; 13 | $config['max_size'] = 100; 14 | $config['file_name'] = $this->input->post('filename'); 15 | $this->load->library('upload',$config); 16 | if(!$this->upload->do_upload('file')) 17 | { 18 | echo $this->upload->display_errors(); 19 | } 20 | else 21 | { 22 | echo "No Errror"; 23 | } 24 | } 25 | } 26 | ?> 27 | -------------------------------------------------------------------------------- /application/controllers/Validate.php: -------------------------------------------------------------------------------- 1 | load->library('form_validation'); 9 | } 10 | public function validate_fullname() 11 | { 12 | $fname_rules = array( 13 | array( 14 | 'field' => 'fullname', 15 | 'label' => 'Full Name', 16 | 'rules' => 'required|regex_match[/^[A-Za-z\\s]+$/]|min_length[6]|max_length[45]' 17 | ) 18 | ); 19 | $this->form_validation->set_message('regex_match','The Full Name field may only contain alphabetical characters.'); 20 | $this->form_validation->set_rules($fname_rules); 21 | if($this->form_validation->run()) 22 | { 23 | echo "Success"; 24 | } 25 | else { 26 | echo validation_errors(); 27 | } 28 | } 29 | 30 | public function validate_emp_number() 31 | { 32 | $emp_number = array( 33 | array( 34 | 'field' => 'empnumber', 35 | 'label' => 'Employee Number', 36 | 'rules' => 'required|alpha_numeric|min_length[6]|max_length[45]' 37 | ) 38 | ); 39 | $this->form_validation->set_rules($emp_number); 40 | if($this->form_validation->run()) 41 | { 42 | echo "Success"; 43 | } 44 | else { 45 | echo validation_errors(); 46 | } 47 | } 48 | 49 | public function validate_email() 50 | { 51 | $email = array( 52 | array( 53 | 'field' => 'email', 54 | 'label' => 'E-mail Address', 55 | 'rules' => 'required|valid_email' 56 | ) 57 | ); 58 | $this->form_validation->set_rules($email); 59 | if($this->form_validation->run()) 60 | { 61 | echo "Success"; 62 | } 63 | else { 64 | echo validation_errors(); 65 | } 66 | } 67 | public function validate_contact_no() 68 | { 69 | $contact = array( 70 | array( 71 | 'field' => 'contact', 72 | 'label' => 'Contact Number', 73 | 'rules' => 'required|numeric|min_length[10]|max_length[10]' 74 | ) 75 | ); 76 | $this->form_validation->set_rules($contact); 77 | if($this->form_validation->run()) 78 | { 79 | echo "Success"; 80 | } 81 | else { 82 | echo validation_errors(); 83 | } 84 | } 85 | 86 | public function validate_address() 87 | { 88 | $address = array( 89 | array( 90 | 'field' => 'address', 91 | 'label' => 'Address', 92 | 'rules' => 'required' 93 | ) 94 | ); 95 | $this->form_validation->set_rules($address); 96 | if($this->form_validation->run()) 97 | { 98 | echo "Success"; 99 | } 100 | else { 101 | echo validation_errors(); 102 | } 103 | } 104 | 105 | 106 | } 107 | ?> 108 | -------------------------------------------------------------------------------- /application/controllers/Worker.php: -------------------------------------------------------------------------------- 1 | load->model('ComplaintModel'); 9 | $this->load->model('WorkerModel'); 10 | } 11 | public function view($page = 'home') 12 | { 13 | if(!file_exists(APPPATH.'views/worker/'.$page.'.php')) 14 | { 15 | show_404(); 16 | } 17 | //check login or not 18 | if($this->session->userdata('w_id')) 19 | $data['islogin'] = TRUE; 20 | else 21 | $data['islogin'] = FALSE; 22 | 23 | if($data['islogin']) 24 | { 25 | //echo $this->session->userdata('w_id'); 26 | if($page =='home') 27 | { 28 | $data['clist'] = $this->ComplaintModel->get_complaints_for_worker($this->session->userdata('w_id')); 29 | } 30 | } 31 | 32 | $data['title'] = ucfirst($page); 33 | $data['viewuser'] = 'worker'; 34 | 35 | $this->load->view('public/header',$data); 36 | $this->load->view('worker/'.$page,$data); 37 | $this->load->view('public/footer',$data); 38 | } 39 | 40 | public function get_worker_list() 41 | { 42 | $cate = $this->input->post('cate'); 43 | $list = $this->ComplaintModel->get_worker_list($cate); 44 | echo json_encode($list); 45 | } 46 | public function get_workers() 47 | { 48 | $cate = $this->input->post('cate'); 49 | $list = $this->ComplaintModel->get_workers($cate); 50 | echo json_encode($list); 51 | } 52 | public function assign_worker() 53 | { 54 | $wid = $this->input->post('selectworker'); 55 | $remark = $this->input->post('remark'); 56 | $cid = $this->input->post('cid'); 57 | $this->ComplaintModel->assign_worker($wid,$cid,$remark); 58 | } 59 | public function change_status() 60 | { 61 | $id = $this->input->post('id'); 62 | echo $this->WorkerModel->change_status($id); 63 | } 64 | public function update_worker() 65 | { 66 | $obj = json_decode($this->input->post('obj'),true); 67 | echo $this->WorkerModel->update_worker($obj); 68 | } 69 | public function delete_worker() 70 | { 71 | $wid = $this->input->post('id'); 72 | echo $this->WorkerModel->delete_worker($wid); 73 | 74 | } 75 | 76 | public function add_new() 77 | { 78 | $data = array( 79 | 'w_name' => $this->input->post('fullname'), 80 | 'ph_no' => $this->input->post('contact'), 81 | 'email' => $this->input->post('email'), 82 | 'address' => $this->input->post('address'), 83 | 'skill' => $this->input->post('workerskill'), 84 | 'w_status' => $this->input->post('status'), 85 | 'password' => $this->input->post('password') 86 | ); 87 | if($this->WorkerModel->add_worker($data)) 88 | redirect(base_url('admin/worker')); 89 | } 90 | } 91 | ?> 92 | -------------------------------------------------------------------------------- /application/controllers/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /application/controllers/reports.php: -------------------------------------------------------------------------------- 1 | load->model('ComplaintModel','cm'); 9 | } 10 | public function get_complaint_report() 11 | { 12 | $data = json_decode($this->input->post('data')); 13 | echo json_encode($this->cm->get_complaint_report($data)); 14 | } 15 | 16 | public function get_worker_report() 17 | { 18 | $data = json_decode($this->input->post('data')); 19 | echo json_encode($this->cm->get_worker_report($data)); 20 | } 21 | } 22 | ?> 23 | -------------------------------------------------------------------------------- /application/core/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

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

Directory access is forbidden.

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

Directory access is forbidden.

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

Directory access is forbidden.

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

Directory access is forbidden.

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

Directory access is forbidden.

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

Directory access is forbidden.

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

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /application/models/MailModel.php: -------------------------------------------------------------------------------- 1 | mail_config(); 23 | $this->load->library('email',$config); 24 | $this->email->set_newline("\r\n"); 25 | $this->email->from($config['smtp_user']); 26 | $this->email->to($data['to']); 27 | $this->email->subject($data['subject']); 28 | $this->email->message($data['message']); 29 | return $this->email->send(); 30 | 31 | } 32 | } 33 | ?> 34 | -------------------------------------------------------------------------------- /application/models/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /application/models/loginModel.php: -------------------------------------------------------------------------------- 1 | db->get_where($table,$data); 9 | if($q->num_rows()) 10 | { 11 | return $q->row()->a_id; 12 | } 13 | else 14 | { 15 | return FALSE; 16 | } 17 | } 18 | public function user_login($dataenrol) 19 | { 20 | $table='user'; 21 | $this->db->select('u_id'); 22 | $this->db->from($table); 23 | $this->db->where("emp_no = '".$dataenrol['emp_no']."' AND password = '".$dataenrol['password']."' AND u_type = '".$dataenrol['u_type']."'"); 24 | $this->db->or_where("email = '".$dataenrol['emp_no']."' AND password = '".$dataenrol['password']."' AND u_type = '".$dataenrol['u_type']."'"); 25 | $q=$this->db->get(); 26 | if($q->num_rows() == 1) 27 | { 28 | return $q->row()->u_id; 29 | } 30 | else 31 | { 32 | return FALSE; 33 | } 34 | } 35 | public function worker_login($logindata) 36 | { 37 | $table='worker'; 38 | $this->db->select('w_id'); 39 | $this->db->from($table); 40 | $this->db->where($logindata); 41 | $q=$this->db->get(); 42 | if($q->num_rows() == 1) 43 | { 44 | return $q->row()->w_id; 45 | } 46 | else 47 | { 48 | return FALSE; 49 | } 50 | } 51 | public function generate_password($data) 52 | { 53 | switch($data['utype']) 54 | { 55 | case 'admin': 56 | $table = 'admin'; 57 | break; 58 | case 'worker': 59 | $table = 'worker'; 60 | break; 61 | default: 62 | $table = 'user'; 63 | } 64 | $this->db->set(array('password' => $data['password'])); 65 | $this->db->where('email',$data['email']); 66 | if($table == 'user') 67 | $this->db->or_where('emp_no',$data['email']); 68 | $this->db->update($table); 69 | } 70 | public function send_otp($data) 71 | { 72 | switch($data['utype']) 73 | { 74 | case 'admin': 75 | $table = 'admin'; 76 | break; 77 | case 'worker': 78 | $table = 'worker'; 79 | break; 80 | default: 81 | $table = 'user'; 82 | } 83 | $this->db->select('email'); 84 | $this->db->from($table); 85 | $this->db->where('email',$data['email']); 86 | $this->db->or_where('emp_no',$data['email']); 87 | $result = $this->db->get()->result(); 88 | 89 | $data['otp'] = rand(1000,9999); 90 | $maildata['subject'] = "Gujarat Vidyapith Estate Department Complaint, For Reset Password"; 91 | $maildata['message'] = $data['otp']." Is your One Time Password for Reset Your Password.
Don't share this with anyone."; 92 | $maildata['to'] = $result[0]->email; 93 | $data['maildata'] = $maildata; 94 | return $data; 95 | } 96 | } 97 | ?> 98 | -------------------------------------------------------------------------------- /application/models/user.php: -------------------------------------------------------------------------------- 1 | db->select(array('Dept_Name','deptid')); 12 | $this->db->from('deptmst'); 13 | $r=$this->db->get(); 14 | return $r->result(); 15 | } 16 | public function get_single_department($deptid) 17 | { 18 | $this->db->select(array('Dept_Name','deptid')); 19 | $this->db->from('deptmst'); 20 | $this->db->where('deptid',$deptid); 21 | $r=$this->db->get(); 22 | return $r->result(); 23 | } 24 | public function get_user($uid) 25 | { 26 | $this->db->select(array('u_id','full_name','address')); 27 | $this->db->from('user'); 28 | $this->db->where('u_id',$uid); 29 | $q = $this->db->get(); 30 | return $q->result(); 31 | } 32 | public function get_ofice_location($uid) 33 | { 34 | $this->db->select('office_location'); 35 | $this->db->from('user_dept'); 36 | $this->db->where('u_id',$uid); 37 | $q = $this->db->get(); 38 | return $q->result(); 39 | } 40 | public function register($user,$department) 41 | { 42 | $this->db->insert('user',$user); 43 | $this->db->insert('user_dept',$department); 44 | 45 | } 46 | public function get_user_detail($uid) 47 | { 48 | $this->db->select(array('user.u_type','user.full_name','deptmst.Dept_name','user.emp_no','user.email','user.pho_no','user.address','user_dept.office_location','user.gender','deptmst.deptid')); 49 | $this->db->from('user'); 50 | $this->db->join('user_dept','user_dept.u_id = user.u_id','INNER'); 51 | $this->db->join('deptmst','user_dept.deptid = deptmst.deptid','INNER'); 52 | $this->db->where('user.u_id',$uid); 53 | $q = $this->db->get(); 54 | return $q->result(); 55 | } 56 | public function update_user_detail($uid,$user_data,$dept_data) 57 | { 58 | echo "yes"; 59 | $this->db->set($user_data); 60 | $this->db->where('u_id', $uid); 61 | $this->db->update('user'); 62 | $this->db->set($dept_data); 63 | $this->db->where('u_id', $uid); 64 | $this->db->update('user_dept', $dept_data); 65 | 66 | } 67 | } 68 | ?> 69 | -------------------------------------------------------------------------------- /application/models/workermodel.php: -------------------------------------------------------------------------------- 1 | db->select('w_status'); 12 | $this->db->from('worker'); 13 | $this->db->where('w_id',$w_id); 14 | $worker = $this->db->get(); 15 | $wresult = $worker->result(); 16 | if($wresult[0]->w_status == 'Active') 17 | { 18 | $this->db->set('w_status','Not Active'); 19 | $this->db->where('w_id',$w_id); 20 | $this->db->update('worker'); 21 | return "Not Active"; 22 | } 23 | else 24 | { 25 | $this->db->set('w_status','Active'); 26 | $this->db->where('w_id',$w_id); 27 | $this->db->update('worker'); 28 | return "Active"; 29 | } 30 | } 31 | public function update_worker($data) 32 | { 33 | $this->db->set($data); 34 | $this->db->where('w_id',$data['w_id']); 35 | $this->db->update('worker'); 36 | return 'success'; 37 | } 38 | public function delete_worker($wid) 39 | { 40 | $this->db->where('w_id',$wid); 41 | $this->db->delete('worker'); 42 | return 'success'; 43 | } 44 | public function add_worker($data) 45 | { 46 | $table = 'worker'; 47 | $this->db->insert($table,$data); 48 | return TRUE; 49 | } 50 | } 51 | ?> 52 | -------------------------------------------------------------------------------- /application/third_party/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /application/views/admin/addcategory.php: -------------------------------------------------------------------------------- 1 |
2 | 3 |
4 | 5 |
6 |
7 |
8 |

Add Common Complaint

9 |
10 |
11 | 12 |
13 |
14 | 15 | 21 |
22 |
23 | 24 |
25 |
26 | 27 |
28 |
29 | 'form-control', 'rows' => '2', 'name' => 'cdescription','id' => 'cdescription', 'placeholder' => 'Fan not working', 'required' => 'required')); ?> 30 | 31 |
32 |
33 |
34 | 35 |
36 |
37 | 38 |
39 | 40 | For All 41 |
42 |
43 | 44 | For campus only 45 |
46 |
47 |
48 | 49 |
50 |
51 | 'btn btn-primary btn-md btn-block form-buttons')); ?> 52 |
53 |
54 | 55 |
56 | 57 |
58 |
59 |
60 |

Add New Category

61 |
62 |
63 | 64 | 65 |
66 |
67 | 74 | 75 |
76 |
77 | 82 | 83 |
84 |
85 | -------------------------------------------------------------------------------- /application/views/admin/login.php: -------------------------------------------------------------------------------- 1 | 5 |
6 |
7 |

Admin Login

8 |
9 |
10 | 11 |
12 |
13 |
14 |

Login

15 |
16 |
17 | 18 |
19 |
20 | 27 | 28 |
29 |
30 |
31 |
32 | 39 | 40 |
41 | 45 |
46 | 49 |
50 |
51 |
52 |
53 | 'submit', 'class' => 'btn btn-primary btn-md btn-block form-buttons')); ?> 54 |
55 |
56 | 57 |
58 | 59 |
60 |
61 | 62 | 63 | 69 | 70 | 76 | 77 | -------------------------------------------------------------------------------- /application/views/admin/print.php: -------------------------------------------------------------------------------- 1 | 2 |
3 |
4 |

GujaratVidyapith Estate Department

5 |
6 |
7 |
Complaint Id
8 |

9 |
10 |
11 |
Complaint Date
12 |

c_date;?>

13 |
14 |
15 |
User Name
16 |

full_name;?>

17 |
18 |
19 |
Phone No
20 |

pho_no;?>

21 |
22 |
23 |
Complainnt Description
24 |

c_description;?>

25 |
26 |
27 |
Complainnt location
28 |

c_description;?>

29 |
30 |
31 |
Worker Name
32 |

w_name;?>

33 |
34 |
35 |
Worker Sign
36 |

 

37 |
38 |
39 |
40 | 55 | -------------------------------------------------------------------------------- /application/views/admin/worker.php: -------------------------------------------------------------------------------- 1 | 5 |
6 |
7 |
8 |
9 |
10 | 11 |
12 |
13 | 14 |
15 |
16 |
17 |
18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 |
Workers
NamePhoneE-mailAddressSkillStatusUpdateDelete
37 |
38 |
39 |
40 |
41 | 49 | 53 | -------------------------------------------------------------------------------- /application/views/errors/cli/error_404.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | An uncaught Exception was encountered 4 | 5 | Type: 6 | Message: 7 | Filename: getFile(), "\n"; ?> 8 | Line Number: getLine(); ?> 9 | 10 | 11 | 12 | Backtrace: 13 | getTrace() as $error): ?> 14 | 15 | File: 16 | Line: 17 | Function: 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /application/views/errors/cli/error_general.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | A PHP Error was encountered 4 | 5 | Severity: 6 | Message: 7 | Filename: 8 | Line Number: 9 | 10 | 11 | 12 | Backtrace: 13 | 14 | 15 | File: 16 | Line: 17 | Function: 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /application/views/errors/cli/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /application/views/errors/html/error_404.php: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 7 | 404 Page Not Found 8 | 57 | 58 | 59 |
60 |

61 | 62 |
63 | 64 | -------------------------------------------------------------------------------- /application/views/errors/html/error_db.php: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 7 | Database Error 8 | 57 | 58 | 59 |
60 |

61 | 62 |
63 | 64 | -------------------------------------------------------------------------------- /application/views/errors/html/error_exception.php: -------------------------------------------------------------------------------- 1 | 4 | 5 |
6 | 7 |

An uncaught Exception was encountered

8 | 9 |

Type:

10 |

Message:

11 |

Filename: getFile(); ?>

12 |

Line Number: getLine(); ?>

13 | 14 | 15 | 16 |

Backtrace:

17 | getTrace() as $error): ?> 18 | 19 | 20 | 21 |

22 | File:
23 | Line:
24 | Function: 25 |

26 | 27 | 28 | 29 | 30 | 31 | 32 |
-------------------------------------------------------------------------------- /application/views/errors/html/error_general.php: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 7 | Error 8 | 57 | 58 | 59 |
60 |

61 | 62 |
63 | 64 | -------------------------------------------------------------------------------- /application/views/errors/html/error_php.php: -------------------------------------------------------------------------------- 1 | 4 | 5 |
6 | 7 |

A PHP Error was encountered

8 | 9 |

Severity:

10 |

Message:

11 |

Filename:

12 |

Line Number:

13 | 14 | 15 | 16 |

Backtrace:

17 | 18 | 19 | 20 | 21 |

22 | File:
23 | Line:
24 | Function: 25 |

26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 |
-------------------------------------------------------------------------------- /application/views/errors/html/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

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

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /application/views/public/complaints.php: -------------------------------------------------------------------------------- 1 | 5 | 6 |
7 |
8 |
9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | c_status) 27 | { 28 | case 1: 29 | $status = "Open"; 30 | break; 31 | case 2: 32 | $status = "Pending"; 33 | break; 34 | case 3: 35 | $status = "Under Observation"; 36 | break; 37 | case 4: 38 | $status = "Closed But Not Complete"; 39 | break; 40 | case 5: 41 | $status = "Closed"; 42 | break; 43 | } 44 | ?> 45 | 46 | 47 | 48 | 49 | 50 | 56 | 57 | 58 | 59 |

Complaint List

DateTypeDescriptionComplaint LocationStatusWorker
c_date;?>category;?>c_description;?>location;?>w_name == NULL) 52 | echo "Not Assigned"; 53 | else 54 | echo $c->w_name; 55 | ?>
60 |
61 |
62 |
63 | 64 |
65 |
66 |
67 | 68 | 99 | 112 | -------------------------------------------------------------------------------- /application/views/public/complaintsuccess.php: -------------------------------------------------------------------------------- 1 | 8 | 9 |
10 | 11 |
12 |
13 |

Your complaint registered sucessfully

14 |

Complaint ID is :

15 |
16 |
17 |
18 | -------------------------------------------------------------------------------- /application/views/public/feedback.php: -------------------------------------------------------------------------------- 1 | 5 | 6 |
7 |
8 |
9 |
10 |

Your Complaints Has Been Solved. Are You Satisfied with Our work?

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

No Pending Feedbacks Available

18 | 19 | 20 |
21 |

c_description;?>

22 |
23 |
24 | 25 |
Satisfied
26 |
27 |
28 |
29 |
30 | 31 |
Average
32 |
33 |
34 |
35 |
36 | 37 |
Not Satisfied
38 |
39 |
40 |
41 | 42 | 43 | 44 | 45 |
46 | 47 |
48 | 49 | 50 |
51 |
52 |
53 |
54 |
55 |
56 | -------------------------------------------------------------------------------- /application/views/public/footer.php: -------------------------------------------------------------------------------- 1 |
2 | 6 | 7 | -------------------------------------------------------------------------------- /application/views/public/home.php: -------------------------------------------------------------------------------- 1 | 2 |
3 | 4 |
5 |

Complain Type

6 |
7 |
8 |
9 | 10 | 11 | 12 |
13 |
14 | 15 | 16 | 17 |
18 |
19 | 20 | 21 | 22 |
23 | 24 |
25 |
26 |
27 | 28 | 29 | 30 |
31 |
32 | 33 | 34 | 35 |
36 |
37 |
38 | -------------------------------------------------------------------------------- /application/views/public/trackcomplaint.php: -------------------------------------------------------------------------------- 1 | 2 |
3 |
4 |
5 |
6 |

Your Complaint Status and other Details

7 |
8 |
9 |
10 |

Complaint Description :

11 |

c_description;?>

12 |

Complaint type :

13 |

category;?>

14 |

Location :

15 |

location;?>

16 |

Date :

17 |

c_date;?>

18 |
19 |
20 | c_status) 22 | { 23 | case 1: 24 | $status = "Open"; 25 | break; 26 | case 2: 27 | $status = "Pending"; 28 | break; 29 | case 3: 30 | $status = "Under Observation"; 31 | break; 32 | case 4: 33 | $status = "Closed But Not Complete"; 34 | break; 35 | case 5: 36 | $status = "Closed"; 37 | break; 38 | } 39 | ?> 40 |
41 |
42 |

Complaint Status :

43 | c_status == 1 || $cdetails[0]->c_status == 2): ?> 44 |

45 | c_status == 3 || $cdetails[0]->c_status == 4): ?> 46 |

47 | 48 |

49 | 50 |

Solution Date :

51 | s_date == NULL) 53 | echo "

Not Solved

"; 54 | else 55 | echo $cdetails[0]->s_date; 56 | ?> 57 |

Assigned To :

58 |

w_name == NULL) 60 | echo "Not Assigned"; 61 | else 62 | echo $cdetails[0]->w_name; 63 | ?>

64 |

Ph No :

65 |

w_name == NULL) 67 | echo "Not Available"; 68 | else 69 | echo $cdetails[0]->ph_no; 70 | ?>

71 | 72 |
73 |
74 |
75 |
76 |
77 | -------------------------------------------------------------------------------- /application/views/public/validations.php: -------------------------------------------------------------------------------- 1 | 85 | 88 | -------------------------------------------------------------------------------- /assets/css/css-style.css: -------------------------------------------------------------------------------- 1 | body{ 2 | background-color: #FFF; 3 | } 4 | .navbar 5 | { 6 | background-color: #775f37 !important; 7 | } 8 | .navbar-brand 9 | { 10 | color: #FFF !important; 11 | } 12 | ul li a 13 | { 14 | color: #FFF !important; 15 | transition-duration:1s; 16 | } 17 | 18 | ul li a:hover 19 | { 20 | color: #f0deb7 !important; 21 | } 22 | ul li a.active 23 | { 24 | color: #f0deb7 !important; 25 | } 26 | .container-main 27 | { 28 | padding:.7em; 29 | padding-bottom: 2em; 30 | } 31 | .container-login,.container-reg,.container-home,.assign-worker 32 | { 33 | background-color: #eaeaea; 34 | padding-bottom: 2em; 35 | } 36 | 37 | .jumbotron-main 38 | { 39 | background-color: #95724f !important; 40 | padding:1em; 41 | text-align:center; 42 | } 43 | .jumbotron-main h1 44 | { 45 | padding:0px; 46 | color: #eaeaea; 47 | margin:0px; 48 | font-size:2em; 49 | } 50 | 51 | .jumbotron-main h3 52 | { 53 | padding:0px; 54 | color: #eaeaea; 55 | font-size:1em; 56 | margin:0px; 57 | } 58 | 59 | 60 | .jumbotron-box 61 | { 62 | background-color: #775f37 !important; 63 | padding:1em; 64 | text-align:center; 65 | } 66 | 67 | .jumbotron-box h2 68 | { 69 | padding:0px; 70 | color: #FFF ; 71 | margin:0px; 72 | } 73 | .form-group label 74 | { 75 | color:#333; 76 | } 77 | .container-box 78 | { 79 | background-color: #FFF; 80 | box-shadow: 0px 0px 6px 0px #000; 81 | text-align: center; 82 | } 83 | table 84 | { 85 | background-color: #FFF; 86 | } 87 | table tbody tr 88 | { 89 | white-space: nowrap; 90 | } 91 | table tbody tr 92 | { 93 | height: 20px !important; 94 | overflow: hidden !important; 95 | } 96 | .form-buttons 97 | { 98 | background-color: #95724f !important; 99 | border: 1px solid #95724f !important; 100 | 101 | } 102 | .input-group 103 | { 104 | border: 1px solid #ecdede !important; 105 | } 106 | .form-group .radio 107 | { 108 | margin-left:2em; 109 | } 110 | footer 111 | { 112 | margin-top: 1em; 113 | padding:1em; 114 | background-color: #95724f !important; 115 | color:#FFF; 116 | } 117 | .selectpicker option 118 | { 119 | color:#000 !important; 120 | } 121 | -------------------------------------------------------------------------------- /assets/css/emoji.css: -------------------------------------------------------------------------------- 1 | 2 | form#smileys input[type="radio"] { 3 | -webkit-appearance: none; 4 | -moz-appearance: none; 5 | width: 90px; 6 | height: 90px; 7 | border: none; 8 | cursor: pointer; 9 | -webkit-filter: grayscale(100%); 10 | filter: grayscale(100%); 11 | } 12 | form#smileys input[type="radio"]:hover, form#smileys input[type="radio"]:checked { 13 | -webkit-filter: grayscale(0%); 14 | filter: grayscale(0%); 15 | border-radius:100%; 16 | background-color: #75c8f5 !important; 17 | } 18 | form#smileys input[type="radio"]:focus { 19 | outline: 0; 20 | } 21 | form#smileys input[type="radio"].happy { 22 | background: url("../images/happy_ampvnc.svg") center; 23 | background-size: cover; 24 | } 25 | 26 | form#smileys input[type="radio"].happy:hover, form#smileys input[type="radio"].happy:checked 27 | { 28 | background-color: #baf1a4 !important; 29 | } 30 | 31 | form#smileys input[type="radio"].neutral { 32 | background: url("../images/neutral_t3q8hz.svg") center; 33 | background-size: cover; 34 | } 35 | form#smileys input[type="radio"].neutral:hover, form#smileys input[type="radio"].neutral:checked 36 | { 37 | background-color: #ecd380 !important; 38 | } 39 | form#smileys input[type="radio"].sad { 40 | background: url("../images/sad_bj1tuj.svg") center; 41 | background-size: cover; 42 | } 43 | 44 | form#smileys input[type="radio"].sad:hover, form#smileys input[type="radio"].sad:checked 45 | { 46 | background-color: #f57171 !important; 47 | } 48 | -------------------------------------------------------------------------------- /assets/extra/chart.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |
5 | 6 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /assets/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shahnavaz173/complaint/22f6d8c79986ff09089b1c1b2b503d22713431af/assets/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /assets/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shahnavaz173/complaint/22f6d8c79986ff09089b1c1b2b503d22713431af/assets/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /assets/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shahnavaz173/complaint/22f6d8c79986ff09089b1c1b2b503d22713431af/assets/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /assets/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shahnavaz173/complaint/22f6d8c79986ff09089b1c1b2b503d22713431af/assets/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /assets/images/171px-Gujarat_Vidyapith_(emblem).png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shahnavaz173/complaint/22f6d8c79986ff09089b1c1b2b503d22713431af/assets/images/171px-Gujarat_Vidyapith_(emblem).png -------------------------------------------------------------------------------- /assets/images/background.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shahnavaz173/complaint/22f6d8c79986ff09089b1c1b2b503d22713431af/assets/images/background.jpg -------------------------------------------------------------------------------- /assets/images/carpenter.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shahnavaz173/complaint/22f6d8c79986ff09089b1c1b2b503d22713431af/assets/images/carpenter.png -------------------------------------------------------------------------------- /assets/images/civil.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shahnavaz173/complaint/22f6d8c79986ff09089b1c1b2b503d22713431af/assets/images/civil.png -------------------------------------------------------------------------------- /assets/images/drainage-repairs.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shahnavaz173/complaint/22f6d8c79986ff09089b1c1b2b503d22713431af/assets/images/drainage-repairs.jpg -------------------------------------------------------------------------------- /assets/images/drainage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shahnavaz173/complaint/22f6d8c79986ff09089b1c1b2b503d22713431af/assets/images/drainage.png -------------------------------------------------------------------------------- /assets/images/dranage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shahnavaz173/complaint/22f6d8c79986ff09089b1c1b2b503d22713431af/assets/images/dranage.png -------------------------------------------------------------------------------- /assets/images/electrician.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shahnavaz173/complaint/22f6d8c79986ff09089b1c1b2b503d22713431af/assets/images/electrician.png -------------------------------------------------------------------------------- /assets/images/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shahnavaz173/complaint/22f6d8c79986ff09089b1c1b2b503d22713431af/assets/images/favicon.ico -------------------------------------------------------------------------------- /assets/images/happy_ampvnc.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /assets/images/header-bg - Copy.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shahnavaz173/complaint/22f6d8c79986ff09089b1c1b2b503d22713431af/assets/images/header-bg - Copy.jpg -------------------------------------------------------------------------------- /assets/images/header-bg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shahnavaz173/complaint/22f6d8c79986ff09089b1c1b2b503d22713431af/assets/images/header-bg.jpg -------------------------------------------------------------------------------- /assets/images/images.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shahnavaz173/complaint/22f6d8c79986ff09089b1c1b2b503d22713431af/assets/images/images.png -------------------------------------------------------------------------------- /assets/images/neutral_t3q8hz.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /assets/images/plumb.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shahnavaz173/complaint/22f6d8c79986ff09089b1c1b2b503d22713431af/assets/images/plumb.jpg -------------------------------------------------------------------------------- /assets/images/plumbing.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shahnavaz173/complaint/22f6d8c79986ff09089b1c1b2b503d22713431af/assets/images/plumbing.jpg -------------------------------------------------------------------------------- /assets/images/plumbing.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shahnavaz173/complaint/22f6d8c79986ff09089b1c1b2b503d22713431af/assets/images/plumbing.png -------------------------------------------------------------------------------- /assets/images/sad_bj1tuj.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /assets/images/uploads/profile.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shahnavaz173/complaint/22f6d8c79986ff09089b1c1b2b503d22713431af/assets/images/uploads/profile.png -------------------------------------------------------------------------------- /assets/images/uploads/profile101.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shahnavaz173/complaint/22f6d8c79986ff09089b1c1b2b503d22713431af/assets/images/uploads/profile101.jpg -------------------------------------------------------------------------------- /assets/images/uploads/profile1011.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shahnavaz173/complaint/22f6d8c79986ff09089b1c1b2b503d22713431af/assets/images/uploads/profile1011.jpg -------------------------------------------------------------------------------- /assets/images/uploads/profile1012.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shahnavaz173/complaint/22f6d8c79986ff09089b1c1b2b503d22713431af/assets/images/uploads/profile1012.jpg -------------------------------------------------------------------------------- /assets/images/uploads/profile102.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shahnavaz173/complaint/22f6d8c79986ff09089b1c1b2b503d22713431af/assets/images/uploads/profile102.jpg -------------------------------------------------------------------------------- /assets/images/uploads/profile103.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shahnavaz173/complaint/22f6d8c79986ff09089b1c1b2b503d22713431af/assets/images/uploads/profile103.jpg -------------------------------------------------------------------------------- /assets/images/uploads/profile104.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shahnavaz173/complaint/22f6d8c79986ff09089b1c1b2b503d22713431af/assets/images/uploads/profile104.jpg -------------------------------------------------------------------------------- /assets/images/uploads/profile105.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shahnavaz173/complaint/22f6d8c79986ff09089b1c1b2b503d22713431af/assets/images/uploads/profile105.jpg -------------------------------------------------------------------------------- /assets/images/uploads/profile1051.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shahnavaz173/complaint/22f6d8c79986ff09089b1c1b2b503d22713431af/assets/images/uploads/profile1051.jpg -------------------------------------------------------------------------------- /assets/images/uploads/profile1052.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shahnavaz173/complaint/22f6d8c79986ff09089b1c1b2b503d22713431af/assets/images/uploads/profile1052.jpg -------------------------------------------------------------------------------- /assets/images/uploads/profile1053.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shahnavaz173/complaint/22f6d8c79986ff09089b1c1b2b503d22713431af/assets/images/uploads/profile1053.jpg -------------------------------------------------------------------------------- /assets/images/uploads/profilefdgfdg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shahnavaz173/complaint/22f6d8c79986ff09089b1c1b2b503d22713431af/assets/images/uploads/profilefdgfdg.jpg -------------------------------------------------------------------------------- /assets/images/uploads/profilefdsd.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shahnavaz173/complaint/22f6d8c79986ff09089b1c1b2b503d22713431af/assets/images/uploads/profilefdsd.jpg -------------------------------------------------------------------------------- /assets/images/uploads/profilegfdgfd.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shahnavaz173/complaint/22f6d8c79986ff09089b1c1b2b503d22713431af/assets/images/uploads/profilegfdgfd.jpg -------------------------------------------------------------------------------- /assets/images/uploads/profilegfdgfd1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shahnavaz173/complaint/22f6d8c79986ff09089b1c1b2b503d22713431af/assets/images/uploads/profilegfdgfd1.jpg -------------------------------------------------------------------------------- /assets/js/npm.js: -------------------------------------------------------------------------------- 1 | // This file is autogenerated via the `commonjs` Grunt task. You can require() this file in a CommonJS environment. 2 | require('../../js/transition.js') 3 | require('../../js/alert.js') 4 | require('../../js/button.js') 5 | require('../../js/carousel.js') 6 | require('../../js/collapse.js') 7 | require('../../js/dropdown.js') 8 | require('../../js/modal.js') 9 | require('../../js/tooltip.js') 10 | require('../../js/popover.js') 11 | require('../../js/scrollspy.js') 12 | require('../../js/tab.js') 13 | require('../../js/affix.js') -------------------------------------------------------------------------------- /assets/js/validation.js: -------------------------------------------------------------------------------- 1 | 2 | 3 | function validateField(element) 4 | { 5 | //alert("called 2"); 6 | var eventsource = $("#"+element.id); 7 | var regex,errmsg; 8 | switch(element.id) 9 | { 10 | case 'fullname': 11 | regex = /^['a-zA-Z\.'\s]{6,60}$/; 12 | //regex=/^([a-zA-Z]{2,})(\s|\-)([a-zA-Z]{2,})?(\s|\-)?([a-zA-Z]{2,})?$/; 13 | errmsg = "First Name should contain Characters and spaces Only!"; 14 | $label = "First Name"; 15 | validate(eventsource,regex,errmsg,$label); 16 | break; 17 | case 'empnumber': 18 | regex =/^[0-9]{3,4}$/; 19 | errmsg = "Employee Number Should Contain 3 or 4 digits"; 20 | $label = "Employee Number"; 21 | validate(eventsource,regex,errmsg,$label); 22 | break; 23 | case 'email': 24 | regex=/^\w\d*[\w-\.]*\@\w+((-\w+)|(\w*))\.[a-z]{2,3}$/; 25 | errmsg = "Enter valid email address"; 26 | $label = "E-mail"; 27 | validate(eventsource,regex,errmsg,$label); 28 | break; 29 | case 'contact': 30 | regex=/^\d{10}$/; 31 | errmsg = "Mobile Number should contain 10 digits"; 32 | $label = "Mobile Number"; 33 | validate(eventsource,regex,errmsg,$label); 34 | break; 35 | case 'password': 36 | regex=/^.{6,14}$/; 37 | errmsg ="Length of Password must be greater then 6 and less then 14"; 38 | $label = "Password"; 39 | validate(eventsource,regex,errmsg,$label); 40 | break; 41 | default: 42 | } 43 | } 44 | function validate(eventsource,regex,errmsg,$label) 45 | { 46 | var val = eventsource.val(); 47 | 48 | if(val == "") 49 | { 50 | eventsource.parentsUntil('.form-group').removeClass('has-success'); 51 | eventsource.parentsUntil('.form-group').addClass('has-error'); 52 | eventsource.next('span').addClass('glyphicon-warning-sign'); 53 | eventsource.parent().next('.validation-error').html($label+" Field is Required"); 54 | eventsource.next('span').removeClass('glyphicon-ok'); 55 | return false; 56 | } 57 | else if(regex.test(val)) 58 | { 59 | eventsource.parentsUntil('.form-group').removeClass('has-error'); 60 | eventsource.next('span').removeClass('glyphicon-warning-sign'); 61 | eventsource.parentsUntil('.form-group').addClass('has-success'); 62 | eventsource.next('span').addClass('glyphicon-ok'); 63 | eventsource.parent().next('.validation-error').html(null); 64 | return true; 65 | } 66 | else 67 | { 68 | eventsource.parentsUntil('.form-group').removeClass('has-success'); 69 | eventsource.parentsUntil('.form-group').addClass('has-error'); 70 | eventsource.next('span').addClass('glyphicon-warning-sign'); 71 | eventsource.parent().next('.validation-error').html(errmsg); 72 | eventsource.next('span').removeClass('glyphicon-ok'); 73 | return false; 74 | } 75 | } 76 | function validate_pwd() 77 | { 78 | var pwd=$("#password").val(); 79 | var cpwd=$("#cpassword").val(); 80 | if(pwd.localeCompare(cpwd)==0) 81 | { 82 | $("#cpassword").parentsUntil('.form-group').removeClass('has-error'); 83 | $("#cpassword").next('span').removeClass('glyphicon-warning-sign'); 84 | $("#cpassword").parentsUntil('.form-group').addClass('has-success'); 85 | $("#cpassword").next('span').addClass('glyphicon-ok'); 86 | $("#cpassword").parent().next('.validation-error').html(null); 87 | } 88 | else 89 | { 90 | $("#cpassword").parentsUntil('.form-group').removeClass('has-success'); 91 | $("#cpassword").parentsUntil('.form-group').addClass('has-error'); 92 | $("#cpassword").next('span').addClass('glyphicon-warning-sign'); 93 | $("#cpassword").parent().next('.validation-error').html("Password And Confirm Password Should be same"); 94 | $("#cpassword").next('span').removeClass('glyphicon-ok'); 95 | } 96 | } 97 | -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "description": "The CodeIgniter framework", 3 | "name": "codeigniter/framework", 4 | "type": "project", 5 | "homepage": "https://codeigniter.com", 6 | "license": "MIT", 7 | "support": { 8 | "forum": "http://forum.codeigniter.com/", 9 | "wiki": "https://github.com/bcit-ci/CodeIgniter/wiki", 10 | "slack": "https://codeigniterchat.slack.com", 11 | "source": "https://github.com/bcit-ci/CodeIgniter" 12 | }, 13 | "require": { 14 | "php": ">=5.3.7" 15 | }, 16 | "suggest": { 17 | "paragonie/random_compat": "Provides better randomness in PHP 5.x" 18 | }, 19 | "require-dev": { 20 | "mikey179/vfsStream": "1.1.*", 21 | "phpunit/phpunit": "4.* || 5.*" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /license.txt: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2014 - 2017, British Columbia Institute of Technology 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. -------------------------------------------------------------------------------- /readme.rst: -------------------------------------------------------------------------------- 1 | Complaint Management System 2 | 3 | Web application developed in PHP Codeigniter Framework 4 | developed for Gujarat vidyapith Estate department. 5 | 6 | Features: 7 | 8 | User side 9 | 1. Register a complaint online 10 | 2. Track Complaint status 11 | 3. View contact details of Enginner 12 | 4. Give feedback 13 | 14 | Admin side 15 | 1. View complaints & Assign to Engineer 16 | 2. Update status of complaint 17 | 3. Print & Download Reports 18 | 19 | Engineer 20 | 1. View assigned complaints 21 | 2. Update status of complaint 22 | 23 | Other features 24 | 1. Send E-mail 25 | 1. To Estate department when new complaint registere 26 | 2. To Engineer when complaint assigned to him 27 | 3. To user when complaint status change 28 | -------------------------------------------------------------------------------- /system/.htaccess: -------------------------------------------------------------------------------- 1 | 2 | Require all denied 3 | 4 | 5 | Deny from all 6 | -------------------------------------------------------------------------------- /system/core/Controller.php: -------------------------------------------------------------------------------- 1 | $class) 74 | { 75 | $this->$var =& load_class($class); 76 | } 77 | 78 | $this->load =& load_class('Loader', 'core'); 79 | $this->load->initialize(); 80 | log_message('info', 'Controller Class Initialized'); 81 | } 82 | 83 | // -------------------------------------------------------------------- 84 | 85 | /** 86 | * Get the CI singleton 87 | * 88 | * @static 89 | * @return object 90 | */ 91 | public static function &get_instance() 92 | { 93 | return self::$instance; 94 | } 95 | 96 | } 97 | -------------------------------------------------------------------------------- /system/core/Model.php: -------------------------------------------------------------------------------- 1 | $key; 78 | } 79 | 80 | } 81 | -------------------------------------------------------------------------------- /system/core/compat/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

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

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /system/database/drivers/cubrid/cubrid_utility.php: -------------------------------------------------------------------------------- 1 | db->data_cache['db_names'])) 57 | { 58 | return $this->db->data_cache['db_names']; 59 | } 60 | 61 | return $this->db->data_cache['db_names'] = cubrid_list_dbs($this->db->conn_id); 62 | } 63 | 64 | // -------------------------------------------------------------------- 65 | 66 | /** 67 | * CUBRID Export 68 | * 69 | * @param array Preferences 70 | * @return mixed 71 | */ 72 | protected function _backup($params = array()) 73 | { 74 | // No SQL based support in CUBRID as of version 8.4.0. Database or 75 | // table backup can be performed using CUBRID Manager 76 | // database administration tool. 77 | return $this->db->display_error('db_unsupported_feature'); 78 | } 79 | } 80 | -------------------------------------------------------------------------------- /system/database/drivers/cubrid/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /system/database/drivers/ibase/ibase_utility.php: -------------------------------------------------------------------------------- 1 | db->hostname, $this->db->username, $this->db->password)) 58 | { 59 | $res = ibase_backup($service, $this->db->database, $filename.'.fbk'); 60 | 61 | // Close the service connection 62 | ibase_service_detach($service); 63 | return $res; 64 | } 65 | 66 | return FALSE; 67 | } 68 | 69 | } 70 | -------------------------------------------------------------------------------- /system/database/drivers/ibase/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

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

Directory access is forbidden.

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

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /system/database/drivers/mssql/mssql_utility.php: -------------------------------------------------------------------------------- 1 | db->display_error('db_unsupported_feature'); 75 | } 76 | 77 | } 78 | -------------------------------------------------------------------------------- /system/database/drivers/mysql/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

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

Directory access is forbidden.

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

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /system/database/drivers/oci8/oci8_utility.php: -------------------------------------------------------------------------------- 1 | db->display_error('db_unsupported_feature'); 66 | } 67 | 68 | } 69 | -------------------------------------------------------------------------------- /system/database/drivers/odbc/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /system/database/drivers/odbc/odbc_forge.php: -------------------------------------------------------------------------------- 1 | db->display_error('db_unsupported_feature'); 61 | } 62 | 63 | } 64 | -------------------------------------------------------------------------------- /system/database/drivers/pdo/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /system/database/drivers/pdo/pdo_forge.php: -------------------------------------------------------------------------------- 1 | db->display_error('db_unsupported_feature'); 61 | } 62 | 63 | } 64 | -------------------------------------------------------------------------------- /system/database/drivers/pdo/subdrivers/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /system/database/drivers/pdo/subdrivers/pdo_odbc_forge.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /system/database/drivers/postgre/postgre_utility.php: -------------------------------------------------------------------------------- 1 | db->display_error('db_unsupported_feature'); 77 | } 78 | } 79 | -------------------------------------------------------------------------------- /system/database/drivers/sqlite/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /system/database/drivers/sqlite/sqlite_utility.php: -------------------------------------------------------------------------------- 1 | db->display_error('db_unsupported_feature'); 59 | } 60 | 61 | } 62 | -------------------------------------------------------------------------------- /system/database/drivers/sqlite3/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /system/database/drivers/sqlite3/sqlite3_utility.php: -------------------------------------------------------------------------------- 1 | db->display_error('db_unsupported_feature'); 59 | } 60 | 61 | } 62 | -------------------------------------------------------------------------------- /system/database/drivers/sqlsrv/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /system/database/drivers/sqlsrv/sqlsrv_utility.php: -------------------------------------------------------------------------------- 1 | db->display_error('db_unsupported_feature'); 75 | } 76 | 77 | } 78 | -------------------------------------------------------------------------------- /system/database/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

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

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /system/fonts/texb.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shahnavaz173/complaint/22f6d8c79986ff09089b1c1b2b503d22713431af/system/fonts/texb.ttf -------------------------------------------------------------------------------- /system/helpers/array_helper.php: -------------------------------------------------------------------------------- 1 | 0) && is_dir($source_dir.$file)) 86 | { 87 | $filedata[$file] = directory_map($source_dir.$file, $new_depth, $hidden); 88 | } 89 | else 90 | { 91 | $filedata[] = $file; 92 | } 93 | } 94 | 95 | closedir($fp); 96 | return $filedata; 97 | } 98 | 99 | return FALSE; 100 | } 101 | } 102 | -------------------------------------------------------------------------------- /system/helpers/email_helper.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /system/helpers/language_helper.php: -------------------------------------------------------------------------------- 1 | lang->line($line); 67 | 68 | if ($for !== '') 69 | { 70 | $line = ''; 71 | } 72 | 73 | return $line; 74 | } 75 | } 76 | -------------------------------------------------------------------------------- /system/helpers/number_helper.php: -------------------------------------------------------------------------------- 1 | lang->load('number'); 65 | 66 | if ($num >= 1000000000000) 67 | { 68 | $num = round($num / 1099511627776, $precision); 69 | $unit = $CI->lang->line('terabyte_abbr'); 70 | } 71 | elseif ($num >= 1000000000) 72 | { 73 | $num = round($num / 1073741824, $precision); 74 | $unit = $CI->lang->line('gigabyte_abbr'); 75 | } 76 | elseif ($num >= 1000000) 77 | { 78 | $num = round($num / 1048576, $precision); 79 | $unit = $CI->lang->line('megabyte_abbr'); 80 | } 81 | elseif ($num >= 1000) 82 | { 83 | $num = round($num / 1024, $precision); 84 | $unit = $CI->lang->line('kilobyte_abbr'); 85 | } 86 | else 87 | { 88 | $unit = $CI->lang->line('bytes'); 89 | return number_format($num).' '.$unit; 90 | } 91 | 92 | return number_format($num, $precision).' '.$unit; 93 | } 94 | } 95 | -------------------------------------------------------------------------------- /system/helpers/path_helper.php: -------------------------------------------------------------------------------- 1 | load->library('typography'); 64 | return $CI->typography->nl2br_except_pre($str); 65 | } 66 | } 67 | 68 | // ------------------------------------------------------------------------ 69 | 70 | if ( ! function_exists('auto_typography')) 71 | { 72 | /** 73 | * Auto Typography Wrapper Function 74 | * 75 | * @param string $str 76 | * @param bool $reduce_linebreaks = FALSE whether to reduce multiple instances of double newlines to two 77 | * @return string 78 | */ 79 | function auto_typography($str, $reduce_linebreaks = FALSE) 80 | { 81 | $CI =& get_instance(); 82 | $CI->load->library('typography'); 83 | return $CI->typography->auto_typography($str, $reduce_linebreaks); 84 | } 85 | } 86 | 87 | // -------------------------------------------------------------------- 88 | 89 | if ( ! function_exists('entity_decode')) 90 | { 91 | /** 92 | * HTML Entities Decode 93 | * 94 | * This function is a replacement for html_entity_decode() 95 | * 96 | * @param string 97 | * @param string 98 | * @return string 99 | */ 100 | function entity_decode($str, $charset = NULL) 101 | { 102 | return get_instance()->security->entity_decode($str, $charset); 103 | } 104 | } 105 | -------------------------------------------------------------------------------- /system/helpers/xml_helper.php: -------------------------------------------------------------------------------- 1 | ', '"', "'", '-'), 76 | array('&', '<', '>', '"', ''', '-'), 77 | $str 78 | ); 79 | 80 | // Decode the temp markers back to entities 81 | $str = preg_replace('/'.$temp.'(\d+);/', '&#\\1;', $str); 82 | 83 | if ($protect_all === TRUE) 84 | { 85 | return preg_replace('/'.$temp.'(\w+);/', '&\\1;', $str); 86 | } 87 | 88 | return $str; 89 | } 90 | } 91 | -------------------------------------------------------------------------------- /system/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /system/language/english/calendar_lang.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /system/language/english/migration_lang.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

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

Directory access is forbidden.

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

Directory access is forbidden.

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

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /system/libraries/Session/SessionHandlerInterface.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

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

Directory access is forbidden.

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

Directory access is forbidden.

9 | 10 | 11 | 12 | --------------------------------------------------------------------------------