Changeset 573723
- Timestamp:
- 07/17/2012 06:53:50 PM (13 years ago)
- Location:
- sociable/trunk/includes
- Files:
-
- 2 edited
-
async_request.php (modified) (1 diff)
-
class-sociable_Admin_Options.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
sociable/trunk/includes/async_request.php
r495252 r573723 1 1 <?php 2 2 3 4 5 6 3 require_once("../../../../wp-config.php"); 7 8 9 10 11 12 13 14 15 16 4 global $skyscraper_options; 17 18 19 20 21 22 23 24 25 26 5 $url_shares = $_POST["link"]; 27 28 29 30 31 6 $title_shared = $_POST["title"]; 32 7 33 34 35 36 37 38 39 40 41 8 global $url_shares; 42 43 44 45 46 9 global $title_shared; 47 48 49 50 51 52 53 54 55 56 10 $display = true; 57 58 59 60 61 //echo $url_shares;62 63 64 11 65 12 66 13 if (strpos($url_shares, "wp-admin") && !strpos($url_shares, "page=skyscraper_options")){ 67 14 68 69 70 71 72 73 74 75 76 15 $display = false; 77 78 79 80 81 16 } 82 83 84 85 86 87 88 89 17 90 18 91 19 if ($display){ 92 20 93 94 95 96 // echo "entrea aca!";97 98 99 100 101 21 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 } 111 43 } 112 113 114 115 116 44 ?> -
sociable/trunk/includes/class-sociable_Admin_Options.php
r565601 r573723 4114 4114 4115 4115 <TABLE class="Title-Box" style="cursor:pointer;" cellspacing="0" cellpadding="0" onclick="hideOrShow('Active');" > 4116 4117 4118 4119 4116 <TR> 4120 4117 4121 4122 4123 4118 <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> 4124 4119 4125 4126 4127 4120 </TR> 4128 4129 4130 4131 4132 4133 4134 4135 4121 </TABLE> 4136 4122 4137 4123 4138 4139 4140 4141 4142 4143 4124 <div style="display: block;" id="Active-Content" class="Content-Box"> 4144 4125 4145 4146 4147 4148 4149 4150 4151 <br> 4152 4153 4126 <br /> 4154 4127 4155 4128 <div align="center" style="width:100%;"> 4156 4129 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"> 4166 4131 4167 4132 <tbody><tr valign="top"> 4168 4133 4169 4170 4171 4134 <td align="right" class="Title">Active Skyscraper</td> 4172 4135 4173 4174 4175 4136 <td align="left" style="width:5px;"> 4176 4137 4177 4178 4179 4180 4181 4182 4183 4138 <input <?php if(isset($skyscraper_options["active"])) echo "checked='checked'"?> type="checkbox" id="active" name="skyscraper_options[active]" ></td> 4184 4139 4185 4186 4187 4140 <td align="left" class="Content"> 4188 4141 4189 4190 4191 4142 <span class="TXT">Check if you want Sociable Skyscraper enable </span> 4192 4143 4193 4194 4195 <br> 4196 4197 4198 4199 4200 4201 4144 <br /> 4202 4145 4203 4146 </td> 4204 4147 4205 4206 4207 4148 </tr> 4208 4209 4210 4211 4149 </tbody></table> 4212 4150 4213 4214 4215 <br><br> 4216 4217 4218 4219 4220 4151 <br/><br/> 4221 4152 4222 4153 4223 4154 </div> 4224 4155 4225 4226 4227 4156 </div> 4228 4157 … … 4230 4159 4231 4160 <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/> 4233 4207 4234 4208
Note: See TracChangeset
for help on using the changeset viewer.