Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Questions and Supports

Notices

Reply
 
Thread Tools Display Modes
  #11  
Old 12-23-2015, 11:59 AM
Abronsyth's Avatar
Abronsyth Abronsyth is offline
A Headache Embodied
 
Join Date: Aug 2011
Location: NY
Posts: 1,011
Gender: Male
Credits: 113,094
Abronsyth is on a distinguished road
Default

Oh! Kyttias you are absolutely brilliant!
__________________
My Mods Site (1.3.4, 2020 Mods)
Reply With Quote
  #12  
Old 03-29-2017, 11:49 PM
ewe ewe is offline
Member
 
Join Date: Mar 2017
Posts: 8
Gender: Female
Credits: 1,751
ewe is on a distinguished road
Default

I was similarly irritated by reply not grabbing a title and I accidentally stumbled upon this. I felt the need to change one thing, though - a devious and clever user could theoretically go through message IDs and read things not meant for them.

PHP Code:
$message = new PrivateMessage
// CHANGES START HERE

$title "(no subject)"// this way it'll never be blank
if($mysidia->input->get("id")){ // if there's an get value
    
$where trim($mysidia->input->get("id")); // trim the value
     
if (!ctype_digit($where)) { // if its not numeric only
        
$user $where// create a message to this user
    
} else if (ctype_digit($where)){ // if it IS numeric only then it's a reply, so pull data        
        
$oldMessage = new PrivateMessage($where); 
        
//my little paranoid change is here: 
        
if($mysidia->user->username == $oldMessage->fromuser) {     
          
$js "<script>$('.content h2').text('Reply To Message');</script>"// optional
          
$user $oldMessage->fromuser;     
          
$title "RE: ".$oldMessage->messagetitle;    
          
$msg "› {$user} wrote: ".$oldMessage->messagetext;
        }
    }
}

// CHANGES END HERE
$editor $message->getEditor(); 
Reply With Quote
  #13  
Old 04-02-2017, 11:03 PM
Ittermat's Avatar
Ittermat Ittermat is offline
The awesomesauce
 
Join Date: Feb 2016
Location: in front of my laptop
Posts: 272
Gender: Female
Credits: 33,435
Ittermat is on a distinguished road
Default

This was noticed before by my other coder ^^

http://mysidiaadoptables.com/forum/p...php?issueid=57
Reply With Quote
  #14  
Old 04-10-2017, 02:24 AM
ewe ewe is offline
Member
 
Join Date: Mar 2017
Posts: 8
Gender: Female
Credits: 1,751
ewe is on a distinguished road
Default

Whoops!
Well at least it's in the same thread in case someone else is thick and didn't notice the other thread in bugs? :sheepish grin:
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 11:17 AM.

Currently Active Users: 618 (0 members and 618 guests)
Threads: 4,080, Posts: 32,024, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636