01-27-2015, 06:05 AM
Pages: 1 2
01-28-2015, 06:16 AM
Dont you need to Enter a codecanyon username and purchase code for this?.
01-28-2015, 11:51 AM
it Nulled or Purchase....
01-29-2015, 11:16 PM
Hello any mediafire download link or zippyshare ??
01-30-2015, 04:38 AM
need codecanyon username and purchase code
04-26-2015, 01:40 PM
need purchase code for this > ?
04-26-2015, 06:43 PM
(01-29-2015 11:16 PM)maurya Wrote: [ -> ]Hello any mediafire download link or zippyshare ??
Zippy:
codecanyon-669539-vidplanet-premium-video-portal-cms-v4.1.zip
04-30-2015, 04:51 PM
to get it working just replace the install.php code from application/controllers/install.php with this:
Code:
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
* @author : Joyonto Roy
* 30th July, 2014
* Creative Item
* www.creativeitem.com
* http://codecanyon.net/user/joyontaroy
*/
class Install extends CI_Controller {
function __construct()
{
parent::__construct();
$this->load->helper('url');
$this->load->helper('file');
// Cache control
$this->output->set_header('Last-Modified: ' . gmdate("D, d M Y H:i:s") . ' GMT');
$this->output->set_header('Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0');
$this->output->set_header('Pragma: no-cache');
$this->output->set_header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
}
function index()
{
$this->load->view('install/index');
}
// -----------------------------------------------------------------------------------
/*
* Install the script here
*/
function do_install()
{
$db_verify = $this->check_db_connection();
if($db_verify == true)
{
// Replace the database settings
$data = read_file('./application/config/database.php');
$data = str_replace('db_name', $this->input->post('db_name'), $data);
$data = str_replace('db_uname', $this->input->post('db_uname'), $data);
$data = str_replace('db_password', $this->input->post('db_password'), $data);
$data = str_replace('db_hname', $this->input->post('db_hname'), $data);
write_file('./application/config/database.php', $data);
// Replace new default routing controller
$data2 = read_file('./application/config/routes.php');
$data2 = str_replace('install','video',$data2);
write_file('./application/config/routes.php', $data2);
// Run the installer sql schema
$this->load->database();
$schema = read_file('./uploads/install.sql');
$query = rtrim( trim($schema), "\n;");
$query_list = explode(";", $query);
foreach($query_list as $query)
$this->db->query($query);
// Replace the admin login credentials
$this->db->where('admin_id' , 1);
$this->db->update('admin' , array('email' => $this->input->post('email'),
'password' => sha1($this->input->post('password'))));
// Replace the system name
$this->db->where('type', 'system_name');
$this->db->update('settings', array(
'description' => $this->input->post('system_name')
));
// Replace the system title
$this->db->where('type', 'system_title');
$this->db->update('settings', array(
'description' => $this->input->post('system_name')
));
// Save the buyer username
$this->db->where('type', 'buyer');
$this->db->update('settings', array(
'description' => $this->input->post('buyer')
));
// Save the buyer purchase code
$this->db->where('type', 'purchase_code');
$this->db->update('settings', array(
'description' => $this->input->post('purchase_code')
));
// Redirect to login page after completing installation
$this->session->set_flashdata('installation_result' , 'success');
redirect(base_url() , 'refresh');
}
else
{
$this->session->set_flashdata('installation_result' , 'failed');
redirect(base_url().'index.php?install' , 'refresh');
}
}
// -------------------------------------------------------------------------------------------------
/*
* Database validation check from user input settings
*/
function check_db_connection()
{
$link = @mysql_connect($this->input->post('db_hname'),
$this->input->post('db_uname'),
$this->input->post('db_password'));
if(!$link)
{
@mysql_close($link);
return false;
}
$db_selected = mysql_select_db($this->input->post('db_name'), $link);
if (!$db_selected)
{
@mysql_close($link);
return false;
}
@mysql_close($link);
return true;
}
}
/* End of file install.php */
/* Location: ./system/application/controllers/install.php */
05-10-2015, 10:20 PM
Can Install in Local only but can not use in Online. after install online can not login to admin page ??
05-11-2015, 12:33 AM
Nice Post Thanks
Pages: 1 2