Changeset 909654
- Timestamp:
- 05/07/2014 11:54:46 AM (12 years ago)
- Location:
- wordquest/trunk
- Files:
-
- 2 edited
-
idle_messages.js (modified) (1 diff)
-
wordpress-rpg.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wordquest/trunk/idle_messages.js
r908806 r909654 5 5 rpg_box = document.getElementById("idle_msg"); 6 6 myArray = object_name.messages; 7 rpg_box.innerText = myArray[Math.floor(Math.random() * myArray.length)] + "..."; //To be replaced by the other messages.7 rpg_box.innerText = (myArray[Math.floor(Math.random() * myArray.length)] + "..." ).replace(/(\r\n|\n|\r)/gm,"");; //To be replaced by the other messages. 8 8 } -
wordquest/trunk/wordpress-rpg.php
r909653 r909654 50 50 $experience = 0; 51 51 if (!file_exists(WP_CONTENT_DIR . "/wordquest/")){ 52 $r = mkdir(WP_CONTENT_DIR. "/wordquest/"); 53 if ($r){ 54 echo "created? " . WP_CONTENT_DIR. "/wordquest/"; 55 }else{ 56 echo "not created? " . WP_CONTENT_DIR. "/wordquest/"; 57 } 58 ob_flush(); 59 flush(); 60 }else{ 61 echo "It Exists."; 62 ob_flush(); 63 flush(); 52 mkdir(WP_CONTENT_DIR. "/wordquest/"); 64 53 } 65 66 54 }else{ 67 55 $json = file_get_contents ( $file );
Note: See TracChangeset
for help on using the changeset viewer.