Plugin Directory

Changeset 1969673


Ignore:
Timestamp:
11/06/2018 09:42:21 AM (7 years ago)
Author:
christophesecher
Message:

correct code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • traveladsnetwork-com/trunk/travelads_plugin.php

    r1969658 r1969673  
    5757//
    5858add_action('admin_print_styles', function() {
     59
     60    global $wpdb;
     61
     62    $res = $wpdb->get_results('SELECT * FROM wp_tan_pages_config
     63                WHERE `page_id` = "'.$ID.'"');
     64   
     65    $pageConfig = $res[0];
     66
     67    echo $pageConfig->{'mode'};
     68   
    5969    switch(preg_replace('/\?.*$/', '', $_SERVER['REQUEST_URI']))
    6070    {
     
    8090    tan_test_log();
    8191
    82     //
    83     // load the keyWords ASAP
    84     //
    85    
    8692    $res = $wpdb->get_results('SELECT * FROM wp_tan_pages_config
    8793                WHERE `page_id` = "'.$ID.'"');
Note: See TracChangeset for help on using the changeset viewer.