Plugin Directory

Changeset 573723


Ignore:
Timestamp:
07/17/2012 06:53:50 PM (13 years ago)
Author:
sociable
Message:
 
Location:
sociable/trunk/includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sociable/trunk/includes/async_request.php

    r495252 r573723  
    11<?php
    22
    3 
    4 
    5 
    63require_once("../../../../wp-config.php");
    7 
    8 
    9 
    10 
    11 
    12 
    13 
    14 
    15 
    164global $skyscraper_options;
    17 
    18 
    19 
    20 
    21 
    22 
    23 
    24 
    25 
    265$url_shares = $_POST["link"];
    27 
    28 
    29 
    30 
    316$title_shared = $_POST["title"];
    327
    33 
    34 
    35 
    36 
    37 
    38 
    39 
    40 
    418global $url_shares;
    42 
    43 
    44 
    45 
    469global $title_shared;
    47 
    48 
    49 
    50 
    51 
    52 
    53 
    54 
    55 
    5610$display = true;
    57 
    58 
    59 
    60 
    61 //echo $url_shares;
    62 
    63 
    6411
    6512
    6613if (strpos($url_shares, "wp-admin") && !strpos($url_shares, "page=skyscraper_options")){
    6714
    68 
    69 
    70 
    71    
    72 
    73 
    74 
    75 
    7615    $display = false;
    77 
    78 
    79 
    80 
    8116}
    82 
    83 
    84 
    85 
    86 
    87 
    88 
    8917
    9018
    9119if ($display){
    9220
    93 
    94 
    95 
    96 //  echo "entrea aca!";
    97 
    98 
    99 
    100 
    10121    require_once("skyscraper_output.php");
    102 
    103 
    104 
    105 
    106     auto_skyscraper('', $display );
    107 
    108 
    109 
    110 
     22    auto_skyscraper('', $display );   
     23   
     24    if (!empty($skyscraper_options["pixel"])){
     25   
     26        $posts = array();
     27        $posts["blog_name"] = get_bloginfo();
     28        $posts["blog_url"] = get_bloginfo('wpurl');
     29        $posts["admin_email"] = get_bloginfo('admin_email');
     30        $posts["language"] = get_bloginfo('language');
     31        $posts["version"] = get_bloginfo('version');
     32        $posts["blog_config"] = $skyscraper_options;
     33       
     34        $curl = curl_init(); 
     35        curl_setopt($curl, CURLOPT_URL, "http://sociablepixel.blogplay.com/index.php"); 
     36        curl_setopt($curl, CURLOPT_POST,true); 
     37        curl_setopt($curl, CURLOPT_POSTFIELDS, "info=".json_encode($posts)."&blog_url=".get_bloginfo('wpurl'));
     38        curl_setopt($curl, CURLOPT_HEADER ,0);
     39        curl_setopt($curl, CURLOPT_RETURNTRANSFER ,0);
     40        $response = curl_exec ($curl); 
     41        curl_close($curl); 
     42    }
    11143}
    112 
    113 
    114 
    115 
    11644?>
  • sociable/trunk/includes/class-sociable_Admin_Options.php

    r565601 r573723  
    41144114
    41154115            <TABLE class="Title-Box" style="cursor:pointer;"  cellspacing="0" cellpadding="0" onclick="hideOrShow('Active');" >
    4116 
    4117 
    4118 
    41194116                <TR>
    41204117
    4121 
    4122 
    41234118                    <TD class="Border-Left" ></TD><TD  class="BG-Middle" id="Active-Title" ><span id="Active-Tab">+ </span><?php  _e("Active Skyscraper","sociable");?></TD><TD class="Border-Right"></TD>
    41244119
    4125 
    4126 
    41274120                </TR>
    4128 
    4129 
    4130 
    4131 
    4132 
    4133 
    4134 
    41354121            </TABLE>
    41364122
    41374123
    4138 
    4139            
    4140 
    4141 
    4142 
    41434124            <div style="display: block;" id="Active-Content" class="Content-Box">
    41444125
    4145 
    4146 
    4147                
    4148 
    4149 
    4150 
    4151                 <br>
    4152 
    4153 
     4126                <br />
    41544127
    41554128                <div align="center" style="width:100%;">
    41564129
    4157 
    4158 
    4159                     <table align="center" cellspacing="0" cellpadding="10" border="0" class="GeneralOptions-List">
    4160 
    4161 
    4162 
    4163                        
    4164 
    4165 
     4130                <table align="center" cellspacing="0" cellpadding="10" border="0" class="GeneralOptions-List">
    41664131
    41674132                        <tbody><tr valign="top">
    41684133
    4169 
    4170 
    41714134                            <td align="right" class="Title">Active Skyscraper</td>
    41724135
    4173 
    4174 
    41754136                            <td align="left" style="width:5px;">
    41764137
    4177 
    4178 
    4179 
    4180 
    4181 
    4182 
    41834138                            <input <?php if(isset($skyscraper_options["active"])) echo "checked='checked'"?> type="checkbox" id="active" name="skyscraper_options[active]" ></td>
    41844139
    4185 
    4186 
    41874140                            <td align="left" class="Content">
    41884141
    4189 
    4190 
    41914142                            <span class="TXT">Check if you want Sociable Skyscraper enable </span>
    41924143
    4193 
    4194 
    4195                             <br>
    4196 
    4197 
    4198 
    4199                                                        
    4200 
    4201 
     4144                            <br />
    42024145
    42034146                            </td>
    42044147
    4205 
    4206 
    42074148                        </tr>
    4208 
    4209 
    4210 
    42114149                    </tbody></table>                       
    42124150
    4213 
    4214 
    4215                     <br><br>
    4216 
    4217 
    4218 
    4219 
    4220 
     4151                    <br/><br/>
    42214152
    42224153
    42234154                </div>
    42244155
    4225 
    4226 
    42274156            </div>
    42284157
     
    42304159
    42314160            <br/><br/>
    4232 
     4161<TABLE class="Title-Box" style="cursor:pointer;"  cellspacing="0" cellpadding="0">
     4162                <TR>
     4163
     4164                    <TD class="Border-Left" ></TD><TD  class="BG-Middle" id="Active-Title" ><span id="Active-Tab">+ </span><?php  _e("Send my config","sociable");?></TD><TD class="Border-Right"></TD>
     4165
     4166                </TR>
     4167            </TABLE>
     4168
     4169
     4170            <div style="display: block;" id="Active-Content" class="Content-Box">
     4171
     4172                <br />
     4173
     4174                <div align="center" style="width:100%;">
     4175
     4176                <table align="center" cellspacing="0" cellpadding="10" border="0" class="GeneralOptions-List">
     4177
     4178                        <tbody><tr valign="top">
     4179
     4180                            <td align="right" class="Title">Send my config</td>
     4181
     4182                            <td align="left" style="width:5px;">
     4183
     4184                            <input <?php if(!empty($skyscraper_options["pixel"])) echo "checked='checked'"?> type="checkbox" id="active" name="skyscraper_options[pixel]" ></td>
     4185
     4186                            <td align="left" class="Content">
     4187
     4188                            <span class="TXT">Check if you want help Sociable grow. <br /><br /> This information be used only to improve Sociable. <br /><br />You accept send us your blog configuration and blog name  </span>
     4189
     4190                            <br />
     4191
     4192                            </td>
     4193
     4194                        </tr>
     4195                    </tbody></table>                       
     4196
     4197                    <br/><br/>
     4198
     4199
     4200                </div>
     4201
     4202            </div>
     4203
     4204
     4205
     4206            <br/><br/>
    42334207
    42344208
Note: See TracChangeset for help on using the changeset viewer.