Пример #1
0
     require CLASS_DIR . 'options/mail.php';
     rl_mail();
     break;
 case 'mail_go':
     if (!empty($options['disable_email'])) {
         break;
     }
     require CLASS_DIR . 'options/mail.php';
     mail_go();
     break;
 case 'boxes':
     if (!empty($options['disable_mass_email'])) {
         break;
     }
     require CLASS_DIR . 'options/boxes.php';
     boxes();
     break;
 case 'boxes_go':
     if (!empty($options['disable_mass_email'])) {
         break;
     }
     require CLASS_DIR . 'options/boxes.php';
     boxes_go();
     break;
 case 'md5':
     if (!empty($options['disable_md5'])) {
         break;
     }
     require CLASS_DIR . 'options/md5.php';
     rl_md5();
     break;
										<li>108 display currencies &amp; 46 transactable currencies</li>
										<li>1,100+ experts in 22 offices around the world</li>
									</ul>');
$boxes[] = array("heading" => "Deliver physical merchandise around the world", "description" => '<ul class="bullet-list">
										<li>65+ pre-integrated global warehouse locations</li>
										<li>Multi-sourcing cross-border infrastructure</li>
										<li>2.5 million shipments to over 100 countries a year</li>
									</ul>');
three_column_boxes($headline, $descriptions, $boxes);
$headline = "Key Segments We&nbsp;Support";
$boxes = array();
$boxes[] = array("alt" => 'Consumer Electronics', "background_image" => get_template_directory_uri() . "/img/grid/consumer-electronics.jpg", "description" => 'Expand your sales opportunity beyond the walls of big box retailers. Control your brand experience and sell your phones, televisions, laptops, tablets, cameras, stereos, digital fitness trackers, headsets and other electronics directly to customers.');
$boxes[] = array("alt" => 'Housewares and Appliances', "background_image" => get_template_directory_uri() . "/img/grid/housewares-appliances.jpg", "description" => 'Tap into key market segments to expand brand awareness and exposure to your products. Increase sales of your home appliances, cookware, décor and furnishings, gardening equipment and other household items with a direct to consumer online channel.');
$boxes[] = array("alt" => 'Consumer Goods', "background_image" => get_template_directory_uri() . "/img/grid/consumer-goods.jpg", "description" => 'Harness the power of selling direct to escalate sales growth of watches, apparel, handbags, sunglasses, containers, durable goods and other popular consumer items from nearly anywhere in the world. Stand out from your competition by creating a superior brand experience.');
$boxes[] = array("alt" => 'Sporting Goods', "background_image" => get_template_directory_uri() . "/img/grid/sporting-goods.jpg", "description" => 'Own the relationship with your shoppers and gain a deeper understanding of consumer behavior for your sporting and fitness equipment, athletic apparel and outdoors outfitter merchandise to offer your shoppers access to your brand with the convenience of purchasing online.');
boxes($headline, $boxes);
$sub_heading = "Increase customer satisfaction. Reduce channel conflict.";
$descriptions = array();
$descriptions[] = "There is a misperception that a direct to consumer channel will compete with your retail channel. In fact, these two channels can coexist in harmony and support each other. To generate the greatest revenue opportunity, global brand growth and customer lifetime value, it’s important to define the specific purposes and implement sales strategies for both. Read the following materials for insights on how to own your brand experience and control a positive relationship with your shoppers through your direct channel, while fostering a healthy relationship with your retailers.";
$tags[] = array('title' => 'Brands Learn More by Selling Direct', 'new_tab' => false, 'link' => '/brands-learn-more-by-selling-direct/');
$tags[] = array('title' => 'Unintended Consequences of a Channel Friendly&nbsp;Approach', 'new_tab' => false, 'link' => '/the-unintended-consequences-of-a-channel-friendly-approach/');
$tags[] = array('title' => 'Why Branded Manufacturers Are Starting a D2C&nbsp;Channel', 'new_tab' => false, 'link' => '/our-company/newsroom/press-release/digital-river-commissioned-study-explores-why-more-branded-manufacturers-are-opening-direct-to-consumer-ecommerce-channels/');
$tags[] = array('title' => 'Be Direct – Why A D2C Channel is Right for Your&nbsp;Business', 'new_tab' => false, 'link' => 'http://info.digitalriver.com/FY14Q2_Drip_Misc-assets_LP-whitepaper_Forrester_Why-Going-Direct-Benefits-Every-Channel.html?campaign_source=&campaign_medium=Website&Lead_source=Website&_ga=1.163542453.825245199.1454351169');
$tags[] = array('title' => 'Direct to Consumer Opportunities &amp;&nbsp;Challenges', 'new_tab' => false, 'link' => 'http://info.digitalriver.com/FY14Q2_Drip_Misc-assets_LP-whitepaper_Forrester_Why-Going-Direct-Benefits-Every-Channel.html?campaign_source=&campaign_medium=Website&Lead_source=Website&_ga=1.163542453.825245199.1454351169');
display_tags($sub_heading, $descriptions, $tags);
$headline = "Solutions Tailored to Your Business";
// $grid[] = array(
// 				"height" => 'double-height',
// 				"width" => 'col-sm-6 col-xxs-12',
// 				"icon" => 'fa fa-plus',
// 				"description" => '<ul>
    $mbox = imap_open($mail, $user, $pass);
    if (!$mbox) {
        die("boxes: mailbox open FAILED.");
    }
    //
    $boxes = imap_list($mbox, $mail, "*");
    //
    imap_close($mbox);
    return $boxes;
}
function info($inBox)
{
    global $user, $pass;
    //
    $mbox = imap_open($inBox, $user, $pass);
    if (!$mbox) {
        die("Mailbox open FAILED.");
    }
    //
    $info = imap_mailboxmsginfo($mbox);
    //
    imap_close($mbox);
    return $info;
}
$records = array();
$boxes = boxes();
foreach ($boxes as $box) {
    $record = array("name" => $box, "info" => info($box));
    array_push($records, $record);
}
echo json_encode($records);
Пример #4
0
function reset_game($f_iLevel = 0)
{
    global $level, $pusher;
    $f_iLevel = (int) $f_iLevel;
    if (!isset($level[$f_iLevel], $pusher[$f_iLevel])) {
        $f_iLevel = 0;
    }
    $_SESSION[S_NAME]['play'] = true;
    $_SESSION[S_NAME]['starttime'] = time();
    $_SESSION[S_NAME]['map'] = $level[$f_iLevel];
    $_SESSION[S_NAME]['pusher'] = $pusher[$f_iLevel];
    $_SESSION[S_NAME]['boxes'] = boxes($level[$f_iLevel]);
    $_SESSION[S_NAME]['level'] = $f_iLevel;
    $_SESSION[S_NAME]['walks'][$f_iLevel] = 0;
    $_SESSION[S_NAME]['pushes'][$f_iLevel] = 0;
    unset($_SESSION[S_NAME]['gameover']);
}