Changeset 1193890
- Timestamp:
- 07/07/2015 08:09:04 AM (11 years ago)
- Location:
- e-mailing-service
- Files:
-
- 10 edited
- 1 copied
-
tags/10.5 (copied) (copied from e-mailing-service/trunk)
-
tags/10.5/admin/debug.php (modified) (1 diff)
-
tags/10.5/admin/send_user.php (modified) (5 diffs)
-
tags/10.5/e-mailing-service.php (modified) (3 diffs)
-
tags/10.5/include/cron_v5.php (modified) (3 diffs)
-
tags/10.5/readme.txt (modified) (3 diffs)
-
trunk/admin/debug.php (modified) (1 diff)
-
trunk/admin/send_user.php (modified) (5 diffs)
-
trunk/e-mailing-service.php (modified) (3 diffs)
-
trunk/include/cron_v5.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
e-mailing-service/tags/10.5/admin/debug.php
r1186078 r1193890 46 46 </header> 47 47 </div> 48 <div id="page-subheader"> 49 <div class="wrapper"> 50 <h2> 51 <?php _e("Support","e-mailing-service");?> 52 53 </h2> 54 </div> 55 </div> 48 56 49 <section id="content"> 57 50 <div class="wrapper"> -
e-mailing-service/tags/10.5/admin/send_user.php
r1185581 r1193890 180 180 )); 181 181 $hie = $wpdb->insert_id; 182 if(is_plugin_active('admin-hosting/admin-hosting.php') ) { 182 183 if(ah_service_actif($user_login) == 'null'){ 183 184 $wpdb->insert(AH_table_financial_credit, array( … … 187 188 'information' => ''.__('Debit campagne numero','admin-hosting').' : '.$hie.'' 188 189 )); 190 } 189 191 } 190 192 if(get_user_meta( $user_id, 'sm_host',true) == ''){ … … 238 240 echo '<meta http-equiv="refresh" content="1; url=admin.php?page=e-mailing-service/admin/live_user.php">'; 239 241 } 242 243 elseif($action == "envoi_article"){ 244 list($ID,$POSTTYPE)=explode("|",$campagne); 245 $wpdb->insert("".$wpdb->prefix."sm_historique_envoi", array( 246 'id_newsletter' => $ID, 247 'id_liste' => $liste, 248 'pause' => $pause, 249 'status' => 'En attente', 250 'type' => $POSTTYPE, 251 'track1' => $track1, 252 'track2' => $track2, 253 'date_envoi' => $date_envoi, 254 'mode' => $mode, 255 'login' => $user_login, 256 'attachments' => '', 257 'user_id' => $user_id, 258 )); 259 $hie = $wpdb->insert_id; 260 261 _e("Votre mailing va bientot demarrer","e-mailing-service"); 262 echo '<meta http-equiv="refresh" content="1; url=admin.php?page=e-mailing-service/admin/live_user.php">'; 263 } 240 264 } else { 241 265 … … 294 318 echo "</div>"; 295 319 } 296 320 if(is_plugin_active('admin-hosting/admin-hosting.php') ) { 297 321 if(ah_service_actif($user_login) !='server' && $user_role != 'administrator'){ 298 322 $all_meta_for_user = get_user_meta( $user_id ); … … 309 333 } 310 334 } 311 335 } 312 336 echo '<div class="message success">'; 313 337 echo "<br><h1>".__("Envoyer votre newsletter","e-mailing-service")."</h1>"; -
e-mailing-service/tags/10.5/e-mailing-service.php
r1186078 r1193890 2 2 /* 3 3 Plugin Name: e-mailing service 4 Version: 10. 44 Version: 10.5 5 5 Plugin URI: http://www.e-mailing-service.net 6 6 Description: Send newsletters (emails) with wordpress. Detailed statistics AND rewriting on activation of the Free API … … 36 36 } 37 37 $upload_dir = wp_upload_dir(); 38 define( 'smVERSION', '10. 4' );38 define( 'smVERSION', '10.5' ); 39 39 define( 'smDBVERSION', '4.5' ); 40 40 define( 'smPATH', trailingslashit(dirname(__FILE__)) ); … … 1881 1881 function sm_update_db(){ 1882 1882 global $wpdb; 1883 $current_user = wp_get_current_user(); 1884 $user_login=$current_user->user_login; 1883 1885 $table_name = $wpdb->prefix.'sm_liste_test'; 1884 1886 $table_temps = $wpdb->prefix.'sm_temps'; -
e-mailing-service/tags/10.5/include/cron_v5.php
r1181060 r1193890 16 16 $hie=0; 17 17 18 18 @mysql_connect(DB_HOST, DB_USER, DB_PASSWORD) or die("<br /> Pas de connexion chez le client bd_ip"); 19 @mysql_select_db(DB_NAME)or die("<br /> Excusez nous mais la connection est interrompue pour quelques instants."); 19 20 20 21 echo "<h2>".__("Envoi de votre newsletter","e-mailing-service")." ".$now."</h2>"; … … 36 37 $post_content = "".$post_content2."<br><img src=\"".smURL."/img/suivis.jpg\" border=\"0\"/>"; 37 38 $post_id=$id_newsletter; 39 40 $smliste = mysql_query("SELECT liste_bd,liste_nom FROM `".$table_liste."` WHERE id= ".$id_liste.""); 41 while ($r2 = mysql_fetch_array($smliste)) 42 { 43 extract($r2); 44 $table_email= $liste_bd; 45 $liste_nom= $liste_nom; 46 } 38 47 39 48 if(get_option('sm_license')=="free" || !get_option('sm_license_key')){ … … 138 147 139 148 140 $smliste = mysql_query("SELECT liste_bd,liste_nom FROM `".$table_liste."` WHERE id= ".$id_liste.""); 141 while ($r2 = mysql_fetch_array($smliste)) 142 { 143 extract($r2); 144 $table_email= $liste_bd; 145 $liste_nom= $liste_nom; 146 } 149 147 150 if($status == "En attente"){ 148 151 mysql_query("INSERT IGNORE INTO `".$table_temps."` (email_id,email,nom,ip,lg,date_creation,champs1,champs2,champs3,champs4,champs5,champs6,champs7,champs8,champs9,hie,cle) SELECT id,email,nom,ip,lg,date_creation,champs1,champs2,champs3,champs4,champs5,champs6,champs7,champs8,champs9,".$hie.",cle FROM `".$table_email."` WHERE valide='1' AND bounces='1' LIMIT 0,10000"); -
e-mailing-service/tags/10.5/readme.txt
r1186078 r1193890 5 5 Requires at least: 3.0.1 6 6 Tested up to: 4.2.2 7 Stable tag: 10. 47 Stable tag: 10.5 8 8 License: GPLv3 9 9 License URI: http://www.e-mailing-service.net/license.txt … … 203 203 204 204 == Changelog == 205 205 = 10.5 = 206 * Patch send newsletter and post 206 207 = 10.4 = 207 208 * Add manual crontab for debug … … 329 330 330 331 == Upgrade Notice == 332 = 10.5 = 333 * Patch send newsletter and post 331 334 = 10.4 = 332 335 * Add manual crontab for debug -
e-mailing-service/trunk/admin/debug.php
r1186078 r1193890 46 46 </header> 47 47 </div> 48 <div id="page-subheader"> 49 <div class="wrapper"> 50 <h2> 51 <?php _e("Support","e-mailing-service");?> 52 53 </h2> 54 </div> 55 </div> 48 56 49 <section id="content"> 57 50 <div class="wrapper"> -
e-mailing-service/trunk/admin/send_user.php
r1185581 r1193890 180 180 )); 181 181 $hie = $wpdb->insert_id; 182 if(is_plugin_active('admin-hosting/admin-hosting.php') ) { 182 183 if(ah_service_actif($user_login) == 'null'){ 183 184 $wpdb->insert(AH_table_financial_credit, array( … … 187 188 'information' => ''.__('Debit campagne numero','admin-hosting').' : '.$hie.'' 188 189 )); 190 } 189 191 } 190 192 if(get_user_meta( $user_id, 'sm_host',true) == ''){ … … 238 240 echo '<meta http-equiv="refresh" content="1; url=admin.php?page=e-mailing-service/admin/live_user.php">'; 239 241 } 242 243 elseif($action == "envoi_article"){ 244 list($ID,$POSTTYPE)=explode("|",$campagne); 245 $wpdb->insert("".$wpdb->prefix."sm_historique_envoi", array( 246 'id_newsletter' => $ID, 247 'id_liste' => $liste, 248 'pause' => $pause, 249 'status' => 'En attente', 250 'type' => $POSTTYPE, 251 'track1' => $track1, 252 'track2' => $track2, 253 'date_envoi' => $date_envoi, 254 'mode' => $mode, 255 'login' => $user_login, 256 'attachments' => '', 257 'user_id' => $user_id, 258 )); 259 $hie = $wpdb->insert_id; 260 261 _e("Votre mailing va bientot demarrer","e-mailing-service"); 262 echo '<meta http-equiv="refresh" content="1; url=admin.php?page=e-mailing-service/admin/live_user.php">'; 263 } 240 264 } else { 241 265 … … 294 318 echo "</div>"; 295 319 } 296 320 if(is_plugin_active('admin-hosting/admin-hosting.php') ) { 297 321 if(ah_service_actif($user_login) !='server' && $user_role != 'administrator'){ 298 322 $all_meta_for_user = get_user_meta( $user_id ); … … 309 333 } 310 334 } 311 335 } 312 336 echo '<div class="message success">'; 313 337 echo "<br><h1>".__("Envoyer votre newsletter","e-mailing-service")."</h1>"; -
e-mailing-service/trunk/e-mailing-service.php
r1186078 r1193890 2 2 /* 3 3 Plugin Name: e-mailing service 4 Version: 10. 44 Version: 10.5 5 5 Plugin URI: http://www.e-mailing-service.net 6 6 Description: Send newsletters (emails) with wordpress. Detailed statistics AND rewriting on activation of the Free API … … 36 36 } 37 37 $upload_dir = wp_upload_dir(); 38 define( 'smVERSION', '10. 4' );38 define( 'smVERSION', '10.5' ); 39 39 define( 'smDBVERSION', '4.5' ); 40 40 define( 'smPATH', trailingslashit(dirname(__FILE__)) ); … … 1881 1881 function sm_update_db(){ 1882 1882 global $wpdb; 1883 $current_user = wp_get_current_user(); 1884 $user_login=$current_user->user_login; 1883 1885 $table_name = $wpdb->prefix.'sm_liste_test'; 1884 1886 $table_temps = $wpdb->prefix.'sm_temps'; -
e-mailing-service/trunk/include/cron_v5.php
r1181060 r1193890 16 16 $hie=0; 17 17 18 18 @mysql_connect(DB_HOST, DB_USER, DB_PASSWORD) or die("<br /> Pas de connexion chez le client bd_ip"); 19 @mysql_select_db(DB_NAME)or die("<br /> Excusez nous mais la connection est interrompue pour quelques instants."); 19 20 20 21 echo "<h2>".__("Envoi de votre newsletter","e-mailing-service")." ".$now."</h2>"; … … 36 37 $post_content = "".$post_content2."<br><img src=\"".smURL."/img/suivis.jpg\" border=\"0\"/>"; 37 38 $post_id=$id_newsletter; 39 40 $smliste = mysql_query("SELECT liste_bd,liste_nom FROM `".$table_liste."` WHERE id= ".$id_liste.""); 41 while ($r2 = mysql_fetch_array($smliste)) 42 { 43 extract($r2); 44 $table_email= $liste_bd; 45 $liste_nom= $liste_nom; 46 } 38 47 39 48 if(get_option('sm_license')=="free" || !get_option('sm_license_key')){ … … 138 147 139 148 140 $smliste = mysql_query("SELECT liste_bd,liste_nom FROM `".$table_liste."` WHERE id= ".$id_liste.""); 141 while ($r2 = mysql_fetch_array($smliste)) 142 { 143 extract($r2); 144 $table_email= $liste_bd; 145 $liste_nom= $liste_nom; 146 } 149 147 150 if($status == "En attente"){ 148 151 mysql_query("INSERT IGNORE INTO `".$table_temps."` (email_id,email,nom,ip,lg,date_creation,champs1,champs2,champs3,champs4,champs5,champs6,champs7,champs8,champs9,hie,cle) SELECT id,email,nom,ip,lg,date_creation,champs1,champs2,champs3,champs4,champs5,champs6,champs7,champs8,champs9,".$hie.",cle FROM `".$table_email."` WHERE valide='1' AND bounces='1' LIMIT 0,10000"); -
e-mailing-service/trunk/readme.txt
r1186078 r1193890 5 5 Requires at least: 3.0.1 6 6 Tested up to: 4.2.2 7 Stable tag: 10. 47 Stable tag: 10.5 8 8 License: GPLv3 9 9 License URI: http://www.e-mailing-service.net/license.txt … … 203 203 204 204 == Changelog == 205 205 = 10.5 = 206 * Patch send newsletter and post 206 207 = 10.4 = 207 208 * Add manual crontab for debug … … 329 330 330 331 == Upgrade Notice == 332 = 10.5 = 333 * Patch send newsletter and post 331 334 = 10.4 = 332 335 * Add manual crontab for debug
Note: See TracChangeset
for help on using the changeset viewer.