Ejemplo n.º 1
0
  $(function() {
    $( document ).tooltip();
  });
  </script>
  <style>
  label {
    display: inline-block;
    width: 5em;
  }
  </style> ' . "<fieldset id=test><legend>Linksync Log</legend><div style='float: left;\nmargin-bottom: 10px;'><form method='POST'><input type='submit' class='button' title=' Use this button to upload your log file to linksync. You should only need to do this if requested by linksync support staff.'    style='color:blue'   name='send_log' value='Send log to linksync'></form></div><div style='float: right;\nmargin-bottom: 10px;'><form method='POST'><input type='submit' class='button' style='color:red' name='clearlog' value='Clear Logs'></form></div>" . linksync_class::getLogs() . "\n<a href='?page=linksync&setting=logs&check=all'><br><center><input type='button' class='button' style='color:#0074a2' name='allLogs' value='Show all'></a></fieldset>";
        }
    } elseif ($_GET['page'] == 'linksync' && $_GET['setting'] == 'manage_api_key') {
        include_once dirname(__FILE__) . '/manage_api_key.php';
    } elseif ($_GET['page'] == 'linksync' && $_GET['setting'] == 'product_config') {
        include_once dirname(__FILE__) . '/product_config.php';
    } elseif ($_GET['page'] == 'linksync' && $_GET['setting'] == 'order_config') {
        require_once dirname(__FILE__) . '/order_config.php';
    } elseif ($_GET['page'] == 'linksync' && $_GET['setting'] == 'logs' && $_GET['check'] == 'all') {
        echo '<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
            <link rel="stylesheet" href="../wp-content/plugins/linksync/css/jquery-ui.css">
<script type="text/javascript" src="../wp-content/plugins/linksync/jquery-tiptip/jquery-1.10.2.js"></script>
<script type="text/javascript" src="../wp-content/plugins/linksync/jquery-tiptip/jquery-ui.js"></script>
' . "<fieldset><legend>Linksync Log</legend>" . linksync_class::printallLogs() . "</fieldset>";
    } elseif ($_GET['page'] == 'linksync' && $_GET['setting'] == 'other_setting') {
        include_once dirname(__FILE__) . '/other_setting.php';
    }
} else {
    include_once dirname(__FILE__) . '/configuration.php';
}
?>
</div> 
Ejemplo n.º 2
0
 public function linksync_logs()
 {
     include_once dirname(__FILE__) . '/classes/Class.linksync.php';
     linksync_class::printallLogs();
 }