Which one should i use?

Results 1 to 3 of 3
  1. #1
    Valued Member Muhd Nazmi is offline
    MemberRank
    Dec 2012 Join Date
    Kepler22Location
    107Posts

    Which one should i use?

    i have no idea between in using :
    http://votingapi.com/vote/HOTELNAME or
    http://retroslist.com/vote/HOTELNAME

    Which one should i choose for voting and validate?


  2. #2
    ~|=_=|~ Receiver is offline
    MemberRank
    Sep 2013 Join Date
    PlutoLocation
    624Posts

    Re: Which one should i use?

    2nd one

  3. #3
    Valued Member Muhd Nazmi is offline
    MemberRank
    Dec 2012 Join Date
    Kepler22Location
    107Posts

    Re: Which one should i use?

    Last script become this?

    Code:
    final public function CheckIfVoted($ip) {
    		$url = 'http://retroslist.com/validate.php?user=**&ip=' . $ip;
    		$context = stream_context_create(array('http' => array('timeout' => 5)));
                    $data =  @file_get_contents($url, 0, $context);
    
                    if(!$data || !is_numeric($data)) {
                      return "[ERROR] System Failure in voting system.";
                    } else if ($data == 1 || $data == 2) {
                        return "";
                    } else {
                        return '<form action="http://retroslist.com/vote/**" method="post" name="votingform">
                        <input type="hidden" name="api_url" value="http://**" />
                        </form>
                        <script language="javascript">setTimeout("document.forms[\'votingform\'].submit()",0);</script>';
                        exit;                                       
                    }
    				}



Advertisement