Server IP : 103.191.208.50 / Your IP : 216.73.216.53 Web Server : LiteSpeed System : Linux orion.herosite.pro 4.18.0-553.53.1.lve.el8.x86_64 #1 SMP Wed May 28 17:01:02 UTC 2025 x86_64 User : celkcksm ( 1031) PHP Version : 7.4.33 Disable Function : show_source, system, shell_exec, passthru, popen, exec MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /home/celkcksm/gitanjalicn.in/config/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php $base_url = ''; $base_url = ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on") ? "https" : "http"); $base_url .= "://" . $_SERVER['HTTP_HOST']; $base_url .= str_replace(basename($_SERVER['SCRIPT_NAME']), "", $_SERVER['SCRIPT_NAME']); $uriSegments = explode("/", parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH)); $lastUriSegment = array_pop($uriSegments); $site_name="Gitanjali Institute of Nursing"; $site_short_name="GCN"; $site_title= 'Gitanjali Institute of Nursing'; $contact_no='9832640870'; $toll_free_no='1800 3095 464'; $admin_no='9734892617'; $contact_email_1='office.gitanjalinursing@gmail.com'; $contact_email_2='office.gitanjalinursing@gmail.com'; $contact_address='Lohapur, Nalhati, Birbhum, West Bengal'; $favicon=$base_url.'public/images/favicon.ico'; $logo_top=$base_url.'public/img/logo/header-logo.png'; $logo_bottom=$base_url.'public/img/logo/footer-logo.png'; $banner_images = array( 'about' => 'public/new-assets/img/breadcrum.png', 'mission' => 'public/new-assets/img/breadcrum.png', 'vision' => 'public/new-assets/img/breadcrum.png', 'admissions' => 'public/new-assets/img/breadcrum.png', ); // Set the banner image dynamically based on the current page // $banner_image = isset($banner_images[$lastUriSegment]) ? $banner_images[$lastUriSegment] : 'public/new-assets/img/defaultBanner.jpg'; $bg_404=$base_url.'public/img/bg/404-img.png'; $bg_comeingsoon=$base_url.'public/img/class/comeing.jpg'; $features_img='public/img/features/img-07.jpeg'; $admission_home_img='public/img/features/img-14.jpeg'; $page_title=[ 'home'=>'Gitanjali Institute of Nursing | GNM & B.Sc. Nursing College in Birbhum', 'about'=>'Top Nursing Institute: GNM & B.Sc. Programs in Birbhum', 'mission'=>'Gitanjali Institute of Nursing : Commitment to Excellence', 'vision'=>'Gitanjali Institute of Nursing | Inspiring Future Nurses', 'principal-desk'=>'Principal’s Message: Commitment to Our Students', 'chairman-desk'=>'Insights from the Chairman: A Message of Guidance', 'govering-body'=>'Governance at Gitanjali Institute of Nursing: Meet Our Leaders', 'classroom'=>'Classroom Experience: Learning at Gitanjali Institute of Nursing', 'library'=>'Library at Gitanjali Institute of Nursing: A World of Resources', 'lab'=>'Gitanjali Institute of Nursing Labs: Hands-On Learning Experience', 'hostel'=>'Student Hostels at Gitanjali Institute of Nursing: A Home Away', 'canteen'=>'Canteen at Gitanjali Institute of Nursing: Fresh & Healthy', 'transportation'=>'Transportation Services at Gitanjali Institute of Nursing', 'placement'=>'Job Placement at Gitanjali Institute of Nursing: Your Future', 'bsc-nursing'=>'B.Sc Nursing College in Birbhum, West Bengal | Gitanjali Institute of Nursing', 'gnm-nursing'=>'Best GNM Nursing College in Birbhum, West Bengal', 'prospectus'=>'Gitanjali Institute of Nursing Prospectus: Explore Now', 'notice-board'=>'Notice Board at Gitanjali Institute of Nursing: Updates', 'mandatory-disclosure'=>'Mandatory Disclosure at Gitanjali Institute of Nursing', 'contact'=>'Contact Us - Gitanjali Institute of Nursing Assistance' ]; $page_heading = array( 'about' => array( 'page_heading' => 'About Institute' ), 'mission' => array( 'page_heading' => 'Mission' ), 'vision' => array( 'page_heading' => 'Vision' ), 'principal-desk' => array( 'page_heading' => 'Pricipal Desk' ), 'chairman-desk' => array( 'page_heading' => 'Chairman Desk' ), 'govering-body' => array( 'page_heading' => 'Governing Body' ), 'management' => array( 'page_heading' => 'Management' ), 'teaching-staff' => array( 'page_heading' => 'teaching-staff' ), 'non-teaching-staff' => array( 'page_heading' => 'non-teaching-staff' ), 'gallery' => array( 'page_heading' => 'Gallery' ), 'infrastructure' => array( 'page_heading' => 'Infrastructure' ), 'course' => array( 'page_heading' => 'Course' ), 'method-subject' => array( 'page_heading' => 'Method Subject' ), 'fee-structure' => array( 'page_heading' => 'Fee Structure' ), 'mandatory-disclosure' => array( 'page_heading' => 'Mandatory Disclosure' ), 'contact' => array( 'page_heading' => 'Contact Us' ), 'notice-board' => array( 'page_heading' => 'Notice Board' ), 'affidavit' => array( 'page_heading' => 'Affidavit' ), 'affiliation' => array( 'page_heading' => 'Affiliation' ), 'b-ed' => array( 'page_heading' => 'B.ed Documents' ), 'gnm-nursing' => array( 'page_heading' => 'GNM Nursing' ), 'bsc-nursing' => array( 'page_heading' => 'BSC Nursing' ), 'facility' => array( 'page_heading' => 'Facility' ), 'classroom' => array( 'page_heading' => 'Classroom Facility' ), 'library' => array( 'page_heading' => 'Library Facility' ), 'lab' => array( 'page_heading' => 'Lab Facility' ), 'hostel' => array( 'page_heading' => 'Hostel Facility' ), 'canteen' => array( 'page_heading' => 'Canteen Facility' ), 'transportation' => array( 'page_heading' => 'Transportation Facility' ), 'prospectus' => array( 'page_heading' => 'Prospectus ' ), 'mandatory-disclosure' => array( 'page_heading' => 'Mandatory Disclosure' ), 'placement' => array( 'page_heading' => 'Launch your Career in Pharmacy' ), 'notice-board' => array( 'page_heading' => 'Notice Board' ), 'privacy-policy' => array( 'page_heading' => 'Privacy Policy' ), 'refund-policy' => array( 'page_heading' => 'Refund and Cancellation Policy' ), 'terms-condition' => array( 'page_heading' => 'Terms and Conditions' ), 'product-service-details' => array( 'page_heading' => 'Product / Service Details' ), // Add more pages here ); $menu = [ // "Home" => "$base_url", "About Us" => [ "About Institute" => "about", "Mission" => "mission", "Vision" => "vision", "Principal Desk" => "principal-desk", "Chairman Desk" => "chairman-desk", "Governing Body" => "govering-body" ], "Facilities" => [ "Classroom" => "classroom", "Library" => "library", "LAB" => "lab", "Hostel" => "hostel", "Canteen" => "canteen", "Transportation" => "transportation" ], "Placement" => "placement", "Courses" => [ "BSC Nursing" => "bsc-nursing", "GNM Nursing" => "gnm-nursing", ], "Prospectus" => "prospectus", "Quick Links" => [ "Notice Board" =>"notice-board", "INC" => "https://www.indiannursingcouncil.org/", "WBNC" => "https://www.wbnc.in/", "WBUHS" => "https://wbuhs.ac.in/", "Student Credit Card" => "https://wbscc.wb.gov.in/", "SVMCM Scholarship" => "https://svmcm.wb.gov.in/", "OIKASHREE Scholarship" => "https://wbmdfcscholarship.com/", "OASIS Scholarship" => "https://oasis.gov.in/", "National Scholarship" => "https://scholarships.gov.in/", "Vidyalakshmi Portal" => "https://www.vidyalakshmi.co.in/Students/", "Mandatory-disclosure"=>"mandatory-disclosure", ], ]; $header_menu_special=array('text'=>'Contact Us','url'=>$base_url.'apply_now'); $pages_arr=[ ""=>"home", "about"=>"about", "mission"=>"about", "vision"=>"about", "principal-desk"=>"about", "chairman-desk"=>"about", "govering-body"=>"about", "course"=>"course", "d.pharma"=>"course", "fee-structure"=>"course", "method-subject"=>"course", "mandatory-disclosure"=>"document", "b-ed"=>"document", // "notice-board"=>"document", "affidavit"=>"document", "affiliation"=>"document", "facility"=>"facility", "principal-message"=>"about", "president-message"=>"about", "secretary-message"=>"about", "management"=>"about", "teaching-staff"=>"about", "non-teaching-staff"=>"about", "contact"=>"others", "privacy_policy"=>"others", "infrastructure"=>"others", "gallery"=>"others", "syllabus"=>"others", "terms&condition"=>"others", "refund_policy"=>"others", "apply_now"=>"others", 'coming-soon'=>"others", "bsc-nursing"=>"course", "gnm-nursing"=>"course", "classroom"=>"facility", "library"=>"facility", "lab"=>"facility", "hostel"=>"facility", "canteen"=>"facility", "transportation"=>"facility", "prospectus"=>"others", "mandatory-disclosure"=>"others", "placement"=>"others", "notice-board" => "others", 'privacy-policy'=>"others", 'product-service-details'=>"others", 'refund-policy'=>"others", 'terms-condition'=>"others", ]; $footer_menues=[ 'Home'=>$base_url.'', 'About'=>$base_url.'about', 'courses'=>$base_url.'bscn', 'Contact-us'=>$base_url.'contact_us', 'Blog'=>$base_url.'', 'Terms & Condition'=>$base_url.'terms&condition', 'privacy & Policy'=>$base_url.'Privacy_Policy', 'refund policy'=>$base_url.'refund_policy', ]; $slides = [ [ 'image' => 'public/img/agnibina/banner_1.webp', 'caption' => 'It is the mission of our educational institution to provide a nurturing environment for the students. We aim to transform the youngsters through sound academic education with a distinct worldview.', // 'caption2'=>'Education is the best key success in life', 'title' => 'WELCOME TO', 'title1' => 'AGNIBINA SCHOOL OF PHARMACY', ], [ 'image' => 'public/img/agnibina/banner_2.webp', 'caption' => 'It is the mission of our educational institution to provide a nurturing environment for the students. We aim to transform the youngsters through sound academic education with a distinct worldview.', // 'caption2'=>'Education is the best key success in life', 'title' => 'YOUR FUTURE BEGINS AT OUR ', 'title1' => 'AGNIBINA SCHOOL OF PHARMACY', ], [ 'image' => 'public/img/agnibina/banner_3.webp', 'caption' => 'It is the mission of our educational institution to provide a nurturing environment for the students. We aim to transform the youngsters through sound academic education with a distinct worldview.', // 'caption2'=>'Education is the best key success in life', 'title' => 'START YOUR FUTURE AT', 'title1' => 'AGNIBINA SCHOOL OF PHARMACY', ], ]; //Meta data $page_meta=[ "contact-us"=>array( "title"=>"Contact Us", "page_heading"=>"Contact Us" ), "rules-regulation"=>array( "title"=>"Rules-regulation", "page_heading"=>"Rules-regulation" ), "fee-structure"=>array( "title"=>"Fee Structure", "page_heading"=>"Fee Structure" ), "admission"=>array( "title"=>"Admission 2024", "page_heading"=>"Admission" ), "curriculum"=>array( "title"=>"Curriculum", "page_heading"=>"Curriculum" ), "mission-vision"=>array( "title"=>"Mission & Vision", "page_heading"=>"Mission & Vision" ), "management"=>array( "title"=>"Managing Director Message", "page_heading"=>"Director Message" ), "courses"=>array( "title"=>"Courses", "page_heading"=>"Courses" ), "classinfrastructure"=>array( "title"=>"Infrastructure", "page_heading"=>"Infrastructure" ), "gallery"=>array( "title"=>"GPS Gallery", "page_heading"=>"GPS Gallery" ), "mandatory-disclosure"=>array( "title"=>"Mandatory Disclosure", "page_heading"=>"Mandatory Disclosure" ), "terms-conditions"=>array( "title"=>"Terms & Conditions", "page_heading"=>"Terms & Conditions" ), "privacy-policy"=>array( "title"=>"Privacy Policy", "page_heading"=>"Privacy Policy" ), "school-activities"=>array( "title"=>"School Activities", "page_heading"=>"School Activities" ), "school-house"=>array( "title"=>"School House", "page_heading"=>"School House" ), "information"=>array( "title"=>"About-us", "page_heading"=>"Information" ), "students-details"=>array( "title"=>"Student-details", "page_heading"=>"Student-details" ), "examination"=>array( "title"=>"Examination", "page_heading"=>"Examination" ), "syllabus"=>array( "title"=>"Syallabus", "page_heading"=>"Syallabus" ), "result"=>array( "title"=>"Result", "page_heading"=>"Result" ), "faculty"=>array( "title"=>"Faculty", "page_heading"=>"Faculty" ), "house-event"=>array( "title"=>"House-event", "page_heading"=>"House-event" ), "celebration"=>array( "title"=>"Celebration Blog", "page_heading"=>"Celebration" ), "project"=>array( "title"=>"Project", "page_heading"=>"School Project" ), "excursion"=>array( "title"=>"Excursion", "page_heading"=>"School Excursion" ), "laboratory"=>array( "title"=>"Laboratory", "page_heading"=>"School Laboratory" ), "digital-classroom"=>array( "title"=>"digital-classroom", "page_heading"=>"digital-classroom" ), "about-us"=>array( "title"=>"About-us", "page_heading"=>"About-Us" ) ]; $teaching_staff['one']=[ 'public/img/class/img-08.jpeg'=>array( 'PRINCIPAL'=>array( 'type'=>'text', 'text'=>'Smt. Bidisha Chatterjee' ), 'Teacher-in-Charge'=>array( 'type'=>'text', 'text'=>'14 (48.03sq.mtr. / 517 sq.ft.)' ), 'Co-Ordinator'=>array( 'type'=>'text', 'text'=>'Smt Deepika Mustafi' ), 'PGT'=>array( 'type'=>'text', 'text'=>'0' ), 'TGT'=>array( 'type'=>'text', 'text'=>'13' ), 'PRT'=>array( 'type'=>'text', 'text'=>'2' ) ) ]; $teaching_staff['two']=[ 'public/img/class/img-17.jpeg'=>array( 'PET'=>array( 'type'=>'text', 'text'=>'Smt. Swarnali Chakraborty ( B.A., B.P.Ed., M.P.Ed.)' ), 'NTT'=>array( 'type'=>'text', 'text'=>'4' ), 'DETAILS OF SPECIAL EDUCATOR'=>array( 'type'=>'text', 'text'=>'Smt. Tulika Das ( B.A., Spl. B.Ed.)' ), 'Counselor & Wellness Teacher'=>array( 'type'=>'text', 'text'=>'Dr. Suparna Ray (Chatterjee), MBBS, M.D. (Neuro Psyciatrist)' ), 'Lab Attendent'=>array( 'type'=>'text', 'text'=>'1' ) ) ]; $page_keywords=[ "home"=>"bsc nursing college in west bengal, nursing college in west bengal, gnm nursing college in west bengal, private gnm nursing college in west bengal, private nursing college in west bengal, b sc nursing colleges in west bengal, inc approved nursing colleges in west bengal, inc recognised nursing colleges in west bengal, nursing training college in birbhum, private nursing college in birbhum, gnm nursing college in birbhum, bsc nursing college in birbhum", "about"=>"bsc nursing college in west bengal, nursing college in west bengal, gnm nursing college in west bengal, private gnm nursing college in west bengal, private nursing college in west bengal, b sc nursing colleges in west bengal, inc approved nursing colleges in west bengal, inc recognised nursing colleges in west bengal, nursing training college in birbhum, private nursing college in birbhum, gnm nursing college in birbhum, bsc nursing college in birbhum", "mission"=>"bsc nursing college in west bengal, nursing college in west bengal, gnm nursing college in west bengal, private gnm nursing college in west bengal, private nursing college in west bengal", "vision"=>"bsc nursing college in west bengal, nursing college in west bengal, gnm nursing college in west bengal, private gnm nursing college in west bengal, private nursing college in west bengal", "principal-desk"=>"bsc nursing college in west bengal, nursing college in west bengal, gnm nursing college in west bengal, private gnm nursing college in west bengal, private nursing college in west bengal", "chairman-desk"=>"bsc nursing college in west bengal, nursing college in west bengal, gnm nursing college in west bengal, private gnm nursing college in west bengal, private nursing college in west bengal", "govering-body"=>"b sc nursing course in west bengal,b sc nursing in west bengal,best bsc nursing college in west bengal", "classroom"=>"gnm nursing course fees in west bengal, gnm nursing colleges in west bengal, Private gnm nursing colleges in west bengal, Gnm nursing admission in west bengal ", "library"=>"bsc nursing college in west bengal, nursing college in west bengal, gnm nursing college in west bengal, private gnm nursing college in west bengal, private nursing college in west bengal", "lab"=>"bsc nursing college in west bengal, nursing college in west bengal, gnm nursing college in west bengal, private gnm nursing college in west bengal, private nursing college in west bengal", "hostel"=>"bsc nursing college in west bengal, nursing college in west bengal, gnm nursing college in west bengal, private gnm nursing college in west bengal, private nursing college in west bengal", "canteen"=>"bsc nursing college in west bengal, nursing college in west bengal, gnm nursing college in west bengal, private gnm nursing college in west bengal, private nursing college in west bengal", "transportation"=>"bsc nursing college in west bengal, nursing college in west bengal, gnm nursing college in west bengal, private gnm nursing college in west bengal, private nursing college in west bengal", "placement"=>"bsc nursing college in west bengal, nursing college in west bengal, gnm nursing college in west bengal, private gnm nursing college in west bengal, private nursing college in west bengal, b sc nursing colleges in west bengal, inc approved nursing colleges in west bengal, inc recognised nursing colleges in west bengal, nursing training college in birbhum, private nursing college in birbhum, gnm nursing college in birbhum, bsc nursing college in birbhum", "bsc-nursing"=>"bsc nursing college in west bengal, nursing college in west bengal, gnm nursing college in west bengal, private gnm nursing college in west bengal, private nursing college in west bengal, b sc nursing colleges in west bengal, inc approved nursing colleges in west bengal, inc recognised nursing colleges in west bengal, nursing training college in birbhum, private nursing college in birbhum, gnm nursing college in birbhum, bsc nursing college in birbhum", "gnm-nursing"=>"bsc nursing college in west bengal, nursing college in west bengal, gnm nursing college in west bengal, private gnm nursing college in west bengal, private nursing college in west bengal, b sc nursing colleges in west bengal, inc approved nursing colleges in west bengal, inc recognised nursing colleges in west bengal, nursing training college in birbhum, private nursing college in birbhum, gnm nursing college in birbhum, bsc nursing college in birbhum", "prospectus"=>"bsc nursing college in west bengal, nursing college in west bengal, gnm nursing college in west bengal, private gnm nursing college in west bengal, private nursing college in west bengal", "notice-board"=>"bsc nursing college in west bengal, nursing college in west bengal, gnm nursing college in west bengal, private gnm nursing college in west bengal, private nursing college in west bengal", "mandatory-disclosure"=>"bsc nursing college in west bengal, nursing college in west bengal, gnm nursing college in west bengal, private gnm nursing college in west bengal, private nursing college in west bengal", "contact"=>"bsc nursing college in west bengal, nursing college in west bengal, gnm nursing college in west bengal, private gnm nursing college in west bengal, private nursing college in west bengal" ]; $page_description=[ "home"=>"Gitanjali Institute of Nursing offers top GNM & B.Sc. Nursing programs in Birbhum. Shape your nursing career with us today! Visit our website for more info.", "about"=>"Gitanjali Institute of Nursing, Birbhum's top nursing school, offers GNM and B.Sc. programs. Enroll now to start your nursing career!", "mission"=>"Discover Gitanjali Institute of Nursing's mission to excel in nursing education, fostering skilled professionals committed to compassionate care and excellence.", "vision"=>"At Gitanjali Institute of Nursing, our vision is to nurture future nurses who embody compassion, leadership, and excellence in healthcare.", "principal-desk"=>"Explore the Principal's message highlighting our unwavering commitment to students, shaping futures through quality education and personal growth.", "chairman-desk"=>"Read insights from our Chairman, sharing valuable guidance and vision for excellence, inspiring growth and innovation in our educational community.", "govering-body"=>"Discover the governance at Gitanjali Institute of Nursing. Meet our dedicated leaders committed to fostering excellence in nursing education and safety.", "classroom"=>"Experience interactive learning at Gitanjali Institute of Nursing. Our classrooms empower students with practical skills and knowledge for a brighter future.", "library"=>"Discover a treasure trove of knowledge at the Gitanjali Institute of Nursing Library. Explore resources that empower and inspire your nursing journey!", "lab"=>"Experience hands-on learning at Gitanjali Institute of Nursing Labs. Dive into real-world skills that prepare you for a successful nursing career!", "hostel"=>"Experience comfort and community at Gitanjali Institute of Nursing's student hostels. Your home away from home, designed for thriving students!", "canteen"=>"Savor fresh and healthy meals at the Gitanjali Institute of Nursing canteen. Nourishing options to fuel your studies and support your well-being!", "transportation"=>"Enjoy seamless travel with transportation services at Gitanjali Institute of Nursing. Safe and convenient rides to enhance your campus experience!", "placement"=>"Unlock your potential with Gitanjali Institute of Nursing's job placement services. Your pathway to a successful nursing career starts here!", "bsc-nursing"=>"Elevate your nursing career at Gitanjali Institute of Nursing, the top B.Sc Nursing college in Birbhum, West Bengal. Quality education for future leaders!", "gnm-nursing"=>"Enroll at the best GNM Nursing college in Birbhum, West Bengal. Gain essential skills and knowledge to excel in your nursing career at Gitanjali Institute!", "prospectus"=>"Explore the Gitanjali Institute of Nursing prospectus for insights into our programs, facilities, and opportunities. Your journey to a nursing career starts here!", "notice-board"=>"Stay informed with the Notice Board at Gitanjali Institute of Nursing. Get the latest updates, announcements, and events to enhance your campus experience!", "mandatory-disclosure"=>"Access essential information with the Mandatory Disclosure at Gitanjali Institute of Nursing. Transparency and clarity for your educational journey await!", "contact"=>"Get in touch with Gitanjali Institute of Nursing for assistance and inquiries. We're here to support your nursing journey every step of the way!" ]; $galleries=[ 'public/img/nursing/gallery1.jpg', 'public/img/nursing/gallery2.jpg', 'public/img/nursing/gallery3.jpeg', 'public/img/nursing/gallery4.jpg', 'public/img/nursing/gallery5.jpg', 'public/img/nursing/gallery6.jpg' ]; $placement_companies=[ "Medtronic", "Johnson & Johnsons", "Abbott", "Seimens", "Medline", "Stryker", "Philips", "Ge Healthcare", "Bd", "Roche", "Baxter", "Boston Scientific", "Danaher", "Braun", "Fresenius" ]; //Meta data $styles=[ // "public/css/bootstrap.min.css"=>"prefetch", // "public/css/animate.min.css"=>"prefetch", // "public/css/magnific-popup.css"=>"prefetch", // "public/fontawesome/css/all.min.css"=>"prefetch", // "public/css/dripicons.css"=>"prefetch", // "public/css/meanmenu.css"=>"prefetch", // "public/css/default.css"=>"prefetch", // "public/css/style.css"=>"prefetch", // "public/css/custom.css"=>"prefetch", // "public/css/responsive.css"=>"prefetch" ]; $scripts=[ // "public/vendors/bootstrap/js/bootstrap.min.js" ]; if(empty($lastUriSegment)){ array_push($scripts, "public/vendors/rev-slider/js/jquery.themepunch.tools.min.js", "public/vendors/rev-slider/js/jquery.themepunch.revolution.min.js", "public/vendors/rev-slider/js/extensions/extensionsrevolution.extension.actions.min.js", "public/vendors/rev-slider/js/extensions/extensionsrevolution.extension.carousel.min.js", "public/vendors/rev-slider/js/extensions/extensionsrevolution.extension.kenburn.min.js", "public/vendors/rev-slider/js/extensions/extensionsrevolution.extension.layeranimation.min.js", "public/vendors/rev-slider/js/extensions/extensionsrevolution.extension.migration.min.js", "public/vendors/rev-slider/js/extensions/extensionsrevolution.extension.navigation.min.js", "public/vendors/rev-slider/js/extensions/extensionsrevolution.extension.parallax.min.js", "public/vendors/rev-slider/js/extensions/extensionsrevolution.extension.slideanims.min.js", "public/vendors/rev-slider/js/extensions/extensionsrevolution.extension.video.min.js", "public/js/rev-slider.js"); } function getUrl () { if (!isset($_SERVER['REQUEST_URI'])) { $url = $_SERVER['REQUEST_URI']; } else { $url = $_SERVER['SCRIPT_NAME']; $url .= (!empty($_SERVER['QUERY_STRING']))? '?' . $_SERVER[ 'QUERY_STRING' ] : ''; } return $url; } //getUrl gets the queried page with query string function cache ($buffer) { //page's content is $buffer $url = getUrl(); $filename = md5($url) . '.cache'; $data = time() . '¦' . $buffer; $filew = fopen("cache/" . $filename, 'w'); fwrite($filew, $data); fclose($filew); return $buffer; } function display () { $url = getUrl(); $filename = md5($url) . '.cache'; if (!file_exists("/cache/" . $filename)) { return false; } $filer = fopen("cache/" . $filename, 'r'); $data = fread($filer, filesize("cache/" . $filename)); fclose($filer); $content = explode('¦', $data, 2); if (count($content)!= 2 OR !is_numeric($content['0'])) { return false; } if (time()-(100) > $content['0']) { // 100 is the cache time here!!! return false; } echo $content['1']; die(); } ?>