T.ME/BIBIL_0DAY
CasperSecurity


Server : Apache/2
System : Linux server-15-235-50-60 5.15.0-164-generic #174-Ubuntu SMP Fri Nov 14 20:25:16 UTC 2025 x86_64
User : gositeme ( 1004)
PHP Version : 8.2.29
Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Directory :  /home/gositeme/domains/gositeme.com/public_html/quickqr/admin/panel/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/gositeme/domains/gositeme.com/public_html/quickqr/admin/panel/membership_plan_edit.php
<?php
require_once('../datatable-json/includes.php');

switch ($_GET['id']){
    case 'free':
        $info = json_decode(get_option('free_membership_plan'), true);
        $settings = $info['settings'];
        break;
    case 'trial':
        $info = json_decode(get_option('trial_membership_plan'), true);
        $settings = $info['settings'];
        break;
    default:
        $info = ORM::for_table($config['db']['pre'].'plans')
            ->where('id', $_GET['id'])
            ->find_one();
        $settings = json_decode($info['settings'],true);
        break;
}

?>

<header class="slidePanel-header overlay">
    <div class="overlay-panel overlay-background vertical-align">
        <div class="service-heading">
            <h2>Edit Plan</h2>
        </div>
        <div class="slidePanel-actions">
            <div class="btn-group-flat">
                <button type="button" class="btn btn-floating btn-warning btn-sm waves-effect waves-float waves-light margin-right-10" id="post_sidePanel_data"><i class="icon ion-android-done" aria-hidden="true"></i></button>
                <button type="button" class="btn btn-pure btn-inverse slidePanel-close icon ion-android-close font-size-20" aria-hidden="true"></button>
            </div>
        </div>
    </div>
</header>
<div class="slidePanel-inner">
    <div class="panel-body">
        <!-- /.row -->
        <div class="row">
            <div class="col-sm-12">

                <div class="white-box">
                    <div id="post_error"></div>
                    <form name="form2"  class="form" method="post" data-ajax-action="editMembershipPlan" id="sidePanel_form">
                        <div class="form-body">
                            <input type="hidden" name="id" value="<?php echo $_GET['id']?>">

                                <div class="row form-group">
                                    <label class="col-sm-4 control-label">Activate</label>
                                    <div class="col-sm-8">
                                        <label class="css-input switch switch-sm switch-success">
                                            <input  name="active" type="checkbox" value="1" <?php if($info['status'] == '1') echo "checked"; ?> /><span></span>
                                        </label>
                                    </div>
                                </div>
                                <div class="row form-group">
                                    <label class="col-sm-4 control-label">Plan Name</label>
                                    <div class="col-sm-8">
                                        <input name="name" type="Text" class="form-control" placeholder="Plan Name" value="<?php echo ($info['name']);?>">
                                    </div>
                                </div>
                                <div class="row form-group hidden">
                                    <label class="col-sm-4 control-label">Plan Badge</label>
                                    <div class="col-sm-8">
                                        <input name="badge" type="text" class="form-control" placeholder="Plan Badge"  value="<?php echo stripslashes($info['badge']);?>">
                                        <p class="help-block">Paste Image Url, This badge will display in user profile after username.</p>
                                    </div>
                                </div>
                                <?php if($_GET['id'] != 'free' && $_GET['id'] != 'trial'){ ?>
                                    <div class="row form-group">
                                        <label class="col-sm-4 control-label">Monthly Price</label>
                                        <div class="col-sm-8">
                                            <input name="monthly_price" type="number" class="form-control" id="monthly_price" placeholder="Monthly Price"  value="<?php echo stripslashes($info['monthly_price']);?>">
                                            <p class="help-block">Set 0 to disable it.</p>
                                        </div>
                                    </div>
                                    <div class="row form-group">
                                        <label class="col-sm-4 control-label">Annual Price</label>
                                        <div class="col-sm-8">
                                            <input name="annual_price" type="number" class="form-control" id="annual_price" placeholder="Annual Price"  value="<?php echo stripslashes($info['annual_price']);?>">
                                            <p class="help-block">Set 0 to disable it.</p>
                                        </div>
                                    </div>
                                    <div class="row form-group">
                                        <label class="col-sm-4 control-label">Lifetime Price</label>
                                        <div class="col-sm-8">
                                            <input name="lifetime_price" type="number" class="form-control" id="lifetime_price" placeholder="Lifetime Price"  value="<?php echo stripslashes($info['lifetime_price']);?>">
                                            <p class="help-block">Set 0 to disable it.</p>
                                        </div>
                                    </div>
                                    <div class="row form-group">
                                        <label class="col-sm-4 control-label">Recommended</label>
                                        <div class="col-sm-8">
                                            <label class="css-input switch switch-sm switch-success">
                                                <input  name="recommended" type="checkbox" value="yes" <?php if($info['recommended'] == 'yes') echo "checked"; ?> /><span></span>
                                            </label>
                                        </div>
                                    </div>
                                <?php }
                                if($_GET['id'] == 'trial'){ ?>
                                    <div class="row form-group">
                                        <label class="col-sm-4 control-label">Days</label>
                                        <div class="col-sm-8">
                                            <input name="days" type="number" class="form-control" id="days" placeholder="Days"  value="<?php echo stripslashes($info['days']);?>">
                                            <p class="help-block">The number of days that the trial plan can be used.</p>
                                        </div>
                                    </div>
                                <?php } ?>
                                <h4>Plan Settings</h4>
                                <hr>
                                <div class="row form-group">
                                    <label class="col-sm-4 control-label">Menu Category Limit</label>
                                    <div class="col-sm-8">
                                        <input name="category_limit" type="number" class="form-control" id="category_limit"  value="<?php echo stripslashes($settings['category_limit']);?>">
                                        <p class="help-block">For unlimited, enter 999</p>
                                    </div>
                                </div>

                                <div class="row form-group">
                                    <label class="col-sm-4 control-label">Menu Items Limit Per Category</label>
                                    <div class="col-sm-8">
                                        <input name="menu_limit" type="number" class="form-control" id="menu_limit"  value="<?php echo stripslashes($settings['menu_limit']);?>">
                                        <p class="help-block">For unlimited, enter 999</p>
                                    </div>
                                </div>

                                <div class="row form-group">
                                    <label class="col-sm-4 control-label">Scans Limit Per Month</label>
                                    <div class="col-sm-8">
                                        <input name="scan_limit" type="number" class="form-control" id="scan_limit"  value="<?php echo stripslashes($settings['scan_limit']);?>">
                                        <p class="help-block">For unlimited, enter 999</p>
                                    </div>
                                </div>
                                <div class="row form-group">
                                    <label class="col-sm-4 control-label">Allow ordering</label>
                                    <div class="col-sm-8">
                                        <label class="css-input switch switch-sm switch-success">
                                            <input name="allow_ordering" type="checkbox" value="1" <?php if($settings['allow_ordering'] == '1') echo "checked"; ?> /><span></span>
                                        </label>
                                        <p class="help-block">Allow restaurants to accept orders.</p>
                                    </div>
                                </div>
                            <?php
                            $plan_custom = ORM::for_table($config['db']['pre'].'plan_options')
                                ->where('active', 1)
                                ->order_by_asc('position')
                                ->find_many();
                            if(!empty($plan_custom)) {?>
                                <h4>Custom Settings</h4>
                                <hr>
                                <?php
                                foreach ($plan_custom as $key => $custom) {
                                    if(!empty($custom['title']) && trim($custom['title']) != '') {
                                        ?>
                                        <div class="row form-group">
                                            <label class="col-sm-4 control-label"><?php echo $custom['title']; ?></label>
                                            <div class="col-sm-8">
                                                <label class="css-input switch switch-sm switch-success">
                                                    <input name="<?php echo 'custom_'.$custom['id'] ?>" type="checkbox" value="1" <?php echo (isset($settings['custom'][$custom['id']]) && $settings['custom'][$custom['id']] == '1')?'checked':'' ?>/><span></span>
                                                </label>
                                            </div>
                                        </div>
                                        <?php
                                    }
                                }
                            }
                            ?>
                            <h4>Taxes</h4>
                            <hr>
                            <div class="row form-group">
                                <label class="col-sm-4 control-label">Select Taxes</label>
                                <div class="col-sm-8">
                                    <select class="form-control js-select2" name="taxes[]" multiple>
                                        <?php
                                        $plan_taxes = explode(',', $info['taxes_ids']);
                                        $taxes = ORM::for_table($config['db']['pre'].'taxes')
                                            ->find_many();
                                        foreach ($taxes as $tax){
                                            $value = ($tax['value_type'] == 'percentage' ? (float) $tax['value'] .'%' : price_format($tax['value'],$config['currency_code']));
                                            echo '<option value="'.$tax['id'].'" '. (in_array($tax['id'], $plan_taxes)? 'selected':'') .'>'.$tax['name'].' ('.$value.')</option>';
                                        }
                                        ?>
                                    </select>
                                    <p class="help-block">Select taxes for this plan.</p>
                                </div>
                            </div>
                                <input type="hidden" name="submit">

                        </div>

                    </form>
                </div>
            </div>
        </div>
        <!-- /.row -->
    </div>
</div>
<script>
    $(function()
    {
        // Init page helpers (BS Datepicker + BS Colorpicker + Select2 + Masked Input + Tags Inputs plugins)
        App.initHelpers('select2');
    });
</script>

CasperSecurity Mini