Plugin Directory

Changeset 556959


Ignore:
Timestamp:
06/12/2012 10:03:29 PM (14 years ago)
Author:
joshua.strebel
Message:

Nuked on Purpose

Location:
pagely-reseller-management/trunk
Files:
4 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • pagely-reseller-management/trunk/pagely-reseller.php

    r312017 r556959  
    44Plugin URI: http://blog.page.ly/reseller-plugin/
    55Description: Reseller Management Control Panel for the <a href="http://page.ly">Page.ly Website and Hosting Service</a>. 
    6 Version: 2.0.3
     6Version: 2.0.4
    77Author: Page.ly
    88Author URI: http://page.ly
     
    2727// **********************************************************************
    2828
    29 
    30 
    31 
    32 define ('PLUGINASSETS',WP_PLUGIN_URL.'/'.dirname(plugin_basename(__FILE__)).'/assets/');
    33 define ('PLUGINNAME',dirname(plugin_basename(__FILE__)));
    34 define ('REQUEST_URL','https://hostedclientservice.com/rs2/');
    35 define ('VERIFY_URL','https://hostedclientservice.com/rsverify/check/');
    36 define ('PAGELYKEY', get_option('pagely_reseller_apikey'));
    37 define ('PAGELYPASS', get_option('pagely_reseller_apipass'));
    38 define ('PAGELYHASH', md5(PAGELYPASS.gmdate('Ymd')));
    39 add_action('admin_menu', 'pagely_reseller_init');
    40 function pagely_reseller_init() {
    41 
    42         //create new top-level menu
    43                
    44                 $key = get_option('pagely_reseller_apikey');
    45                 $kpass = get_option('pagely_reseller_apipass');
    46                 //$key = '';
    47         if( !$key || !$kpass) {
    48                 //signup page
    49                 add_menu_page('Page.ly Reseller', 'Page.ly Reseller', 10, __FILE__, 'pagely_reseller_signup');
    50         } else {
    51                    // api iframe
    52                    add_menu_page('Page.ly Reseller', 'Page.ly Reseller', 10, __FILE__, 'pagelyreseller_settings_page');         
    53         }
    54 }
    55 function pagelyreseller_settings_page() {
    5629?>
    57 <div class="wrap">
    58 <h2>Page.ly Reseller Management Control Panel</h2>
    59 
    60 <iframe id="hostingpanel" src="<?=REQUEST_URL."dash/".PAGELYKEY."/".PAGELYHASH?>" width="100%" height="650"></iframe>
    61 </div>
    62 <? }
    63 
    64 
    65 add_action('admin_post_pagely-post-handler', 'pagely_post_handler');
    66 // function for handling form posts
    67 function pagely_post_handler() {
    68     global $wpdb, $pr;
    69     $perror = false;
    70     //print_r($_POST);
    71     if (!empty($_POST['pagely_action'])) {
    72    
    73         switch($_POST['pagely_action']) {
    74             case 'update_api_keys':
    75                 // check keys
    76                 $postedkey = $_POST['p_apikey'];
    77                 $postedsecret = $_POST['p_apisecret'];
    78                 $url = VERIFY_URL.$postedkey.'/'.md5($postedsecret.gmdate('Ymd'));
    79                
    80                 $validation = file_get_contents($url);
    81                 //print('foo');
    82                 //print($validation);
    83                 if ($validation) {
    84                     update_option('pagely_reseller_apikey',$_POST['p_apikey']);
    85                     update_option('pagely_reseller_apipass',$_POST['p_apisecret']);
    86 
    87                 } else {
    88                     //print('foo');
    89                     $perror = "&perror=1";
    90                 }
    91                 wp_redirect(get_bloginfo('wpurl').'/wp-admin/admin.php?page='.plugin_basename(__FILE__).$perror);
    92                
    93 
    94             break;
    95         }
    96     }
    97 }
    98 
    99 function pagely_reseller_signup() {
    100     global $pr;
    101 
    102     if ($_GET['perror']) { $errortext = "<div class='message error'><p>Please check your keys and try again.</p></div>"; }
    103    
    104     print('<div class="wrap">
    105             <h2>Become A Pagely Reseller</h2>           
    106             <table>
    107                 <tr>
    108                     <td style="padding-right:20px;">
    109                         <p><a href="http://page.ly" target="_blank">Page.ly</a> is Fully Managed WordPress Hosting. Quick 2 minute setup, Automatic Core and Plugin Upgrades, Nightly backups. The complete WOrdPress Hosting solution.</strong></p>
    110                         ');
    111                         if (!function_exists('json_decode')) {
    112                             print('<div id="message" class="error">THIS PLUGIN REQUIRES PHP 5.2.0 OR HIGHER. <BR/>YOUR ARE RUNNING '.phpversion().' PLEASE UPGRADE BEFORE PROCEEDING</div>');
    113                        
    114                         } else {
    115                        
    116                         print('<p><a href="https://hostedclientservice.com/service/signup" target="_blank">Join the Page.ly Reseller program</a> today and let us do the hard work, while you focus on your clients and building your business.</p> ');
    117                         }
    118                        
    119                         print('<h3>Resellers Enjoy:</h3>
    120                         <ul style="list-style-type:disc; padding-left:20px">
    121                             <li>White Labeled Solution: Your branding throughout</li>
    122                             <li>Set your own markup/margin on monthly service</li>
    123                             <li>Create your own upsell products and services</li>
    124                             <li>Page.ly does all client billing</li>
    125                             <li>No long term reseller contracts</li>
    126                             <li>Monthly payouts</li>
    127                             <li>Create your own promo codes</li>
    128                             <li>Total control panel access to all your clients</li>
    129                             <li>And so much more...</li>
    130                         </ul>
    131                         <p>Whether you are a freelancer or an established agency The Page.ly reseller program makes it easy to offer a complete website solution to your clients.</p>
    132                         <p><a href="https://hostedclientservice.com/service/signup" class="button-primary" target="_blank"/>Apply Now</a></p>
    133                             <small>You are seeing this message because either you have not signed up yet, or there may be problem with your reseller APIKEY. If you think your keys are bad, contact reseller.support {at} page.ly</small>
    134                            
    135                     </td>
    136                     <td valign="top" width="50%" style="padding-left:30px;">
    137                     <h3 style="padding:0;margin:0 0 20px 0;">Application was approved?  Enter your Keys Below</h3>
    138                     '.$errortext.'
    139                     <form method="post" action= "'.get_bloginfo('wpurl').'/wp-admin/admin-post.php" style="background:#d1d1d1;border:1px solid #999;padding:10px">
    140                         <p><label>Your API Key</label><br/>
    141                             <input type="text" name="p_apikey" size="35"/>
    142                         </p>
    143                         <p><label>Your API Secret</label><br/>
    144                             <input type="text" name="p_apisecret" size="35"/>
    145                         </p>
    146                         <input type="hidden" name="action" value="pagely-post-handler" class="hidden" style="display: none;" />
    147                     <input type="hidden" name="pagely_action" value="update_api_keys" class="hidden" style="display: none;" />
    148                         <p><input type="submit" value="Save Keys" class="button-primary"/></p>
    149                         <img src="'.PLUGINASSETS.'/pagely-bar-logo.png" alt="pagely-bar-logo" />
    150                     </form>
    151                     </td>
    152                 </tr>
    153             </table>
    154            
    155     ');
    156 }
    157 ?>
  • pagely-reseller-management/trunk/readme.txt

    r312017 r556959  
    66Stable tag: trunk
    77
    8 The Page.ly Reseller program allows participants to resell page.ly Wordpress
    9 Hosting  services.
     8Developer Bote: Last Commit nuked the plugin on purpose, new version pending and we dont want users trying to utilize the old one.
     9
    1010== Description ==
    11 
    12 This plugin acts as the control panel and management interface for Resellers of
    13 [Wordpress Hosting](http://page.ly) by Page.ly. Copyright 2009 Page.ly.
    14 
    15 [Documentation available here](http://blog.page.ly/reseller-plugin/)
    16 
    17 Follow [@pagely](http://twitter.com/pagely) on twitter.
    18 Please visit the [Wordpress Hosting Reseller Page](http://page.ly/support/resellers) for info.
    19 
    20 *Requires PHP 5.2.4 and WP 2.8.4 or better*
    21 
    22 *Features*
    23 
    24 * WHITE LABEL (Your brand, Your customers)
    25 * Set your own pricing margins
    26 * Create your own monthly or 1-time service packages as purchased upgrades Ex: Monthly SEO Package
    27 * Fast Setup and customization, begin accepting customers in minutes
    28 * Tiered reseller pricing, your margins increase as your business does
    29 * Most client management tasks happen via this plugin
    3011
    3112== Installation ==
    3213
    33 [Documentation available here](http://blog.page.ly/reseller-plugin/)
    34 
    35 [Support Discussion Here](http://getsatisfaction.com/pagely)
    36 
    3714== Screenshots ==
    3815
    39 1. Client Detail Screen
    40 2. Reseller Pricing config screen
    41 3. Colors and Logo customization screen for your reseller pages
    4216== Changelog ==
     17= 2.0.4 =
     18Wiped it
    4319= 2.0.3 =
    4420API Keys were not being accepted properly
Note: See TracChangeset for help on using the changeset viewer.