Plugin Directory

Changeset 1193890


Ignore:
Timestamp:
07/07/2015 08:09:04 AM (11 years ago)
Author:
jooky
Message:

tagging version 10.5

Location:
e-mailing-service
Files:
10 edited
1 copied

Legend:

Unmodified
Added
Removed
  • e-mailing-service/tags/10.5/admin/debug.php

    r1186078 r1193890  
    4646        </header>
    4747</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           
    5649                 <section id="content">
    5750            <div class="wrapper">                                     
  • e-mailing-service/tags/10.5/admin/send_user.php

    r1185581 r1193890  
    180180       ));
    181181          $hie = $wpdb->insert_id;
     182            if(is_plugin_active('admin-hosting/admin-hosting.php') ) {
    182183            if(ah_service_actif($user_login) == 'null'){
    183184            $wpdb->insert(AH_table_financial_credit, array(
     
    187188            'information' =>  ''.__('Debit campagne numero','admin-hosting').' : '.$hie.''
    188189            ));
     190            }
    189191            }
    190192if(get_user_meta( $user_id, 'sm_host',true) == ''){
     
    238240        echo '<meta http-equiv="refresh" content="1; url=admin.php?page=e-mailing-service/admin/live_user.php">';
    239241    }
     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    }
    240264} else {
    241265
     
    294318echo "</div>"; 
    295319}
    296 
     320if(is_plugin_active('admin-hosting/admin-hosting.php') ) {
    297321if(ah_service_actif($user_login) !='server' && $user_role != 'administrator'){
    298322 $all_meta_for_user = get_user_meta( $user_id );
     
    309333  }
    310334}
    311 
     335}
    312336echo '<div class="message success">';
    313337echo "<br><h1>".__("Envoyer votre newsletter","e-mailing-service")."</h1>";
  • e-mailing-service/tags/10.5/e-mailing-service.php

    r1186078 r1193890  
    22/*
    33Plugin Name: e-mailing service
    4 Version: 10.4
     4Version: 10.5
    55Plugin URI: http://www.e-mailing-service.net
    66Description: Send newsletters (emails) with wordpress. Detailed statistics AND rewriting on activation of the Free API
     
    3636}
    3737$upload_dir = wp_upload_dir();
    38 define( 'smVERSION', '10.4' );
     38define( 'smVERSION', '10.5' );
    3939define( 'smDBVERSION', '4.5' );
    4040define( 'smPATH', trailingslashit(dirname(__FILE__)) );
     
    18811881function sm_update_db(){
    18821882    global $wpdb; 
     1883    $current_user = wp_get_current_user();
     1884$user_login=$current_user->user_login;
    18831885    $table_name = $wpdb->prefix.'sm_liste_test';
    18841886    $table_temps = $wpdb->prefix.'sm_temps';
  • e-mailing-service/tags/10.5/include/cron_v5.php

    r1181060 r1193890  
    1616$hie=0;
    1717
    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.");
    1920
    2021echo "<h2>".__("Envoi de votre newsletter","e-mailing-service")." ".$now."</h2>";   
     
    3637    $post_content = "".$post_content2."<br><img src=\"".smURL."/img/suivis.jpg\" border=\"0\"/>";
    3738    $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    }
    3847         
    3948    if(get_option('sm_license')=="free" || !get_option('sm_license_key')){
     
    138147     
    139148       
    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
    147150    if($status == "En attente"){
    148151    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  
    55Requires at least: 3.0.1
    66Tested up to: 4.2.2
    7 Stable tag: 10.4
     7Stable tag: 10.5
    88License: GPLv3
    99License URI: http://www.e-mailing-service.net/license.txt
     
    203203
    204204== Changelog ==
    205 
     205= 10.5 =
     206* Patch send  newsletter and post
    206207= 10.4 =
    207208* Add manual crontab for debug
     
    329330
    330331== Upgrade Notice ==
     332= 10.5 =
     333* Patch send  newsletter and post
    331334= 10.4 =
    332335* Add manual crontab for debug
  • e-mailing-service/trunk/admin/debug.php

    r1186078 r1193890  
    4646        </header>
    4747</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           
    5649                 <section id="content">
    5750            <div class="wrapper">                                     
  • e-mailing-service/trunk/admin/send_user.php

    r1185581 r1193890  
    180180       ));
    181181          $hie = $wpdb->insert_id;
     182            if(is_plugin_active('admin-hosting/admin-hosting.php') ) {
    182183            if(ah_service_actif($user_login) == 'null'){
    183184            $wpdb->insert(AH_table_financial_credit, array(
     
    187188            'information' =>  ''.__('Debit campagne numero','admin-hosting').' : '.$hie.''
    188189            ));
     190            }
    189191            }
    190192if(get_user_meta( $user_id, 'sm_host',true) == ''){
     
    238240        echo '<meta http-equiv="refresh" content="1; url=admin.php?page=e-mailing-service/admin/live_user.php">';
    239241    }
     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    }
    240264} else {
    241265
     
    294318echo "</div>"; 
    295319}
    296 
     320if(is_plugin_active('admin-hosting/admin-hosting.php') ) {
    297321if(ah_service_actif($user_login) !='server' && $user_role != 'administrator'){
    298322 $all_meta_for_user = get_user_meta( $user_id );
     
    309333  }
    310334}
    311 
     335}
    312336echo '<div class="message success">';
    313337echo "<br><h1>".__("Envoyer votre newsletter","e-mailing-service")."</h1>";
  • e-mailing-service/trunk/e-mailing-service.php

    r1186078 r1193890  
    22/*
    33Plugin Name: e-mailing service
    4 Version: 10.4
     4Version: 10.5
    55Plugin URI: http://www.e-mailing-service.net
    66Description: Send newsletters (emails) with wordpress. Detailed statistics AND rewriting on activation of the Free API
     
    3636}
    3737$upload_dir = wp_upload_dir();
    38 define( 'smVERSION', '10.4' );
     38define( 'smVERSION', '10.5' );
    3939define( 'smDBVERSION', '4.5' );
    4040define( 'smPATH', trailingslashit(dirname(__FILE__)) );
     
    18811881function sm_update_db(){
    18821882    global $wpdb; 
     1883    $current_user = wp_get_current_user();
     1884$user_login=$current_user->user_login;
    18831885    $table_name = $wpdb->prefix.'sm_liste_test';
    18841886    $table_temps = $wpdb->prefix.'sm_temps';
  • e-mailing-service/trunk/include/cron_v5.php

    r1181060 r1193890  
    1616$hie=0;
    1717
    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.");
    1920
    2021echo "<h2>".__("Envoi de votre newsletter","e-mailing-service")." ".$now."</h2>";   
     
    3637    $post_content = "".$post_content2."<br><img src=\"".smURL."/img/suivis.jpg\" border=\"0\"/>";
    3738    $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    }
    3847         
    3948    if(get_option('sm_license')=="free" || !get_option('sm_license_key')){
     
    138147     
    139148       
    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
    147150    if($status == "En attente"){
    148151    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  
    55Requires at least: 3.0.1
    66Tested up to: 4.2.2
    7 Stable tag: 10.4
     7Stable tag: 10.5
    88License: GPLv3
    99License URI: http://www.e-mailing-service.net/license.txt
     
    203203
    204204== Changelog ==
    205 
     205= 10.5 =
     206* Patch send  newsletter and post
    206207= 10.4 =
    207208* Add manual crontab for debug
     
    329330
    330331== Upgrade Notice ==
     332= 10.5 =
     333* Patch send  newsletter and post
    331334= 10.4 =
    332335* Add manual crontab for debug
Note: See TracChangeset for help on using the changeset viewer.