<?php @session_start(); $bootstrap_css_path = addslashes($_GET['bootstrap_css_path']); $allowEdit = addslashes($_GET['allowEdit']); function siteURL() { $protocol = !empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER_PORT'] == 443 ? "https://" : "http://"; $domainName = $_SERVER['HTTP_HOST']; return $protocol . $domainName; } define('SITE_URL', siteURL()); /* language */ if (file_exists('langs/' . $_GET['language'] . '.php')) { $lang = $_GET['language']; } else { // default $lang = 'en_EN'; } require_once 'langs/' . $lang . '.php'; require_once 'snippets/Snippets.php'; $snippets = new Snippets('snippets/snippets.xml', $allowEdit); $snippets->getSnippets(); ?> <!DOCTYPE html> <html lang="fr"> <head> <link rel="stylesheet" href="<?php echo $bootstrap_css_path; ?> ">
function mlm_licenese_settings_new() { $error = ''; $msg = ''; if (isset($_REQUEST['mlm_license_settings'])) { if ($_REQUEST['license_key'] != '') { $msg = licUpdate($_REQUEST); } else { $error = _e("<span style='color:red;'>Please fill the complete information.</span>"); } } $settings = get_option('mlm_license_settings'); if (isMLMLic() && empty($_POST)) { echo '<div class="notibar msgsuccess"><a class="close"></a><p>' . __('Thank you for re-validating your License Key.', 'binary-mlm-pro') . '</p></div>'; } else { if (empty($_POST)) { echo '<div class="notibar msgalert" id="revalidate" ><a class="close"></a><p>' . __('You will need to re-validate your license key due to the new licensing policy in this version of the plugin. Just click the Update Details below. You DO NOT need to generate a new license key.Your License key has been updated.', 'binary-mlm-pro') . '</p> </div>'; } } ?> <div> <?php if ($msg) { ?> <?php _e($msg); ?> <?php } ?> <?php if ($error) { ?> <div class="notibar msgalert"> <a class="close"></a> <p><?php _e($error); ?> </p> </div> <?php } ?> <div id="license-form"> <form name="frm" method="post" action=""> <table> <tr> <td><strong><?php _e('Domain Name', 'binary-mlm-pro'); ?> :</strong></td> <td><?php echo siteURL(); ?> </td> <td> </td> </tr> <tr><td colspan="2"></td></tr> <tr> <td><strong><?php _e('License Key', 'binary-mlm-pro'); ?> :</strong></td> <td><input type="text" name="license_key" size="30" value="<?php if (!empty($settings['license_key'])) { _e($settings['license_key']); } ?> " /></td> <td><input type="submit" name="mlm_license_settings" id="mlm_license_settings" value="<?php _e('Update Details', 'binary-mlm-pro'); ?> " class='button-primary'></td> </tr> </table> </form> </div> </div> <?php }
<!-- Navigation info --> <ul id="nav-info" class="clearfix"> <li><a href="index.php"><i class="icon-home"></i></a></li> <li class="active"><a href="">Gestion des lots</a></li> </ul> <h3 class="page-header page-header-top"> En attentes </h3> <form id="form_valider_lot" style="margin-bottom: 0%" action="<?php echo siteURL(9, array('act' => 'valider_lot'), true); ?> " method="post"> <table id="tab_lots_non_envoyes" class="table table-striped table-bordered table-hover"> <thead id="headlot_non_envoyes"> <tr> <th class="span1 text-center" title="" data-toggle="tooltip" data-original-title="Tout cocher!"> <input id="check1-all" type="checkbox" name="check1-all"> <th>Nom</th> <th>Adresse</th> <th>Code Postal</th> <th>Ville</th> <th>Pays</th> <th>item</th> <th>Date du gain</th> <th>Provenance</th> </tr> <tbody id="bodylot_non_envoyes"> <?php foreach ($tab_lots as $value) { ?>
function mlm_licenese_settings() { $error = ''; $msg = ''; if (isset($_REQUEST['mlm_license_settings'])) { if ($_REQUEST['license_key'] != '') { $msg = licUpdate($_REQUEST); } else { $error = _e("Please fill the complete information."); } } $settings = get_option('mlm_license_settings'); if (isMLMLic() && empty($_POST)) { echo '<div class="notibar msgsuccess"><a class="close"></a><p>' . __('Your License key is valid.', 'binary-mlm-pro') . '</p></div>'; } else { if (empty($_POST)) { echo '<div class="notibar msgalert"><a class="close"></a><p>' . __('Your License key is Invalid.', 'binary-mlm-pro') . '</p> </div>'; } } ?> <div> <style type="text/css"> #license-form{ width:auto; margin:10px;} #license-form .fldname{ float:left; width:130px;} #license-form .fldvalue{ float:left;} #license-form .fldtitle{ float:left; margin:10px 0 10px 0;} #license-form .pairfor{ float:left; padding:3px 10px 0 10px; width:210px;} #license-form .mainpair{ float:left; padding:0 10px 0 10px;} .cBoth{ clear:both;} #license-form .row{ padding:5px 0 5px 0;clear:both;} </style> <div class='wrap1'> <h2><?php _e('License Settings', 'binary-mlm-pro'); ?> </h2> <?php if ($msg) { ?> <?php _e($msg); ?> <?php } ?> <?php if ($error) { ?> <div class="notibar msgalert"> <a class="close"></a> <p><?php _e($error); ?> </p> </div> <?php } ?> <div id="license-form"> <form name="frm" method="post" action=""> <div class="row"> <div class="fldtitle"><b><?php _e('License Details', 'binary-mlm-pro'); ?> :</b></div> </div> <div class="row"> <div class="fldname" style="margin-top:3px;"><strong><?php _e('Domain Name', 'binary-mlm-pro'); ?> </strong></div> <div class="fldvalue"><?php echo siteURL(); ?> </div> </div> <div style="clear:both; height:20px;"></div> <div class="row"> <div class="fldname" style="margin-top:3px;"><strong><?php _e('License Key', 'binary-mlm-pro'); ?> </strong></div> <div class="fldvalue"><input type="text" name="license_key" size="30" value="<?php if (!empty($settings['license_key'])) { _e($settings['license_key']); } ?> " /></div> </div> <br /> <br /> <p class="submit"> <input type="submit" name="mlm_license_settings" id="mlm_license_settings" value="<?php _e('Update Details', 'binary-mlm-pro'); ?> " class='button-primary'> </p> </form> </div> </div> <?php }
$path = $data['sitemap'][$i]['path']; if ($name_short == 'index') { $name_short = null; } else { $name_short = '/' . $name_short; } $j = 0; while ($j < count($data['sitemap'][$i]['methods'])) { $method = $data['sitemap'][$i]['methods'][$j]; if ($method == '__construct') { $j++; continue; } $method = str_replace('action_', '', $method); if ($method == 'index') { $method = null; } else { $method = '/' . $method; } echo "<url>\n"; echo "<loc>" . siteURL() . $name_short . $method . "</loc>\n"; echo "<lastmod>" . date('Y-m-d\\TH:i:s+00:00', filemtime($path)) . "</lastmod>\n"; echo "<changefreq>monthly</changefreq>\n"; echo "</url>\n"; $j++; } $i++; } ?> </urlset>
$protocol = !empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER_PORT'] == 443 ? "https://" : "http://"; $domainName = $_SERVER['HTTP_HOST'] . '/' . '/oc/system/'; // psum is subdirectory $pageName = 'account-activation.php'; return $protocol . $domainName . $pageName; } define('ACCOUNT_ACTIVATION_URL', verificationURL()); // ------------------------------------------------------------ // 4. DEFAULT LOGIN DESTINATION URL // ------------------------------------------------------------ // if USE_DEFAULT_LOGIN_DESTINATION is set to 1, all users will be // redirected to DEFAULT_LOGIN_DESTINATION_URL after login, accept // the users who's destination URL has been custom set in admin panel. define('USE_DEFAULT_LOGIN_DESTINATION', 0); // 1=On 0=Off define('DEFAULT_LOGIN_DESTINATION_URL', siteURL() . 'index.php'); // global login destination // ------------------------------------------------------------ // 5. DEFAULT THEMES - CSS // ------------------------------------------------------------ define('SITE_STYLE', SITE_URL . 'themes/default/default.css'); // root files non IE define('ADMIN_STYLE', SITE_URL . 'admin/themes/default/default.css'); // admin files define('USER_STYLE', SITE_URL . 'user/themes/default/default.css'); // user area files define('USER_MENU_STYLE', SITE_URL . 'user/themes/default/superfish.css'); // user area files define('ACCORDION_STYLE', SITE_URL . 'user/themes/default/accordion.css'); // user area files define('FEEDBACK_STYLE', SITE_URL . 'feedback/themes/default/default.css');