Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php if (!defined('BASEPATH')) exit('No direct script access allowed');
- class Pingler extends CI_Controller {
- public function __construct() {
- parent::__construct();
- $this->load->helper('pingler');
- }
- public function ping() {
- if ($this->input->server('REQUEST_METHOD') == 'POST') {
- $data = $this->input->post("input");
- echo submit($data["name"], $data["url"],TRUE);
- } else {
- redirect(base_url(), "refresh");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement