Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while ($modal = mysql_fetch_array($query)) {
- if (!isset($_SESSION['openBoxes'][$modal['from']]) && isset($_SESSION['History'][$modal['from']])) {
- $items = $_SESSION['History'][$modal['from']];
- }
- $items .= <<<EOD
- {
- "s": "0",
- "f": "{$modal['from']}",
- "m": "{$modal['message']}"
- },
- EOD;
- <cfloop condition="modal eq myquery" index="k">
- <cfif IsDefined('session["openBoxes"][k["from"]]' AND IsDefined('session["History"][k["from"]]'>
- <cfset items = session['History'][k["from"]]>
- </cfif>
- <cfset items &= {"s":"0","f":"#k['from']#","m":"#k[message]#"}>
- </cfloop>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement