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
  #1  
Old 09-03-2014, 06:56 PM
Infernette Infernette is offline
CODE CODE CODE CODE CODE
 
Join Date: Jan 2013
Location: Where I live? I live home.
Posts: 164
Gender: Female
Credits: 23,855
Infernette is on a distinguished road
Default Major bug in 1.3.3 don't know if it carries over

So anyone can read messages sent to people in 1.3.3 due to the fact that they rotate by ID and the id's aren't random strings. (Can we please get a viable codegen that doesn't dupe codes plz plz plz plz plz) If you're using 1.3.3. add this after the if($mysidia->user->group ect ect) end } and it should work dandy. It's best though to look for a codegen and have the id's a string of 20 characters(don't use the default gen that is on the site as it can produce a duplicate entry. I do not know if the system was upgraded in 1.3.4 so this could be a big issue in that gen. I only found it cause I'm reworking everything but the basic $mysidia base on a test base. For science.

PHP Code:
    if($this->action == "read"){
$pageURL 'http';
if (
$_SERVER["HTTPS"] == "on") {$pageURL .= "s";}
$pageURL .= "://";
if (
$_SERVER["SERVER_PORT"] != "80") {
$pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];
} else {
$pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
}
//this here

$parts Explode('/'$pageURL);
$the $parts[count($parts) - 1];
$message $mysidia->db->select("messages", array(), "id='{$the}'")->fetchObject();
if(
$message->touser != $mysidia->user->username)throw new NoPermissionException("This isn't your message.");



ALSO I'm looking for someone who can point me to a REALLY BASIC site framework or tutorial, one that has things like calling the db through a $var(like on here) a theme, and *maybe* a few basic pages(i.e. Index). If anyone knows a good basic barebones tutorial it'd be sweet. :)
__________________
No, I have no idea what I'm doing. But it works. Barely.
Reply With Quote
  #2  
Old 09-05-2014, 05:54 PM
Hwona's Avatar
Hwona Hwona is offline
Member
 
Join Date: Mar 2013
Posts: 620
Gender: Female
Credits: 48,741
Hwona is on a distinguished road
Default

I'd love to have this fixed. :L
__________________
Reply With Quote
  #3  
Old 09-06-2014, 12:16 PM
Abronsyth's Avatar
Abronsyth Abronsyth is offline
A Headache Embodied
 
Join Date: Aug 2011
Location: NY
Posts: 1,011
Gender: Male
Credits: 113,327
Abronsyth is on a distinguished road
Default

So this should be placed after this code in Messages.php?
PHP Code:
        if($mysidia->user->usergroup->getpermission("canpm") == "no"){
            throw new 
NoPermissionException($mysidia->lang->banned);
        } 
Correct?
__________________
My Mods Site (1.3.4, 2020 Mods)
Reply With Quote
  #4  
Old 09-06-2014, 01:09 PM
Hwona's Avatar
Hwona Hwona is offline
Member
 
Join Date: Mar 2013
Posts: 620
Gender: Female
Credits: 48,741
Hwona is on a distinguished road
Default

Thanks for the code Infernette!
__________________
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Major ACP problems Empress_Swanbottom Questions and Supports 23 03-09-2013 09:09 AM
Major Issue..... SilverDragonTears Questions and Supports 0 08-18-2011 08:22 PM
Major Coding help in general Cerelia Questions and Supports 9 06-29-2011 02:52 PM
Major cash glitch RoconzaArt Questions and Supports 8 03-19-2011 02:39 PM
Major Problem RoconzaArt Suggestions and Feature Requests 15 01-22-2011 11:29 AM


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

Currently Active Users: 2310 (0 members and 2310 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