Advertisement
Guest User

Untitled

a guest
Sep 2nd, 2014
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. while ($modal = mysql_fetch_array($query)) {
  2.  
  3. if (!isset($_SESSION['openBoxes'][$modal['from']]) && isset($_SESSION['History'][$modal['from']])) {
  4. $items = $_SESSION['History'][$modal['from']];
  5. }
  6.  
  7. $items .= <<<EOD
  8. {
  9. "s": "0",
  10. "f": "{$modal['from']}",
  11. "m": "{$modal['message']}"
  12. },
  13. EOD;
  14.  
  15. <cfloop condition="modal eq myquery" index="k">
  16. <cfif IsDefined('session["openBoxes"][k["from"]]' AND IsDefined('session["History"][k["from"]]'>
  17. <cfset items = session['History'][k["from"]]>
  18. </cfif>
  19. <cfset items &= {"s":"0","f":"#k['from']#","m":"#k[message]#"}>
  20. </cfloop>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement