示例#1
0
function cc_whmcs_bridge_uninstall()
{
    $cc_whmcs_bridge_options = cc_whmcs_bridge_options();
    delete_option('cc_whmcs_bridge_log');
    foreach ($cc_whmcs_bridge_options as $value) {
        delete_option($value['id']);
    }
    delete_option("cc_whmcs_bridge_page");
    delete_option("cc_whmcs_bridge_pages");
    delete_option("cc_whmcs_bridge_log");
    delete_option("cc_whmcs_bridge_ftp_user");
    //legacy
    delete_option("cc_whmcs_bridge_ftp_password");
    //legacy
    delete_option("cc_whmcs_bridge_version");
    delete_option("cc_whmcs_bridge_pages");
    delete_option('cc-ce-bridge-cp-support-us');
}
示例#2
0
function cc_whmcs_bridge_admin()
{
    global $cc_whmcs_bridge_shortname;
    $controlpanelOptions = cc_whmcs_bridge_options();
    if (isset($_REQUEST['installed'])) {
        echo '<div id="message" class="updated fade"><p><strong>' . WHMCS_BRIDGE . ' installed.</strong></p></div>';
    }
    if (isset($_REQUEST['error'])) {
        echo '<div id="message" class="updated fade"><p>The following error occured: <strong>' . $_REQUEST['error'] . '</strong></p></div>';
    }
    ?>
    <script>
        jQuery(function() {
            jQuery("#bridgetabs").tabs();
        });
    </script>

    <div class="wrap">
        <h2><b><?php 
    echo WHMCS_BRIDGE;
    ?>
</b></h2>
        <div id="bridgetabs" style="width:68%;float:left;">

            <ul>
                <li><a href="#bridgetabs-1">Settings</a></li>
                <li><a href="#bridgetabs-2">Log</a></li>
                <li><a href="#bridgetabs-3">Sync</a></li>
                <li><a href="#bridgetabs-4">Help</a></li>
            </ul>

            <div id="bridgetabs-1">
                <?php 
    require dirname(__FILE__) . '/pages/settings.php';
    ?>
            </div>
            <div id="bridgetabs-2">
                <?php 
    require dirname(__FILE__) . '/pages/log.php';
    ?>
            </div>
            <div id="bridgetabs-3">
                <?php 
    require dirname(__FILE__) . '/pages/sync.php';
    ?>
            </div>
            <div id="bridgetabs-4">
                <?php 
    require dirname(__FILE__) . '/pages/help.php';
    ?>
            </div>

        </div> <!-- end bridgetabs -->
        <div style="width:30%;float:right;">
            <?php 
    require dirname(__FILE__) . '/support-us.inc.php';
    zing_support_us('whmcs-bridge', 'whmcs-bridge', 'cc-ce-bridge-cp', CC_WHMCS_BRIDGE_VERSION);
    ?>
        </div>
    </div> <!-- end wrap -->
<?php 
}