Version 4.7.6
This commit is contained in:
1 parent
8ba7d43898
commit
7b7404e741
1085 files changed
+30590
-7837
No files matched your search
@@ -22,6 +22,21 @@ if ( !\defined( '\IPS\SUITE_UNIQUE_KEY' ) )
|
||||
*/
|
||||
class _ajax extends \IPS\Dispatcher\Controller
|
||||
{
|
||||
/**
|
||||
* Find Member
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function subscribeToSolved()
|
||||
{
|
||||
\IPS\Session::i()->csrfCheck();
|
||||
|
||||
\IPS\Member::loggedIn()->members_bitoptions['no_solved_reenage'] = 0;
|
||||
\IPS\Member::loggedIn()->save();
|
||||
|
||||
\IPS\Output::i()->json( [ 'message' => \IPS\Member::loggedIn()->language()->addToStack( 'mark_solved_reengage_back_on' ) ] );
|
||||
}
|
||||
|
||||
/**
|
||||
* Find Member
|
||||
*
|
||||
@@ -634,8 +649,8 @@ class _ajax extends \IPS\Dispatcher\Controller
|
||||
/* Then look for used tags */
|
||||
$where = array(
|
||||
array( "tag_text LIKE CONCAT(?, '%')", $input ),
|
||||
array( 'tag_perm_visible=?', 1 ),
|
||||
array( '(' . \IPS\Db::i()->findInSet( 'tag_perm_text', \IPS\Member::loggedIn()->groups ) . ' OR ' . 'tag_perm_text=? )', '*' ),
|
||||
array( '(tag_perm_visible=? OR tag_perm_aai_lookup IS NULL)', 1 ),
|
||||
array( '(' . \IPS\Db::i()->findInSet( 'tag_perm_text', \IPS\Member::loggedIn()->groups ) . ' OR ' . 'tag_perm_text=? OR tag_perm_text IS NULL)', '*' ),
|
||||
);
|
||||
|
||||
foreach ( \IPS\Db::i()->select( 'tag_text', 'core_tags', $where, 'LENGTH(tag_text) ASC', array( 0, 20 ), 'tag_text' )->join( 'core_tags_perms', array( 'tag_perm_aai_lookup=tag_aai_lookup' ) ) as $tag )
|
||||
@@ -660,6 +675,9 @@ class _ajax extends \IPS\Dispatcher\Controller
|
||||
*/
|
||||
public function getCsrfKey()
|
||||
{
|
||||
/* Don't cache the CSRF key */
|
||||
\IPS\Output::i()->pageCaching = FALSE;
|
||||
|
||||
if ( isset( \IPS\Request::i()->path ) )
|
||||
{
|
||||
$baseUrlData = parse_url( \IPS\Http\Url::baseUrl() );
|
||||
|
||||
Reference in new issue
Block a user