Перейти к содержанию

lanc3lot

Пользователи
  • Постов

    11
  • Зарегистрирован

  • Посещение

Сообщения, опубликованные lanc3lot

  1. Thank you for the upload @by_ix - I still thought can't make the sticky note to appear. I searched the support thread on official, and somewhere Jackal, the original creator, said this: https://invisioncommunity.com/forums/topic/438959-sticky-notes-support-topic/page/10/#comment-2727869 

    I use Taman's theme, specifically Magnum, so it may this the problem, although i can't understand what's custom edit i have to create for it. Anyone with some knowledge and some spare time, tell me to pm him my forum's url :) ty in advance, i believe Sticky Notes will be a very nice app to have, for guest users, to make them register or for specific members to reply to a thread / follow some procedure. 

  2. Just now, Desti said:

    third message in this topic

    I did that, but still it says 

     

    Screenshot_132.jpg

    So the license.php is as follows:

    <?php
    
    
    namespace IPS\stickynotes\modules\admin\stickynotes;
    
    /* To prevent PHP errors (extending class does not exist) revealing path */
    if ( !defined( '\IPS\SUITE_UNIQUE_KEY' ) )
    {
    	header( ( isset( $_SERVER['SERVER_PROTOCOL'] ) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0' ) . ' 403 Forbidden' );
    	exit;
    }
    
    /**
     * license
     */
    class _license extends \IPS\Dispatcher\Controller
    {
    	public static $csrfProtected = TRUE;
    	/**
    	 * Execute
    	 *
    	 * @return	void
    	 */
    	public function execute()
    	{
    		parent::execute();
    	}
    
    	/**
    	 * ...
    	 *
    	 * @return	void
    	 */
    	protected function manage()
    	{
    		$form = new \IPS\Helpers\Form;		
    		
    		$form->add( new \IPS\Helpers\Form\Text( "SN_license_key", \IPS\Settings::i()->SN_license_key, TRUE, array(), function( $val ) {
    		if ( $val )
    		{
    		    $baseKey = base64_encode( $val );
    		    $domain = \IPS\Settings::i()->base_url;
    		    $product = 1531912419;
    		    try
    		    {
    		        $response = \IPS\Http\Url::external( "https://ipsdev.org/applications/licensingsystem/interface/main/licenses.php?key={$baseKey}&domain={$domain}&product={$product}&activate=1" )->request()->get();
    		    }
    		    catch ( \Exception $e )
    		    {
    		        throw new \DomainException("error");
    		    }
    		    $data = $response->decodeJson();
    			$response->httpResponseCode = 200;
    		    if ( $response->httpResponseCode != 200 )
    		    {
    		        throw new \DomainException( $data["message"] );
    		    }
    		}
    		} ) );
    		
    		if ( $values = $form->values() )
            {
    			$form->saveAsSettings();
    		    \IPS\Output::i()->redirect( \IPS\Http\Url::internal( 'app=stickynotes&module=stickynotes&controller=license' ), 'License Key Accepted' );
    	        return TRUE;
            }
    		
    		\IPS\Output::i()->title = \IPS\Member::loggedIn()->language()->addToStack( 'SN_license_key' );
    		\IPS\Output::i()->output = $form;
    	}
    }

     

  3. Hey everyone,

    It's not one so in order to not spam the shopping page, i write them here. Ofc if someone have found them, it will be nice to share them, but if not, i am willing to buy them. I can send you the money through paypal. I will have more trust if it's someone with many posts here in Ipbmafia :)

    The apps are:

    Who read this thread 1.0.1

    https://invisioncommunity.com/files/file/9821-who-read-this-thread/

    Sticky Notes 2.3.2

    https://invisioncommunity.com/files/file/8612-sticky-notes

    Quizzes 1.6.3

    https://invisioncommunity.com/files/file/8381-quizzes/

    Voices Messages for Chatbox 1.0.2

    https://invisioncommunity.com/files/file/9766-voice-message-for-chatbox/

    I posted them with the order i want to find / buy them :) Thanks in advance for anyone willing to help me :)

  4. On 4/17/2022 at 6:58 PM, Desti said:

    В этой можно всё исправить, добавив строку

        public static $csrfProtected = TRUE;

    в каждый файл в папке sources/admin следующей строкой после class ... {

    Должно получится так:

    class _xxxxxxx extends \IPS\Node\Controller
    {
        public static $csrfProtected = TRUE;

    В 4.6.12 вроде после этого работает нормально.

    Just to be sure. The zip file, have a sources folder where inside are these ones:

    Screenshot_131.jpg.69be4bc4b3a7b5ed0762e986cf96291b.jpg

    Need to each of these files, add after class xxxx, for example on dismissed it says:

    class _Dismissed extends \IPS\Patterns\ActiveRecord

    the code:

    public static $csrfProtected = TRUE;
    

    And it will work with 4.6? 

  5. On 4/17/2022 at 6:58 PM, Desti said:

    В этой можно всё исправить, добавив строку

        public static $csrfProtected = TRUE;

    в каждый файл в папке sources/admin следующей строкой после class ... {

    Должно получится так:

    class _xxxxxxx extends \IPS\Node\Controller
    {
        public static $csrfProtected = TRUE;

    В 4.6.12 вроде после этого работает нормально.

    Anyone tested this?

×
×
  • Создать...