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j '  'P$a ( `D$Na L?u80e J,K˷NI'0eݷ(NI'؀ 2ipIIKp`:O'`ʤxB8Ѥx Ѥx $ $P6 :vRNb 'p,>NB 'P]-->P T+*^h& p '‰a ‰ (ĵt#u33;Nt̵'ޯ; [3W ~]0KH1q@8]O2]3*̧7# *p>us p _6]/}-4|t'|Smx= DoʾM×M_8!)6lq':l7!|4} '\ne t!=hnLn (~Dn\+‰_4k)0e@OhZ`F `.m1} 'vp{F`ON7Srx 'D˸nV`><;yMx!IS钦OM)Ե٥x 'DSD6bS8!" ODz#R >S8!7ّxEh0m$MIPHi$IvS8IN$I p$O8I,sk&I)$IN$Hi$I^Ah.p$MIN$IR8I·N "IF9Ah0m$MIN$IR8IN$I 3jIU;kO$ɳN$+ q.x* tEXtComment

Viewing File: /home/u456810272/domains/globalsoftech.org.in/public_html/unimatrix/admin/homepg.php

<?php
if (!defined('OK_LOADME')) {
    die('o o p s !');
}

$homepgarr = array('', 'test', 'redir');
$homepgopt_cek = radiobox_opt($homepgarr, $cfgtoken['homepg']);

$homepgtestclrarr = array('', 'v1', 'o1', 'green1');
$homepgtestclr_cek = radiobox_opt($homepgtestclrarr, $cfgtoken['homepgtestclr']);

$fileindexhomepg = INSTALL_PATH . "/index.php";
$filehomepg = INSTALL_PATH . "/webpage/starter.html";
$filehomepgtest = INSTALL_PATH . "/webpage/evolve/home.php";

$filedefhomepg = INSTALL_PATH . "/webpage/_starter.html";
$filedefhomepgtest = INSTALL_PATH . "/webpage/evolve/_home.php";

$filehomepgcnt = (file_exists($filehomepg)) ? file_get_contents($filehomepg) : ((file_exists($filedefhomepg)) ? file_get_contents($filedefhomepg) : '');
$filehomepgtestcnt = (file_exists($filehomepgtest)) ? file_get_contents($filehomepgtest) : ((file_exists($filedefhomepgtest)) ? file_get_contents($filedefhomepgtest) : '');

if (isset($FORM['dosubmit']) && $FORM['dosubmit'] == '1' && !defined('ISDEMOMODE')) {
    extract($FORM);

    $newcfgtoken = $cfgrow['cfgtoken'];
    if ($homepg == 'test') {
        if ($homepgbaktest == '1') {
            file_put_contents($filehomepgtest . '_bak' . date("YmdHis") . '.php', $filehomepgtestcnt);
        }
        if (file_put_contents($filehomepgtest, $homepgtest)) {
            $_SESSION['dotoaster'] = "toastr.success('Example page updated successfully!', 'Success');";
        } else {
            $_SESSION['dotoaster'] = "toastr.error('Example page failed to update <strong>Please try again!</strong>', 'Warning');";
        }
    } else if ($homepg == 'redir') {
        $newcfgtoken = put_optionvals($newcfgtoken, 'homepgredir', base64_encode($homepgredir ?? ''));
        if ($homepgredir != '') {
            $_SESSION['dotoaster'] = "toastr.success('Redirection configured!', 'Success');";
        } else {
            $_SESSION['dotoaster'] = "toastr.error('Redirection empty!', 'Warning');";
        }
    } else {
        if ($homepgbakstarter == '1') {
            file_put_contents($filehomepg . '_bak' . date("YmdHis") . '.html', $filehomepgcnt);
        }
        if (file_put_contents($filehomepg, $homepgstarter)) {
            $_SESSION['dotoaster'] = "toastr.success('Starter page updated!', 'Success');";
        } else {
            $_SESSION['dotoaster'] = "toastr.error('Starter page failed to update <strong>Please try again!</strong>', 'Warning');";
        }
    }

    $newcfgtoken = put_optionvals($newcfgtoken, 'homepg', $homepg);
    $newcfgtoken = put_optionvals($newcfgtoken, 'homepgtestclr', $homepgtestclr);

    $data = array(
        'cfgtoken' => $newcfgtoken,
    );
    $update = $db->update(DB_TBLPREFIX . '_configs', $data, array('cfgid' => '1'));
    if ($update) {
        $_SESSION['dotoaster'] = "toastr.success('Configuration updated successfully!', 'Success');";
    }

    //header('location: index.php?hal=' . $hal);
    redirpageto('index.php?hal=' . $hal);
    exit;
}

$fileindexhomepgcnt = (file_exists($fileindexhomepg)) ? file_get_contents($fileindexhomepg) : '';
?>

<div class="section-header">
    <h1><i class="fa fa-fw fa-satellite-dish"></i> <?php echo myvalidate($LANG['a_homepg']); ?></h1>
</div>

<div class="section-body">
    <div class="row">
        <div class="col-md-12">
            <div class="card">

                <form method="post" action="index.php" id="homepgform">
                    <input type="hidden" name="hal" value="homepg">

                    <div class="card-header">
                        <h4>Page Content</h4>
                    </div>

                    <div class="card-body">
                        <p class="text-muted">Installation folder: <strong><?php echo INSTALL_PATH; ?></strong></p>

                        <?php
                        $isnosave = '';
                        if (strpos($fileindexhomepgcnt, 'INDEX_UNIMATRIX') !== false) {
                            ?>
                            <p class="text-muted"><?php echo myvalidate($LANG['a_homepginfo']); ?></p>

                            <div class="form-group">
                                <div class="selectgroup selectgroup-pills">
                                    <label class="selectgroup-item">
                                        <input type="radio" name="homepg" value="" class="selectgroup-input"<?php echo myvalidate($homepgopt_cek[0]); ?> onchange="doHideShow(document.getElementById('homepg'), '', true, 'dHS_homepg');doHideShow(document.getElementById('homepg'), '', false, 'dHS_homepgtest');doHideShow(document.getElementById('homepg'), '', false, 'dHS_homepgredir');" id="homepg">
                                        <span class="selectgroup-button selectgroup-button-icon"><i class="fa fa-fw fa-cogs"></i> Starter Installation</span>
                                    </label>
                                    <label class="selectgroup-item">
                                        <input type="radio" name="homepg" value="test" class="selectgroup-input"<?php echo myvalidate($homepgopt_cek[1]); ?> onchange="doHideShow(document.getElementById('homepgtest'), 'test', false, 'dHS_homepg');doHideShow(document.getElementById('homepgtest'), 'test', true, 'dHS_homepgtest');doHideShow(document.getElementById('homepgtest'), 'test', false, 'dHS_homepgredir');" id="homepgtest">
                                        <span class="selectgroup-button selectgroup-button-icon"><i class="fa fa-fw fa-laptop-code"></i> Example page</span>
                                    </label>
                                    <label class="selectgroup-item">
                                        <input type="radio" name="homepg" value="redir" class="selectgroup-input"<?php echo myvalidate($homepgopt_cek[2]); ?> onchange="doHideShow(document.getElementById('homepgredir'), 'redir', false, 'dHS_homepg');doHideShow(document.getElementById('homepgredir'), 'redir', false, 'dHS_homepgtest');doHideShow(document.getElementById('homepgredir'), 'redir', true, 'dHS_homepgredir');" id="homepgredir">
                                        <span class="selectgroup-button selectgroup-button-icon"><i class="fa fa-fw fa-location-arrow"></i> Redirection</span>
                                    </label>
                                </div>
                            </div>

                            <div class="subcfg-option" id="dHS_homepg">
                                <div class="form-group">
                                    <p class="text-muted">File location: <?php echo myvalidate($filehomepg); ?>
                                        <?php
                                        if (!is_writable(INSTALL_PATH . "/webpage/")) {
                                            echo "<span class='badge badge-danger'><i class='fas fa-exclamation-triangle fa-fw'></i> The file is not writable!</span>";
                                        }
                                        ?>
                                    </p>
                                    <div>
                                        <label for="homepgstarter" class="text-danger">Basic webmaster or HTML knowledge required to update the page content.</label>
                                    </div>
                                    <textarea class="form-control rowsize-lg text-monospace" name="homepgstarter" id="summernotemaxi"><?php echo isset($filehomepgcnt) ? $filehomepgcnt : ''; ?></textarea>
                                </div>
                                <div class="form-group">
                                    <div class="custom-control custom-checkbox">
                                        <input type="checkbox" name="homepgbakstarter" value="1" class="custom-control-input" id="homepgbakstarter" checked>
                                        <label class="custom-control-label" for="homepgbakstarter">If possible: save existing file as backup.</label>
                                    </div>
                                </div>
                            </div>
                            <div class="subcfg-option" id="dHS_homepgtest">
                                <script src="//cdnjs.cloudflare.com/ajax/libs/codemirror/5.52.2/codemirror.min.js" type="text/javascript"></script>
                                <script src="//cdnjs.cloudflare.com/ajax/libs/codemirror/5.52.2/mode/htmlmixed/htmlmixed.js" type="text/javascript"></script>
                                <script src="//cdnjs.cloudflare.com/ajax/libs/codemirror/5.52.2/mode/xml/xml.js" type="text/javascript"></script>
                                <script src="//cdnjs.cloudflare.com/ajax/libs/codemirror/5.52.2/mode/javascript/javascript.js" type="text/javascript"></script>

                                <script src="//cdnjs.cloudflare.com/ajax/libs/codemirror/5.52.2/mode/css/css.js" type="text/javascript"></script>
                                <link rel="stylesheet" type="text/css" href="//cdnjs.cloudflare.com/ajax/libs/codemirror/5.52.2/codemirror.min.css"/>
                                <div class="form-group">
                                    <p class="text-muted">File location: <?php echo myvalidate($filehomepgtest); ?>
                                        <?php
                                        if (!is_writable(INSTALL_PATH . "/webpage/evolve/")) {
                                            echo "<span class='badge badge-danger'><i class='fas fa-exclamation-triangle fa-fw'></i> The file is not writable!</span>";
                                        }
                                        ?>
                                    </p>

                                    <div class="form-group">
                                        <label for="selectgroup-pills">Color Theme Option</label>
                                        <div class="selectgroup selectgroup-pills">
                                            <label class="selectgroup-item">
                                                <input type="radio" name="homepgtestclr" value="" class="selectgroup-input"<?php echo myvalidate($homepgtestclr_cek[0]); ?>>
                                                <span class="selectgroup-button selectgroup-button-icon">Default</span>
                                            </label>
                                            <label class="selectgroup-item">
                                                <input type="radio" name="homepgtestclr" value="v1" class="selectgroup-input"<?php echo myvalidate($homepgtestclr_cek[1]); ?>>
                                                <span class="selectgroup-button selectgroup-button-icon">Violet</span>
                                            </label>
                                            <label class="selectgroup-item">
                                                <input type="radio" name="homepgtestclr" value="o1" class="selectgroup-input"<?php echo myvalidate($homepgtestclr_cek[2]); ?>>
                                                <span class="selectgroup-button selectgroup-button-icon">Orange</span>
                                            </label>
                                            <label class="selectgroup-item">
                                                <input type="radio" name="homepgtestclr" value="green1" class="selectgroup-input"<?php echo myvalidate($homepgtestclr_cek[3]); ?>>
                                                <span class="selectgroup-button selectgroup-button-icon">Green</span>
                                            </label>
                                        </div>
                                    </div>

                                    <label for="homepgtest" class="text-danger">Programming knowledge required!<br />Please do not remove or update any of the php codes, unless you know what you are doing.</label>
                                    <textarea class="form-control rowsize-lg text-monospace" name="homepgtest" id="ccmircode"><?php echo isset($filehomepgtestcnt) ? $filehomepgtestcnt : ''; ?></textarea>
                                </div>
                                <div class="form-group">
                                    <div class="custom-control custom-checkbox">
                                        <input type="checkbox" name="homepgbaktest" value="1" class="custom-control-input" id="homepgbaktest">
                                        <label class="custom-control-label" for="homepgbaktest">If possible: save existing file as backup.</label>
                                    </div>
                                </div>
                            </div>
                            <div class="subcfg-option" id="dHS_homepgredir">
                                <div class="form-group">
                                    <label for="homepgredir">Relative file path or URL for the homepage redirection.</label>
                                    <input type="text" name="homepgredir" id="homepgredir" class="form-control" value="<?php echo ($cfgtoken['homepgredir'] != '') ? base64_decode($cfgtoken['homepgredir'] ?? '') : ''; ?>" placeholder="Destination file or URL">
                                </div>
                            </div>
                            <?php
                        } else {
                            $isnosave = 1;
                            ?>
                            <div class="badge badge-danger">Default index.php file no longer available!</div>
                            <?php
                        }
                        ?>

                    </div>

                    <div class="card-footer bg-whitesmoke text-md-right">
                        <?php
                        if ($isnosave != 1) {
                            ?>
                            <button type="reset" name="reset" value="reset" id="reset" class="btn btn-warning">
                                <i class="fa fa-fw fa-undo"></i> Reset
                            </button>
                            <button class="btn btn-primary bootboxformconfirm" type="submit" data-form="homepgform" data-poptitle="Manage Homepage" data-popmsg="Are you sure want to process?<br /><span class='text-small text-danger'>If necessary, back up your existing file by clicking the checkbox.</span>">
                                <i class="fa fa-fw fa-check"></i> Save Changes
                            </button>
                            <input type="hidden" name="dosubmit" value="1">
                            <?php
                        }
                        ?>
                    </div>

                </form>

            </div>
        </div>
    </div>
</div>

<script type="text/javascript">
                                            $(document).ready(function () {
<?php
if ($cfgtoken['homepg'] == 'test') {
    echo '$("#dHS_homepg").hide();';
    echo '$("#dHS_homepgredir").hide();';
} else if ($cfgtoken['homepg'] == 'redir') {
    echo '$("#dHS_homepg").hide();';
    echo '$("#dHS_homepgtest").hide();';
} else {
    echo '$("#dHS_homepgtest").hide();';
    echo '$("#dHS_homepgredir").hide();';
}
?>
                                            });

                                            var editor = CodeMirror.fromTextArea(document.getElementById('ccmircode'), {
                                                lineNumbers: true,
                                                tabSize: 4,
                                                matchBrackets: true,
                                                mode: "htmlmixed"
                                            });
</script>
Back to Directory=ceiIENDB`