Jump to content

dtwood01

Clients
  • Posts

    9
  • Joined

  • Last visited

 Content Type 

Downloads

Release Notes

IPS4 Guides

IPS4 Developer Documentation

Invision Community Blog

Development Blog

Deprecation Tracker

Providers Directory

Forums

Events

Store

Gallery

Posts posted by dtwood01

  1. Hey all, very recently we received a notification from our WHM that there were two file paths to  ipb_converge.php files that were flagged as malware utilizing SQL injection. Taking a look at both of these files, they are both identical, and all lines of code seem to be very well documented. They also have not been touched or modified since 2012, so we're wondering if they're in the right place or even necessary. It also seems odd that one of them resides within a css folder structure.

    Happy to provide any additional information, just seems odd that they're being flagged just now.

    Paths to files, just to know if they are actually in the proper place:
    public_html/forum/public/min/ipb_converge.php
    public_html/forum/public/style_css/ipb_converge.php

  2. I'm receiving the following in my response. My community url is correct, is that not the right path for /core/members?

    Not Found

    The requested URL was not found on this server.

    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

     

  3. Thank you for the response. I'm receiving no curl errors with the below.
     

    <?php
        $communityUrl = 'http://poolspaforum.com/forum/api';
        $apiKey = 'mtapikey';
    
        $curl = curl_init( $communityUrl . '/core/members' );
        curl_setopt_array( $curl, array(
            CURLOPT_RETURNTRANSFER	=> TRUE,
            CURLOPT_HTTPAUTH	=> CURLAUTH_BASIC,
            CURLOPT_USERPWD		=> "{$apiKey}:"
        ));
    
    	if(curl_exec($curl) === false){
        	echo 'Curl error: ' . curl_error($curl);
    	}else{
        	echo 'Operation completed without any errors';
    	}
    
        $response = curl_exec( $curl );
    
    ?>
    <h1>Hi</h1>
    
    <p><?php echo $response; ?></p>

     

  4. I'm attempting to make a basic call to the api using the example code found in the documentation, and I'm not seeing anything resulting in the php echo. Can someone point me in the right direction? I have a basic grasp of php. I also am sure that the api key has access to api/core/hello as set in the AdminCP.

     

    <?php
          $communityUrl = 'https://www.poolspaforum.com/forum/';
          $apiKey = 'myapikey';
    
          $curl = curl_init( $communityUrl . 'api/core/hello' );
          curl_setopt_array( $curl, array(
              CURLOPT_RETURNTRANSFER	=> TRUE,
              CURLOPT_HTTPAUTH	=> CURLAUTH_BASIC,
              CURLOPT_USERPWD		=> "{$apiKey}:"
          ) );
          $response = curl_exec( $curl );
    
          echo $response;
    ?>
    <h1>Hi</h1>

     

×
×
  • Create New...