HomeHelpTrac

Ignore:
Timestamp:
06/07/11 23:41:51 (12 months ago)
Author:
Alexander Trofimov
Message:

Code cleaning:

  • converting new lines to \n
  • deleting spaces at the end of every line
  • converting all tabs to 4 spaces
  • automated script for future cleaning was added
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xmlrpc/BxDolXMLRPCMessages.php

    r12990 r15211  
    3030            return new xmlrpcresp(new xmlrpcval(array('error' => new xmlrpcval(1,"int")), "struct")); 
    3131 
    32         require_once( BX_DIRECTORY_PATH_ROOT . 'templates/tmpl_' . $GLOBALS['tmpl'] . '/scripts/BxTemplMailBox.php');  
     32        require_once( BX_DIRECTORY_PATH_ROOT . 'templates/tmpl_' . $GLOBALS['tmpl'] . '/scripts/BxTemplMailBox.php'); 
    3333 
    3434        $sRecipient = process_db_input ($sRecipient, BX_TAGS_NO_ACTION, BX_SLASHES_NO_ACTION); 
     
    3636        if (!$aRecipient) 
    3737            return new xmlrpcval (BX_MAILBOX_SEND_UNKNOWN_RECIPIENT); 
    38          
     38 
    3939        $aMailBoxSettings = array ('member_id' => $iId); 
    4040        $oMailBox = &new BxTemplMailBox('mail_page_compose', $aMailBoxSettings); 
    4141 
    42         $aComposeSettings = array (  
     42        $aComposeSettings = array ( 
    4343            'send_copy' => 'recipient' == $sSendTo || 'both' == $sSendTo ? true : false, 
    4444            'notification' => false, 
     
    5858        $iMsgId = (int)$iMsgId; 
    5959        $sJoinOn = $isInbox ? " `m`.`Sender` = `p`.`ID` " : " `m`.`Recipient` = `p`.`ID` "; 
    60         $aRow = db_arr ("SELECT  
    61                 `m`.`ID`, `m`.`Date`, `m`.`Sender`, `m`.`Recipient`, `m`.`Subject`, `m`.`Text`, `m`.`New`,  
    62                 `p`.`NickName` AS `Nick`  
     60        $aRow = db_arr ("SELECT 
     61                `m`.`ID`, `m`.`Date`, `m`.`Sender`, `m`.`Recipient`, `m`.`Subject`, `m`.`Text`, `m`.`New`, 
     62                `p`.`NickName` AS `Nick` 
    6363            FROM `sys_messages` AS `m` 
    6464            LEFT JOIN `Profiles` AS `p` ON ($sJoinOn) 
     
    9797        $sWhere = $isInbox ? " `Recipient` = '$iId' " : " `Sender`= '$iId' "; 
    9898        $sJoinOn = $isInbox ? " `m`.`Sender` = `p`.`ID` " : " `m`.`Recipient` = `p`.`ID` "; 
    99         $r = db_res ("SELECT  
    100                 `m`.`ID`, `m`.`Date`, `m`.`Sender`, `m`.`Recipient`, `m`.`Subject`, `m`.`New`,  
    101                 `p`.`NickName` AS `Nick`  
     99        $r = db_res ("SELECT 
     100                `m`.`ID`, `m`.`Date`, `m`.`Sender`, `m`.`Recipient`, `m`.`Subject`, `m`.`New`, 
     101                `p`.`NickName` AS `Nick` 
    102102            FROM `sys_messages` AS `m` 
    103103            LEFT JOIN `Profiles` AS `p` ON ($sJoinOn) 
    104             WHERE $sWhere  
     104            WHERE $sWhere 
    105105            ORDER BY `Date` DESC"); 
    106106        while ($aRow = mysql_fetch_array ($r)) 
Note: See TracChangeset for help on using the changeset viewer.