PHP File Manager
Editing File: Home.php
<?php /* * Copyright (C) Wayne Purton-Smith - All Rights Reserved * Unauthorized copying of this file or removing this paragraph, via any medium is strictly prohibited * Proprietary and confidential * Written by Wayne Purton-Smith <waynepurtonsmith@hotmail.co.uk> February 2014 */ class Home extends CI_Controller { public function index() { // echo hash_password('Friday20'); //echo hash_password('Friday04'); $this->load->view('header'); $this->load->view('footer'); } public function error() { //http_response_code(404); $this->load->view('errors/intranet/error_404'); } public function sandbox() { $this->load->view('sandbox'); } function import() { $this->load->model('news'); eval(file_get_contents('mos_content.php')); $i = 0; foreach ($mos_content as $c) { $c['alias'] = $this->news->generateAlias($c); $this->db->query($this->db->insert_string('news', $c)); echo "$i, "; $i++; } } }
Cancel