├── LICENSE ├── README.md ├── project ├── PHPMailerAutoload.php ├── accessdenied.wav ├── accessgranted.wav ├── admincases.php ├── adminhome.php ├── allcases.php ├── amendedlogs.php ├── assigncases.php ├── capture.php ├── caseclosed.php ├── casedetails.php ├── caseopen.php ├── casepending.php ├── casereopen.php ├── caseupdate.php ├── caseview.php ├── contact.php ├── credential.php ├── css │ ├── admincases.css │ ├── adminhome.css │ ├── animate.min.css │ ├── bootstrap.css │ ├── bootstrap.map │ ├── bootstrap │ │ ├── bootstrap-grid.css │ │ ├── bootstrap-reboot.css │ │ └── bootstrap.css │ ├── caseanalysis.css │ ├── contact.css │ ├── denied.css │ ├── departments.css │ ├── font-awesome.min.css │ ├── home.css │ ├── jquery.DonutWidget.min.css │ ├── jquerysctipttop.css │ ├── linearicons.css │ ├── magnific-popup.css │ ├── main.css │ ├── main.map │ ├── nice-select.css │ ├── officerhome.css │ ├── owl.carousel.css │ ├── settings.css │ ├── success.css │ └── theme │ │ └── pages.css ├── css2 │ ├── font-awesome.min.css │ ├── main.css │ └── normalize.min.css ├── departments.php ├── entrylogs.php ├── failed.php ├── fonts │ ├── FontAwesome.otf │ ├── Linearicons-Free.eot │ ├── Linearicons-Free.svg │ ├── Linearicons-Free.ttf │ ├── Linearicons-Free.woff │ ├── Linearicons-Free.woff2 │ ├── fontawesome-webfont.eot │ ├── fontawesome-webfont.svg │ ├── fontawesome-webfont.ttf │ ├── fontawesome-webfont.woff │ └── fontawesome-webfont.woff2 ├── fonts2 │ ├── FontAwesome.otf │ ├── fontawesome-webfont.eot │ ├── fontawesome-webfont.svg │ ├── fontawesome-webfont.ttf │ └── fontawesome-webfont.woff ├── forensiccases.php ├── home.php ├── image.compare.class.php ├── img │ ├── access.jpg │ ├── accessdeny.jpg │ ├── accessdeny3.jpg │ ├── accessgrant.jpg │ ├── accessgrant2.jpg │ ├── accessgrant3.jpg │ ├── accessgrant5.jpg │ ├── admincases.jpg │ ├── adminhome.jpg │ ├── assigncase.jpg │ ├── caseanalysis.jpg │ ├── closed.jpg │ ├── contact.jpg │ ├── contact2.jpg │ ├── contact4.jpg │ ├── denied.jpg │ ├── departments.jpg │ ├── details.jpg │ ├── granted.jpg │ ├── header-bg.jpg │ ├── home.jpg │ ├── home2.jpg │ ├── lab.jpg │ ├── lab2.jpg │ ├── labtech.jpg │ ├── labtech2.jpg │ ├── logo.jpg │ ├── logo2.jpg │ ├── logo4.jpg │ ├── logs.jpg │ ├── officer.jpg │ ├── officerhome.jpg │ ├── open.jpg │ ├── p3.jpg │ ├── pending.jpg │ ├── reopen.jpg │ ├── search.jpg │ ├── settings(2).jpg │ ├── settings.jpg │ ├── spiral-notepad-icon-digital-red-vector-20159393.jpg │ ├── suspects.jpg │ ├── suspects2.jpg │ ├── update.jpg │ ├── update2.jpg │ ├── users.jpg │ ├── view.jpg │ ├── view2.jpg │ └── write.jpg ├── includes │ ├── common.php │ ├── footer.php │ └── header.php ├── index.php ├── inscribedlogs.php ├── insert.php ├── insertcase.php ├── insertevidences.php ├── insertfirearms.php ├── insertknownforensics.php ├── insertsuspects.php ├── js │ ├── easing.min.js │ ├── hoverIntent.js │ ├── imagesloaded.pkgd.min.js │ ├── jquery.ajaxchimp.min.js │ ├── jquery.counterup.min.js │ ├── jquery.magnific-popup.min.js │ ├── jquery.nice-select.min.js │ ├── jquery.sticky.js │ ├── justified.min.js │ ├── mail-script.js │ ├── main.js │ ├── owl.carousel.min.js │ ├── parallax.min.js │ ├── slick.js │ ├── superfish.js │ ├── superfish.min.js │ ├── vendor │ │ ├── bootstrap.min.js │ │ └── jquery-2.2.4.min.js │ └── waypoints.min.js ├── js2 │ ├── custom.js │ ├── jquery-1.11.0.min.js │ └── jquery.nav.js ├── lab.php ├── labtech.php ├── labtechview.php ├── labtechwrite.php ├── labview.php ├── labwrite.php ├── login_submit.php ├── logout_script.php ├── logs.php ├── officer.php ├── officerhome.php ├── officerview.php ├── officerwrite.php ├── phpmailer │ ├── class.phpmailer.php │ └── class.smtp.php ├── screenshots │ ├── failed.jpg │ ├── index.jpg │ └── success.jpg ├── scss │ ├── bootstrap.scss │ ├── bootstrap │ │ ├── _alert.scss │ │ ├── _badge.scss │ │ ├── _breadcrumb.scss │ │ ├── _button-group.scss │ │ ├── _buttons.scss │ │ ├── _card.scss │ │ ├── _carousel.scss │ │ ├── _close.scss │ │ ├── _code.scss │ │ ├── _custom-forms.scss │ │ ├── _dropdown.scss │ │ ├── _forms.scss │ │ ├── _functions.scss │ │ ├── _grid.scss │ │ ├── _images.scss │ │ ├── _input-group.scss │ │ ├── _jumbotron.scss │ │ ├── _list-group.scss │ │ ├── _media.scss │ │ ├── _mixins.scss │ │ ├── _modal.scss │ │ ├── _nav.scss │ │ ├── _navbar.scss │ │ ├── _pagination.scss │ │ ├── _popover.scss │ │ ├── _print.scss │ │ ├── _progress.scss │ │ ├── _reboot.scss │ │ ├── _root.scss │ │ ├── _tables.scss │ │ ├── _tooltip.scss │ │ ├── _transitions.scss │ │ ├── _type.scss │ │ ├── _utilities.scss │ │ ├── _variables.scss │ │ ├── bootstrap-grid.scss │ │ ├── bootstrap-reboot.scss │ │ ├── bootstrap.scss │ │ ├── mixins │ │ │ ├── _alert.scss │ │ │ ├── _background-variant.scss │ │ │ ├── _badge.scss │ │ │ ├── _border-radius.scss │ │ │ ├── _box-shadow.scss │ │ │ ├── _breakpoints.scss │ │ │ ├── _buttons.scss │ │ │ ├── _caret.scss │ │ │ ├── _clearfix.scss │ │ │ ├── _float.scss │ │ │ ├── _forms.scss │ │ │ ├── _gradients.scss │ │ │ ├── _grid-framework.scss │ │ │ ├── _grid.scss │ │ │ ├── _hover.scss │ │ │ ├── _image.scss │ │ │ ├── _list-group.scss │ │ │ ├── _lists.scss │ │ │ ├── _nav-divider.scss │ │ │ ├── _navbar-align.scss │ │ │ ├── _pagination.scss │ │ │ ├── _reset-text.scss │ │ │ ├── _resize.scss │ │ │ ├── _screen-reader.scss │ │ │ ├── _size.scss │ │ │ ├── _table-row.scss │ │ │ ├── _text-emphasis.scss │ │ │ ├── _text-hide.scss │ │ │ ├── _text-truncate.scss │ │ │ ├── _transition.scss │ │ │ └── _visibility.scss │ │ └── utilities │ │ │ ├── _align.scss │ │ │ ├── _background.scss │ │ │ ├── _borders.scss │ │ │ ├── _clearfix.scss │ │ │ ├── _display.scss │ │ │ ├── _embed.scss │ │ │ ├── _flex.scss │ │ │ ├── _float.scss │ │ │ ├── _position.scss │ │ │ ├── _screenreaders.scss │ │ │ ├── _sizing.scss │ │ │ ├── _spacing.scss │ │ │ ├── _text.scss │ │ │ └── _visibility.scss │ ├── main.scss │ └── theme │ │ ├── _elements.scss │ │ ├── _flexbox.scss │ │ ├── _footer.scss │ │ ├── _header.scss │ │ ├── _home.scss │ │ ├── _mixins.scss │ │ ├── _pages.scss │ │ ├── _reset.scss │ │ └── _variables.scss ├── settings.php ├── settings_script.php ├── signup_script.php ├── storeImage.php ├── success.php ├── syntax-highlighter2 │ ├── scripts │ │ ├── shAutoloader.js │ │ ├── shBrushAS3.js │ │ ├── shBrushAppleScript.js │ │ ├── shBrushBash.js │ │ ├── shBrushCSharp.js │ │ ├── shBrushColdFusion.js │ │ ├── shBrushCpp.js │ │ ├── shBrushCss.js │ │ ├── shBrushDelphi.js │ │ ├── shBrushDiff.js │ │ ├── shBrushErlang.js │ │ ├── shBrushGroovy.js │ │ ├── shBrushJScript.js │ │ ├── shBrushJava.js │ │ ├── shBrushJavaFX.js │ │ ├── shBrushPerl.js │ │ ├── shBrushPhp.js │ │ ├── shBrushPlain.js │ │ ├── shBrushPowerShell.js │ │ ├── shBrushPython.js │ │ ├── shBrushRuby.js │ │ ├── shBrushSass.js │ │ ├── shBrushScala.js │ │ ├── shBrushSql.js │ │ ├── shBrushVb.js │ │ ├── shBrushXml.js │ │ ├── shCore.js │ │ └── shLegacy.js │ └── styles │ │ ├── shCore.css │ │ ├── shCoreDefault.css │ │ ├── shCoreDjango.css │ │ ├── shCoreEclipse.css │ │ ├── shCoreEmacs.css │ │ ├── shCoreFadeToGrey.css │ │ ├── shCoreMDUltra.css │ │ ├── shCoreMidnight.css │ │ ├── shCoreRDark.css │ │ ├── shThemeDefault.css │ │ ├── shThemeDjango.css │ │ ├── shThemeEclipse.css │ │ ├── shThemeEmacs.css │ │ ├── shThemeFadeToGrey.css │ │ ├── shThemeMDUltra.css │ │ ├── shThemeMidnight.css │ │ └── shThemeRDark.css ├── update.php ├── users.php ├── usersdelete.php ├── usersview.php └── works.php └── sql └── 127_0_0_1.sql /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2020 Dheeraj Bhat 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 all 13 | 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 THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # DBMS-Project 2 | DBMS Project on Forensic Evidence Management and Investigation System. Performs storing of forensic reports, evidences, and image processing operations like matching of evidences stored in the database. 3 | 4 | 5 | ## Requirements 6 | 7 | * Apache 2.4 8 | * MySQL 5.7 9 | * PHP 7.2 10 | * For Image Processing functions, PHP ImageMagick-7.0.7 extension 11 | 12 | 13 | ## Screenshots 14 | 15 | ![alt text](project/screenshots/index.jpg) 16 | 17 | 18 | ![alt text](project/screenshots/success.jpg) -------------------------------------------------------------------------------- /project/PHPMailerAutoload.php: -------------------------------------------------------------------------------- 1 | =')) { 13 | //SPL autoloading was introduced in PHP 5.1.2 14 | if (version_compare(PHP_VERSION, '5.3.0', '>=')) { 15 | spl_autoload_register('PHPMailerAutoload', true, true); 16 | } else { 17 | spl_autoload_register('PHPMailerAutoload'); 18 | } 19 | } else { 20 | /** 21 | * Fall back to traditional autoload for old PHP versions 22 | * @param string $classname The name of the class to load 23 | */ 24 | function spl_autoload_register($classname) 25 | { 26 | PHPMailerAutoload($classname); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /project/accessdenied.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dheerajnbhat/DBMS-Project/40085a1426432f72b85119f99a3c6f359ad49b6c/project/accessdenied.wav -------------------------------------------------------------------------------- /project/accessgranted.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dheerajnbhat/DBMS-Project/40085a1426432f72b85119f99a3c6f359ad49b6c/project/accessgranted.wav -------------------------------------------------------------------------------- /project/credential.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /project/css/jquerysctipttop.css: -------------------------------------------------------------------------------- 1 | #jquery-script-menu { 2 | position: fixed; 3 | height: 90px; 4 | width: 100%; 5 | top: 0; 6 | left: 0; 7 | border-top: 5px solid #316594; 8 | background: #fff; 9 | -moz-box-shadow: 0 2px 3px 0px rgba(0, 0, 0, 0.16); 10 | -webkit-box-shadow: 0 2px 3px 0px rgba(0, 0, 0, 0.16); 11 | box-shadow: 0 2px 3px 0px rgba(0, 0, 0, 0.16); 12 | z-index: 999999; 13 | padding: 10px 0; 14 | -webkit-box-sizing:content-box; 15 | -moz-box-sizing:content-box; 16 | box-sizing:content-box; 17 | } 18 | 19 | .jquery-script-center { 20 | width: 960px; 21 | margin: 0 auto; 22 | } 23 | .jquery-script-center ul { 24 | width: 212px; 25 | float:left; 26 | line-height:45px; 27 | margin:0; 28 | padding:0; 29 | list-style:none; 30 | } 31 | .jquery-script-center a { 32 | text-decoration:none; 33 | } 34 | .jquery-script-ads { 35 | width: 728px; 36 | height:90px; 37 | float:right; 38 | } 39 | .jquery-script-clear { 40 | clear:both; 41 | height:0; 42 | } 43 | -------------------------------------------------------------------------------- /project/css2/normalize.min.css: -------------------------------------------------------------------------------- 1 | /*! normalize.css v1.1.3 | MIT License | git.io/normalize */article,aside,details,figcaption,figure,footer,header,hgroup,main,nav,section,summary{display:block}audio,canvas,video{display:inline-block;*display:inline;*zoom:1}audio:not([controls]){display:none;height:0}[hidden]{display:none}html{font-size:100%;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}html,button,input,select,textarea{font-family:sans-serif}body{margin:0}a:focus{outline:thin dotted}a:active,a:hover{outline:0}h1{font-size:2em;margin:.67em 0}h2{font-size:1.5em;margin:.83em 0}h3{font-size:1.17em;margin:1em 0}h4{font-size:1em;margin:1.33em 0}h5{font-size:.83em;margin:1.67em 0}h6{font-size:.67em;margin:2.33em 0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:bold}blockquote{margin:1em 40px}dfn{font-style:italic}hr{-moz-box-sizing:content-box;box-sizing:content-box;height:0}mark{background:#ff0;color:#000}p,pre{margin:1em 0}code,kbd,pre,samp{font-family:monospace,serif;_font-family:'courier new',monospace;font-size:1em}pre{white-space:pre;white-space:pre-wrap;word-wrap:break-word}q{quotes:none}q:before,q:after{content:'';content:none}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-0.5em}sub{bottom:-0.25em}dl,menu,ol,ul{margin:1em 0}dd{margin:0 0 0 40px}menu,ol,ul{padding:0 0 0 40px}nav ul,nav ol{list-style:none;list-style-image:none}img{border:0;-ms-interpolation-mode:bicubic}svg:not(:root){overflow:hidden}figure{margin:0}form{margin:0}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}legend{border:0;padding:0;white-space:normal;*margin-left:-7px}button,input,select,textarea{font-size:100%;margin:0;vertical-align:baseline;*vertical-align:middle}button,input{line-height:normal}button,select{text-transform:none}button,html input[type="button"],input[type="reset"],input[type="submit"]{-webkit-appearance:button;cursor:pointer;*overflow:visible}button[disabled],html input[disabled]{cursor:default}input[type="checkbox"],input[type="radio"]{box-sizing:border-box;padding:0;*height:13px;*width:13px}input[type="search"]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}input[type="search"]::-webkit-search-cancel-button,input[type="search"]::-webkit-search-decoration{-webkit-appearance:none}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}textarea{overflow:auto;vertical-align:top}table{border-collapse:collapse;border-spacing:0} -------------------------------------------------------------------------------- /project/failed.php: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 7 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | Failed 26 | 27 | 28 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | -------------------------------------------------------------------------------- /project/fonts/FontAwesome.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dheerajnbhat/DBMS-Project/40085a1426432f72b85119f99a3c6f359ad49b6c/project/fonts/FontAwesome.otf -------------------------------------------------------------------------------- /project/fonts/Linearicons-Free.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dheerajnbhat/DBMS-Project/40085a1426432f72b85119f99a3c6f359ad49b6c/project/fonts/Linearicons-Free.eot -------------------------------------------------------------------------------- /project/fonts/Linearicons-Free.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dheerajnbhat/DBMS-Project/40085a1426432f72b85119f99a3c6f359ad49b6c/project/fonts/Linearicons-Free.ttf -------------------------------------------------------------------------------- /project/fonts/Linearicons-Free.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dheerajnbhat/DBMS-Project/40085a1426432f72b85119f99a3c6f359ad49b6c/project/fonts/Linearicons-Free.woff -------------------------------------------------------------------------------- /project/fonts/Linearicons-Free.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dheerajnbhat/DBMS-Project/40085a1426432f72b85119f99a3c6f359ad49b6c/project/fonts/Linearicons-Free.woff2 -------------------------------------------------------------------------------- /project/fonts/fontawesome-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dheerajnbhat/DBMS-Project/40085a1426432f72b85119f99a3c6f359ad49b6c/project/fonts/fontawesome-webfont.eot -------------------------------------------------------------------------------- /project/fonts/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dheerajnbhat/DBMS-Project/40085a1426432f72b85119f99a3c6f359ad49b6c/project/fonts/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /project/fonts/fontawesome-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dheerajnbhat/DBMS-Project/40085a1426432f72b85119f99a3c6f359ad49b6c/project/fonts/fontawesome-webfont.woff -------------------------------------------------------------------------------- /project/fonts/fontawesome-webfont.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dheerajnbhat/DBMS-Project/40085a1426432f72b85119f99a3c6f359ad49b6c/project/fonts/fontawesome-webfont.woff2 -------------------------------------------------------------------------------- /project/fonts2/FontAwesome.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dheerajnbhat/DBMS-Project/40085a1426432f72b85119f99a3c6f359ad49b6c/project/fonts2/FontAwesome.otf -------------------------------------------------------------------------------- /project/fonts2/fontawesome-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dheerajnbhat/DBMS-Project/40085a1426432f72b85119f99a3c6f359ad49b6c/project/fonts2/fontawesome-webfont.eot -------------------------------------------------------------------------------- /project/fonts2/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dheerajnbhat/DBMS-Project/40085a1426432f72b85119f99a3c6f359ad49b6c/project/fonts2/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /project/fonts2/fontawesome-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dheerajnbhat/DBMS-Project/40085a1426432f72b85119f99a3c6f359ad49b6c/project/fonts2/fontawesome-webfont.woff -------------------------------------------------------------------------------- /project/image.compare.class.php: -------------------------------------------------------------------------------- 1 | mimeType($i); 31 | 32 | if($mime[2] == 'jpg') 33 | { 34 | return imagecreatefromjpeg ($i); 35 | } 36 | else if ($mime[2] == 'png') 37 | { 38 | return imagecreatefrompng ($i); 39 | } 40 | else 41 | { 42 | return false; 43 | } 44 | } 45 | 46 | 47 | 48 | 49 | 50 | private function resizeImage($i,$source) 51 | { 52 | /*resizes the image to a 8x8 squere and returns as image resource*/ 53 | $mime = $this->mimeType($source); 54 | 55 | $t = imagecreatetruecolor(8, 8); 56 | 57 | $source = $this->createImage($source); 58 | 59 | imagecopyresized($t, $source, 0, 0, 0, 0, 8, 8, $mime[0], $mime[1]); 60 | 61 | return $t; 62 | } 63 | 64 | 65 | 66 | 67 | 68 | 69 | private function colorMeanValue($i) 70 | { 71 | /*returns the mean value of the colors and the list of all pixel's colors*/ 72 | $colorList = array(); 73 | $colorSum = 0; 74 | for($a = 0;$a<8;$a++) 75 | { 76 | for($b = 0;$b<8;$b++) 77 | { 78 | $rgb = imagecolorat($i, $a, $b); 79 | $colorList[] = $rgb & 0xFF; 80 | $colorSum += $rgb & 0xFF; 81 | } 82 | } 83 | return array($colorSum/64,$colorList); 84 | } 85 | 86 | 87 | 88 | 89 | 90 | private function bits($colorMean) 91 | { 92 | /*returns an array with 1 and zeros. If a color is bigger than the mean value of colors it is 1*/ 93 | $bits = array(); 94 | foreach($colorMean[1] as $color){$bits[]= ($color>=$colorMean[0])?1:0;} 95 | return $bits; 96 | } 97 | 98 | 99 | 100 | 101 | 102 | 103 | public function compare($a,$b) 104 | { 105 | /*main function. returns the hammering distance of two images' bit value*/ 106 | $i1 = $this->createImage($a); 107 | $i2 = $this->createImage($b); 108 | if(!$i1 || !$i2){return false;} 109 | $i1 = $this->resizeImage($i1,$a); 110 | $i2 = $this->resizeImage($i2,$b); 111 | imagefilter($i1, IMG_FILTER_GRAYSCALE); 112 | imagefilter($i2, IMG_FILTER_GRAYSCALE); 113 | $colorMean1 = $this->colorMeanValue($i1); 114 | $colorMean2 = $this->colorMeanValue($i2); 115 | $bits1 = $this->bits($colorMean1); 116 | $bits2 = $this->bits($colorMean2); 117 | $hammeringDistance = 0; 118 | for($a = 0;$a<64;$a++) 119 | { 120 | if($bits1[$a] != $bits2[$a]) 121 | { 122 | $hammeringDistance++; 123 | } 124 | } 125 | return $hammeringDistance; 126 | } 127 | 128 | 129 | 130 | } 131 | 132 | ?> -------------------------------------------------------------------------------- /project/img/access.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dheerajnbhat/DBMS-Project/40085a1426432f72b85119f99a3c6f359ad49b6c/project/img/access.jpg -------------------------------------------------------------------------------- /project/img/accessdeny.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dheerajnbhat/DBMS-Project/40085a1426432f72b85119f99a3c6f359ad49b6c/project/img/accessdeny.jpg -------------------------------------------------------------------------------- /project/img/accessdeny3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dheerajnbhat/DBMS-Project/40085a1426432f72b85119f99a3c6f359ad49b6c/project/img/accessdeny3.jpg -------------------------------------------------------------------------------- /project/img/accessgrant.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dheerajnbhat/DBMS-Project/40085a1426432f72b85119f99a3c6f359ad49b6c/project/img/accessgrant.jpg -------------------------------------------------------------------------------- /project/img/accessgrant2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dheerajnbhat/DBMS-Project/40085a1426432f72b85119f99a3c6f359ad49b6c/project/img/accessgrant2.jpg -------------------------------------------------------------------------------- /project/img/accessgrant3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dheerajnbhat/DBMS-Project/40085a1426432f72b85119f99a3c6f359ad49b6c/project/img/accessgrant3.jpg -------------------------------------------------------------------------------- /project/img/accessgrant5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dheerajnbhat/DBMS-Project/40085a1426432f72b85119f99a3c6f359ad49b6c/project/img/accessgrant5.jpg -------------------------------------------------------------------------------- /project/img/admincases.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dheerajnbhat/DBMS-Project/40085a1426432f72b85119f99a3c6f359ad49b6c/project/img/admincases.jpg -------------------------------------------------------------------------------- /project/img/adminhome.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dheerajnbhat/DBMS-Project/40085a1426432f72b85119f99a3c6f359ad49b6c/project/img/adminhome.jpg -------------------------------------------------------------------------------- /project/img/assigncase.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dheerajnbhat/DBMS-Project/40085a1426432f72b85119f99a3c6f359ad49b6c/project/img/assigncase.jpg -------------------------------------------------------------------------------- /project/img/caseanalysis.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dheerajnbhat/DBMS-Project/40085a1426432f72b85119f99a3c6f359ad49b6c/project/img/caseanalysis.jpg -------------------------------------------------------------------------------- /project/img/closed.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dheerajnbhat/DBMS-Project/40085a1426432f72b85119f99a3c6f359ad49b6c/project/img/closed.jpg -------------------------------------------------------------------------------- /project/img/contact.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dheerajnbhat/DBMS-Project/40085a1426432f72b85119f99a3c6f359ad49b6c/project/img/contact.jpg -------------------------------------------------------------------------------- /project/img/contact2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dheerajnbhat/DBMS-Project/40085a1426432f72b85119f99a3c6f359ad49b6c/project/img/contact2.jpg -------------------------------------------------------------------------------- /project/img/contact4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dheerajnbhat/DBMS-Project/40085a1426432f72b85119f99a3c6f359ad49b6c/project/img/contact4.jpg -------------------------------------------------------------------------------- /project/img/denied.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dheerajnbhat/DBMS-Project/40085a1426432f72b85119f99a3c6f359ad49b6c/project/img/denied.jpg -------------------------------------------------------------------------------- /project/img/departments.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dheerajnbhat/DBMS-Project/40085a1426432f72b85119f99a3c6f359ad49b6c/project/img/departments.jpg -------------------------------------------------------------------------------- /project/img/details.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dheerajnbhat/DBMS-Project/40085a1426432f72b85119f99a3c6f359ad49b6c/project/img/details.jpg -------------------------------------------------------------------------------- /project/img/granted.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dheerajnbhat/DBMS-Project/40085a1426432f72b85119f99a3c6f359ad49b6c/project/img/granted.jpg -------------------------------------------------------------------------------- /project/img/header-bg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dheerajnbhat/DBMS-Project/40085a1426432f72b85119f99a3c6f359ad49b6c/project/img/header-bg.jpg -------------------------------------------------------------------------------- /project/img/home.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dheerajnbhat/DBMS-Project/40085a1426432f72b85119f99a3c6f359ad49b6c/project/img/home.jpg -------------------------------------------------------------------------------- /project/img/home2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dheerajnbhat/DBMS-Project/40085a1426432f72b85119f99a3c6f359ad49b6c/project/img/home2.jpg -------------------------------------------------------------------------------- /project/img/lab.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dheerajnbhat/DBMS-Project/40085a1426432f72b85119f99a3c6f359ad49b6c/project/img/lab.jpg -------------------------------------------------------------------------------- /project/img/lab2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dheerajnbhat/DBMS-Project/40085a1426432f72b85119f99a3c6f359ad49b6c/project/img/lab2.jpg -------------------------------------------------------------------------------- /project/img/labtech.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dheerajnbhat/DBMS-Project/40085a1426432f72b85119f99a3c6f359ad49b6c/project/img/labtech.jpg -------------------------------------------------------------------------------- /project/img/labtech2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dheerajnbhat/DBMS-Project/40085a1426432f72b85119f99a3c6f359ad49b6c/project/img/labtech2.jpg -------------------------------------------------------------------------------- /project/img/logo.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dheerajnbhat/DBMS-Project/40085a1426432f72b85119f99a3c6f359ad49b6c/project/img/logo.jpg -------------------------------------------------------------------------------- /project/img/logo2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dheerajnbhat/DBMS-Project/40085a1426432f72b85119f99a3c6f359ad49b6c/project/img/logo2.jpg -------------------------------------------------------------------------------- /project/img/logo4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dheerajnbhat/DBMS-Project/40085a1426432f72b85119f99a3c6f359ad49b6c/project/img/logo4.jpg -------------------------------------------------------------------------------- /project/img/logs.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dheerajnbhat/DBMS-Project/40085a1426432f72b85119f99a3c6f359ad49b6c/project/img/logs.jpg -------------------------------------------------------------------------------- /project/img/officer.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dheerajnbhat/DBMS-Project/40085a1426432f72b85119f99a3c6f359ad49b6c/project/img/officer.jpg -------------------------------------------------------------------------------- /project/img/officerhome.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dheerajnbhat/DBMS-Project/40085a1426432f72b85119f99a3c6f359ad49b6c/project/img/officerhome.jpg -------------------------------------------------------------------------------- /project/img/open.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dheerajnbhat/DBMS-Project/40085a1426432f72b85119f99a3c6f359ad49b6c/project/img/open.jpg -------------------------------------------------------------------------------- /project/img/p3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dheerajnbhat/DBMS-Project/40085a1426432f72b85119f99a3c6f359ad49b6c/project/img/p3.jpg -------------------------------------------------------------------------------- /project/img/pending.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dheerajnbhat/DBMS-Project/40085a1426432f72b85119f99a3c6f359ad49b6c/project/img/pending.jpg -------------------------------------------------------------------------------- /project/img/reopen.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dheerajnbhat/DBMS-Project/40085a1426432f72b85119f99a3c6f359ad49b6c/project/img/reopen.jpg -------------------------------------------------------------------------------- /project/img/search.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dheerajnbhat/DBMS-Project/40085a1426432f72b85119f99a3c6f359ad49b6c/project/img/search.jpg -------------------------------------------------------------------------------- /project/img/settings(2).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dheerajnbhat/DBMS-Project/40085a1426432f72b85119f99a3c6f359ad49b6c/project/img/settings(2).jpg -------------------------------------------------------------------------------- /project/img/settings.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dheerajnbhat/DBMS-Project/40085a1426432f72b85119f99a3c6f359ad49b6c/project/img/settings.jpg -------------------------------------------------------------------------------- /project/img/spiral-notepad-icon-digital-red-vector-20159393.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dheerajnbhat/DBMS-Project/40085a1426432f72b85119f99a3c6f359ad49b6c/project/img/spiral-notepad-icon-digital-red-vector-20159393.jpg -------------------------------------------------------------------------------- /project/img/suspects.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dheerajnbhat/DBMS-Project/40085a1426432f72b85119f99a3c6f359ad49b6c/project/img/suspects.jpg -------------------------------------------------------------------------------- /project/img/suspects2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dheerajnbhat/DBMS-Project/40085a1426432f72b85119f99a3c6f359ad49b6c/project/img/suspects2.jpg -------------------------------------------------------------------------------- /project/img/update.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dheerajnbhat/DBMS-Project/40085a1426432f72b85119f99a3c6f359ad49b6c/project/img/update.jpg -------------------------------------------------------------------------------- /project/img/update2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dheerajnbhat/DBMS-Project/40085a1426432f72b85119f99a3c6f359ad49b6c/project/img/update2.jpg -------------------------------------------------------------------------------- /project/img/users.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dheerajnbhat/DBMS-Project/40085a1426432f72b85119f99a3c6f359ad49b6c/project/img/users.jpg -------------------------------------------------------------------------------- /project/img/view.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dheerajnbhat/DBMS-Project/40085a1426432f72b85119f99a3c6f359ad49b6c/project/img/view.jpg -------------------------------------------------------------------------------- /project/img/view2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dheerajnbhat/DBMS-Project/40085a1426432f72b85119f99a3c6f359ad49b6c/project/img/view2.jpg -------------------------------------------------------------------------------- /project/img/write.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dheerajnbhat/DBMS-Project/40085a1426432f72b85119f99a3c6f359ad49b6c/project/img/write.jpg -------------------------------------------------------------------------------- /project/includes/common.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /project/includes/footer.php: -------------------------------------------------------------------------------- 1 | 2 | 16 | -------------------------------------------------------------------------------- /project/includes/header.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /project/insert.php: -------------------------------------------------------------------------------- 1 | if(confirm('Insertion Successful! Proceed Next -->')){document.location.href='insertevidences.php'};"; 25 | } 26 | else { 27 | $message = "Couldnt insert values! Please Try again!"; 28 | echo ""; 29 | } 30 | } 31 | 32 | ?> 33 | -------------------------------------------------------------------------------- /project/js/easing.min.js: -------------------------------------------------------------------------------- 1 | !function(n){"function"==typeof define&&define.amd?define(["jquery"],function(e){return n(e)}):"object"==typeof module&&"object"==typeof module.exports?exports=n(require("jquery")):n(jQuery)}(function(n){function e(n){var e=7.5625,t=2.75;return n<1/t?e*n*n:n<2/t?e*(n-=1.5/t)*n+.75:n<2.5/t?e*(n-=2.25/t)*n+.9375:e*(n-=2.625/t)*n+.984375}void 0!==n.easing&&(n.easing.jswing=n.easing.swing);var t=Math.pow,u=Math.sqrt,r=Math.sin,i=Math.cos,a=Math.PI,c=1.70158,o=1.525*c,s=2*a/3,f=2*a/4.5;n.extend(n.easing,{def:"easeOutQuad",swing:function(e){return n.easing[n.easing.def](e)},easeInQuad:function(n){return n*n},easeOutQuad:function(n){return 1-(1-n)*(1-n)},easeInOutQuad:function(n){return n<.5?2*n*n:1-t(-2*n+2,2)/2},easeInCubic:function(n){return n*n*n},easeOutCubic:function(n){return 1-t(1-n,3)},easeInOutCubic:function(n){return n<.5?4*n*n*n:1-t(-2*n+2,3)/2},easeInQuart:function(n){return n*n*n*n},easeOutQuart:function(n){return 1-t(1-n,4)},easeInOutQuart:function(n){return n<.5?8*n*n*n*n:1-t(-2*n+2,4)/2},easeInQuint:function(n){return n*n*n*n*n},easeOutQuint:function(n){return 1-t(1-n,5)},easeInOutQuint:function(n){return n<.5?16*n*n*n*n*n:1-t(-2*n+2,5)/2},easeInSine:function(n){return 1-i(n*a/2)},easeOutSine:function(n){return r(n*a/2)},easeInOutSine:function(n){return-(i(a*n)-1)/2},easeInExpo:function(n){return 0===n?0:t(2,10*n-10)},easeOutExpo:function(n){return 1===n?1:1-t(2,-10*n)},easeInOutExpo:function(n){return 0===n?0:1===n?1:n<.5?t(2,20*n-10)/2:(2-t(2,-20*n+10))/2},easeInCirc:function(n){return 1-u(1-t(n,2))},easeOutCirc:function(n){return u(1-t(n-1,2))},easeInOutCirc:function(n){return n<.5?(1-u(1-t(2*n,2)))/2:(u(1-t(-2*n+2,2))+1)/2},easeInElastic:function(n){return 0===n?0:1===n?1:-t(2,10*n-10)*r((10*n-10.75)*s)},easeOutElastic:function(n){return 0===n?0:1===n?1:t(2,-10*n)*r((10*n-.75)*s)+1},easeInOutElastic:function(n){return 0===n?0:1===n?1:n<.5?-(t(2,20*n-10)*r((20*n-11.125)*f))/2:t(2,-20*n+10)*r((20*n-11.125)*f)/2+1},easeInBack:function(n){return(c+1)*n*n*n-c*n*n},easeOutBack:function(n){return 1+(c+1)*t(n-1,3)+c*t(n-1,2)},easeInOutBack:function(n){return n<.5?t(2*n,2)*(7.189819*n-o)/2:(t(2*n-2,2)*((o+1)*(2*n-2)+o)+2)/2},easeInBounce:function(n){return 1-e(1-n)},easeOutBounce:e,easeInOutBounce:function(n){return n<.5?(1-e(1-2*n))/2:(1+e(2*n-1))/2}})}); 2 | -------------------------------------------------------------------------------- /project/js/jquery.counterup.min.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * jquery.counterup.js 1.0 3 | * 4 | * Copyright 2013, Benjamin Intal http://gambit.ph @bfintal 5 | * Released under the GPL v2 License 6 | * 7 | * Date: Nov 26, 2013 8 | */(function(e){"use strict";e.fn.counterUp=function(t){var n=e.extend({time:400,delay:10},t);return this.each(function(){var t=e(this),r=n,i=function(){var e=[],n=r.time/r.delay,i=t.text(),s=/[0-9]+,[0-9]+/.test(i);i=i.replace(/,/g,"");var o=/^[0-9]+$/.test(i),u=/^[0-9]+\.[0-9]+$/.test(i),a=u?(i.split(".")[1]||[]).length:0;for(var f=n;f>=1;f--){var l=parseInt(i/n*f);u&&(l=parseFloat(i/n*f).toFixed(a));if(s)while(/(\d+)(\d{3})/.test(l.toString()))l=l.toString().replace(/(\d+)(\d{3})/,"$1,$2");e.unshift(l)}t.data("counterup-nums",e);t.text("0");var c=function(){t.text(t.data("counterup-nums").shift());if(t.data("counterup-nums").length)setTimeout(t.data("counterup-func"),r.delay);else{delete t.data("counterup-nums");t.data("counterup-nums",null);t.data("counterup-func",null)}};t.data("counterup-func",c);setTimeout(t.data("counterup-func"),r.delay)};t.waypoint(i,{offset:"100%",triggerOnce:!0})})}})(jQuery); -------------------------------------------------------------------------------- /project/js/jquery.nice-select.min.js: -------------------------------------------------------------------------------- 1 | /* jQuery Nice Select - v1.0 2 | https://github.com/hernansartorio/jquery-nice-select 3 | Made by Hernán Sartorio */ 4 | !function(e){e.fn.niceSelect=function(t){function s(t){t.after(e("
").addClass("nice-select").addClass(t.attr("class")||"").addClass(t.attr("disabled")?"disabled":"").attr("tabindex",t.attr("disabled")?null:"0").html(''));var s=t.next(),n=t.find("option"),i=t.find("option:selected");s.find(".current").html(i.data("display")||i.text()),n.each(function(t){var n=e(this),i=n.data("display");s.find("ul").append(e("
  • ").attr("data-value",n.val()).attr("data-display",i||null).addClass("option"+(n.is(":selected")?" selected":"")+(n.is(":disabled")?" disabled":"")).html(n.text()))})}if("string"==typeof t)return"update"==t?this.each(function(){var t=e(this),n=e(this).next(".nice-select"),i=n.hasClass("open");n.length&&(n.remove(),s(t),i&&t.next().trigger("click"))}):"destroy"==t?(this.each(function(){var t=e(this),s=e(this).next(".nice-select");s.length&&(s.remove(),t.css("display",""))}),0==e(".nice-select").length&&e(document).off(".nice_select")):console.log('Method "'+t+'" does not exist.'),this;this.hide(),this.each(function(){var t=e(this);t.next().hasClass("nice-select")||s(t)}),e(document).off(".nice_select"),e(document).on("click.nice_select",".nice-select",function(t){var s=e(this);e(".nice-select").not(s).removeClass("open"),s.toggleClass("open"),s.hasClass("open")?(s.find(".option"),s.find(".focus").removeClass("focus"),s.find(".selected").addClass("focus")):s.focus()}),e(document).on("click.nice_select",function(t){0===e(t.target).closest(".nice-select").length&&e(".nice-select").removeClass("open").find(".option")}),e(document).on("click.nice_select",".nice-select .option:not(.disabled)",function(t){var s=e(this),n=s.closest(".nice-select");n.find(".selected").removeClass("selected"),s.addClass("selected");var i=s.data("display")||s.text();n.find(".current").text(i),n.prev("select").val(s.data("value")).trigger("change")}),e(document).on("keydown.nice_select",".nice-select",function(t){var s=e(this),n=e(s.find(".focus")||s.find(".list .option.selected"));if(32==t.keyCode||13==t.keyCode)return s.hasClass("open")?n.trigger("click"):s.trigger("click"),!1;if(40==t.keyCode){if(s.hasClass("open")){var i=n.nextAll(".option:not(.disabled)").first();i.length>0&&(s.find(".focus").removeClass("focus"),i.addClass("focus"))}else s.trigger("click");return!1}if(38==t.keyCode){if(s.hasClass("open")){var l=n.prevAll(".option:not(.disabled)").first();l.length>0&&(s.find(".focus").removeClass("focus"),l.addClass("focus"))}else s.trigger("click");return!1}if(27==t.keyCode)s.hasClass("open")&&s.trigger("click");else if(9==t.keyCode&&s.hasClass("open"))return!1});var n=document.createElement("a").style;return n.cssText="pointer-events:auto","auto"!==n.pointerEvents&&e("html").addClass("no-csspointerevents"),this}}(jQuery); -------------------------------------------------------------------------------- /project/js/justified.min.js: -------------------------------------------------------------------------------- 1 | function justifiedGrid(i){function e(i){return i.width()>=i.height()?"l":"p"}function n(i){i.each(function(i){$(this).css("padding",o+"px"),$(this).attr("data-index",i),$(this).addClass("hgrid-item loaded"),$(this).removeClass("resized")}),i.each(function(){$(this).css("width",$(this).find("img").width()),$(this).css("height",$(this).find("img").height()),$(this).addClass("resized")}),orientations=new Array,i.each(function(){orientations.push(e($(this)))})}function t(){$(window).width()>=960&&(max_line_score=8),$(window).width()>=660&&$(window).width()<=960&&(max_line_score=6),$(window).width()<=660&&(max_line_score=4);var i=0,e=orientations.length;lines=new Array;var n=new Array;line_score=new Array,orientations.forEach(function(t,s){"l"==t?i+2<=max_line_score?s!=e-1?(i+=2,n.push($(".hgrid-item[data-index="+s+"]"))):(i+=2,line_score.push(i),n.push($(".hgrid-item[data-index="+s+"]")),lines.push(n)):s!=e-1?(line_score.push(i),i=2,lines.push(n),n=new Array,n.push($(".hgrid-item[data-index="+s+"]"))):(line_score.push(i),i=2,line_score.push(i),lines.push(n),n=new Array,n.push($(".hgrid-item[data-index="+s+"]")),lines.push(n)):i+1<=max_line_score?s!=e-1?(i+=1,n.push($(".hgrid-item[data-index="+s+"]"))):(i+=1,line_score.push(i),n.push($(".hgrid-item[data-index="+s+"]")),lines.push(n)):s!=e-1?(line_score.push(i),i=1,lines.push(n),n=new Array,n.push($(".hgrid-item[data-index="+s+"]"))):(line_score.push(i),i=1,line_score.push(i),lines.push(n),n=new Array,n.push($(".hgrid-item[data-index="+s+"]")),lines.push(n))})}function s(){lines.forEach(function(i,e){if(line_score[e]>=max_line_score-1){i.length;$theContainer=h;var n=$theContainer.width()-2,t=0,s=[],r=[],a=[],o=0;i.forEach(function(i,e){var n=i.width(),t=i.height();s.push(n),r.push(t),a.push(n/t),o+=1});var d=[],u=0;for(f=0;o-1>=f;f++){for(j=0;j<=o-1;j++)u+=a[j]/a[f];var c=(n-(o-1)*t)/u;d.push(c),u=0}var l=d[0]/a[0],f=0;i.forEach(function(i,e){i.css({height:l,width:d[f]}),i.animate({opacity:1},500),f+=1})}else{i.length;if($theContainer=h,line_score[e]<=max_line_score/2)var n=$theContainer.width()/2-2;else var n=$theContainer.width()-$theContainer.width()/3-2;var t=0,s=[],r=[],a=[],o=0;i.forEach(function(i,e){var n=i.width(),t=i.height();s.push(n),r.push(t),a.push(n/t),o+=1});var d=[],u=0;for(f=0;o-1>=f;f++){for(j=0;j<=o-1;j++)u+=a[j]/a[f];var c=(n-(o-1)*t)/u;d.push(c),u=0}var l=d[0]/a[0],f=0;i.forEach(function(i,e){i.css({height:l,width:d[f]}),i.animate({opacity:1},500),f+=1})}})}var h=$(i.gridContainer),r=$(i.gridItems),a=i.enableImagesLoaded,o=i.gutter;this.reInitGrid=function(){r.each(function(){$(this).attr("style","")}),n(r),t(),s()},this.initGrid=function(){var i=this;if(a)h.imagesLoaded(function(){n(r),t(),s()});else{var e=$("#div").find("img, iframe"),o=e.length,d=0;e.on("load",function(){d++,d==o&&(n(r),t(),s())}),i.reInitGrid()}$(window).on("resize",function(){i.reInitGrid()})}} -------------------------------------------------------------------------------- /project/js/mail-script.js: -------------------------------------------------------------------------------- 1 | // ------- Mail Send ajax 2 | 3 | $(document).ready(function() { 4 | var form = $('#myForm'); // contact form 5 | var submit = $('.submit-btn'); // submit button 6 | var alert = $('.alert-msg'); // alert div for show alert message 7 | 8 | // form submit event 9 | form.on('submit', function(e) { 10 | e.preventDefault(); // prevent default form submit 11 | 12 | $.ajax({ 13 | url: 'mail.php', // form action url 14 | type: 'POST', // form submit method get/post 15 | dataType: 'html', // request type html/json/xml 16 | data: form.serialize(), // serialize form data 17 | beforeSend: function() { 18 | alert.fadeOut(); 19 | submit.html('Sending....'); // change submit button text 20 | }, 21 | success: function(data) { 22 | alert.html(data).fadeIn(); // fade in response data 23 | form.trigger('reset'); // reset form 24 | submit.attr("style", "display: none !important");; // reset submit button text 25 | }, 26 | error: function(e) { 27 | console.log(e) 28 | } 29 | }); 30 | }); 31 | }); -------------------------------------------------------------------------------- /project/js2/custom.js: -------------------------------------------------------------------------------- 1 | $(function() { 2 | "use strict"; 3 | 4 | $('#nav').singlePageNav(); 5 | 6 | 7 | }); -------------------------------------------------------------------------------- /project/lab.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /project/labtech.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /project/login_submit.php: -------------------------------------------------------------------------------- 1 | 17 | 18 | 19 | Please enter correct E-mail id and Password"; 23 | header('location: failed.php'); 24 | } 25 | else { 26 | $row = mysqli_fetch_array($result); 27 | 28 | $_SESSION['email'] = $row['EMAIL']; 29 | $_SESSION['user_id'] = $row['ID']; 30 | $_SESSION['name'] = $row['NAME']; 31 | //echo ''; 32 | 33 | $email = $_SESSION['email']; 34 | $value = rand(); 35 | $_SESSION['value'] = $value; 36 | $accesslog = "INSERT INTO ACCESSLOGS(ID, USER, LOGGEDIN) VALUES ('$value', '$email', NOW())"; 37 | $run_accesslog = mysqli_query($con, $accesslog) or die(mysqli_error($con)); 38 | 39 | 40 | header('location: success.php'); 41 | 42 | } 43 | 44 | ?> -------------------------------------------------------------------------------- /project/logout_script.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /project/officer.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /project/screenshots/failed.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dheerajnbhat/DBMS-Project/40085a1426432f72b85119f99a3c6f359ad49b6c/project/screenshots/failed.jpg -------------------------------------------------------------------------------- /project/screenshots/index.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dheerajnbhat/DBMS-Project/40085a1426432f72b85119f99a3c6f359ad49b6c/project/screenshots/index.jpg -------------------------------------------------------------------------------- /project/screenshots/success.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dheerajnbhat/DBMS-Project/40085a1426432f72b85119f99a3c6f359ad49b6c/project/screenshots/success.jpg -------------------------------------------------------------------------------- /project/scss/bootstrap.scss: -------------------------------------------------------------------------------- 1 | /*! 2 | * Bootstrap v4.0.0-beta (https://getbootstrap.com) 3 | * Copyright 2011-2017 The Bootstrap Authors 4 | * Copyright 2011-2017 Twitter, Inc. 5 | * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) 6 | */ 7 | 8 | @import "bootstrap/functions"; 9 | @import "bootstrap/variables"; 10 | @import "bootstrap/mixins"; 11 | @import "bootstrap/print"; 12 | @import "bootstrap/reboot"; 13 | @import "bootstrap/type"; 14 | @import "bootstrap/images"; 15 | @import "bootstrap/code"; 16 | @import "bootstrap/grid"; 17 | @import "bootstrap/tables"; 18 | @import "bootstrap/forms"; 19 | @import "bootstrap/buttons"; 20 | @import "bootstrap/transitions"; 21 | @import "bootstrap/dropdown"; 22 | @import "bootstrap/button-group"; 23 | @import "bootstrap/input-group"; 24 | @import "bootstrap/custom-forms"; 25 | @import "bootstrap/nav"; 26 | @import "bootstrap/navbar"; 27 | @import "bootstrap/card"; 28 | @import "bootstrap/breadcrumb"; 29 | @import "bootstrap/pagination"; 30 | @import "bootstrap/badge"; 31 | @import "bootstrap/jumbotron"; 32 | @import "bootstrap/alert"; 33 | @import "bootstrap/progress"; 34 | @import "bootstrap/media"; 35 | @import "bootstrap/list-group"; 36 | @import "bootstrap/close"; 37 | @import "bootstrap/modal"; 38 | @import "bootstrap/tooltip"; 39 | @import "bootstrap/popover"; 40 | @import "bootstrap/carousel"; 41 | @import "bootstrap/utilities"; 42 | -------------------------------------------------------------------------------- /project/scss/bootstrap/_alert.scss: -------------------------------------------------------------------------------- 1 | // 2 | // Base styles 3 | // 4 | 5 | .alert { 6 | position: relative; 7 | padding: $alert-padding-y $alert-padding-x; 8 | margin-bottom: $alert-margin-bottom; 9 | border: $alert-border-width solid transparent; 10 | @include border-radius($alert-border-radius); 11 | } 12 | 13 | // Headings for larger alerts 14 | .alert-heading { 15 | // Specified to prevent conflicts of changing $headings-color 16 | color: inherit; 17 | } 18 | 19 | // Provide class for links that match alerts 20 | .alert-link { 21 | font-weight: $alert-link-font-weight; 22 | } 23 | 24 | 25 | // Dismissible alerts 26 | // 27 | // Expand the right padding and account for the close button's positioning. 28 | 29 | .alert-dismissible { 30 | padding-right: ($close-font-size + $alert-padding-x * 2); 31 | 32 | // Adjust close link position 33 | .close { 34 | position: absolute; 35 | top: 0; 36 | right: 0; 37 | padding: $alert-padding-y $alert-padding-x; 38 | color: inherit; 39 | } 40 | } 41 | 42 | 43 | // Alternate styles 44 | // 45 | // Generate contextual modifier classes for colorizing the alert. 46 | 47 | @each $color, $value in $theme-colors { 48 | .alert-#{$color} { 49 | @include alert-variant(theme-color-level($color, $alert-bg-level), theme-color-level($color, $alert-border-level), theme-color-level($color, $alert-color-level)); 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /project/scss/bootstrap/_badge.scss: -------------------------------------------------------------------------------- 1 | // Base class 2 | // 3 | // Requires one of the contextual, color modifier classes for `color` and 4 | // `background-color`. 5 | 6 | .badge { 7 | display: inline-block; 8 | padding: $badge-padding-y $badge-padding-x; 9 | font-size: $badge-font-size; 10 | font-weight: $badge-font-weight; 11 | line-height: 1; 12 | text-align: center; 13 | white-space: nowrap; 14 | vertical-align: baseline; 15 | @include border-radius($badge-border-radius); 16 | 17 | // Empty badges collapse automatically 18 | &:empty { 19 | display: none; 20 | } 21 | } 22 | 23 | // Quick fix for badges in buttons 24 | .btn .badge { 25 | position: relative; 26 | top: -1px; 27 | } 28 | 29 | // Pill badges 30 | // 31 | // Make them extra rounded with a modifier to replace v3's badges. 32 | 33 | .badge-pill { 34 | padding-right: $badge-pill-padding-x; 35 | padding-left: $badge-pill-padding-x; 36 | @include border-radius($badge-pill-border-radius); 37 | } 38 | 39 | // Colors 40 | // 41 | // Contextual variations (linked badges get darker on :hover). 42 | 43 | @each $color, $value in $theme-colors { 44 | .badge-#{$color} { 45 | @include badge-variant($value); 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /project/scss/bootstrap/_breadcrumb.scss: -------------------------------------------------------------------------------- 1 | .breadcrumb { 2 | display: flex; 3 | flex-wrap: wrap; 4 | padding: $breadcrumb-padding-y $breadcrumb-padding-x; 5 | margin-bottom: $breadcrumb-margin-bottom; 6 | list-style: none; 7 | background-color: $breadcrumb-bg; 8 | @include border-radius($border-radius); 9 | } 10 | 11 | .breadcrumb-item { 12 | // The separator between breadcrumbs (by default, a forward-slash: "/") 13 | + .breadcrumb-item::before { 14 | display: inline-block; // Suppress underlining of the separator in modern browsers 15 | padding-right: $breadcrumb-item-padding; 16 | padding-left: $breadcrumb-item-padding; 17 | color: $breadcrumb-divider-color; 18 | content: "#{$breadcrumb-divider}"; 19 | } 20 | 21 | // IE9-11 hack to properly handle hyperlink underlines for breadcrumbs built 22 | // without `