i uploaded a buncha php files at work today, and now that i check them at home, i notice their formatting is all screwed up. instead of appearing in the nice, clean way, its a big jumbled mess.
this:
[]
info $Board_q = addslashes($Board); $query = " SELECT Bo_Title,Bo_Last,Bo_Read_Perm,Bo_Write_Perm,Bo_Moderated,Bo_Cat,Bo_CatName,Bo_ThreadAge,Bo_Reply_Perm,Bo_HTML,Bo_Markup,Bo_SpecialHeader,Bo_StyleSheet,Bo_Number,Bo_Threads FROM {$config['tbprefix']}Boards WHERE Bo_Keyword = '$Board_q' AND Bo_Active = '1' $groupquery "; $sth = $dbh -> do_query($query,__LINE__,__FILE__); $rows = $dbh -> fetch_array($sth); list($Title,$Last,$CanRead,$CanWrite,$Moderated,$C,$CatName,$ThreadAge,$CanReply,$HTML,$Markup,$fheader,$fstyle,$bonumber,$totaltopics) = $rows; $dbh -> finish_sth($rows); if (!$Title) { $html -> not_right($ubbt_lang['BAD_GROUP'],$Cat); } // If this is a visit to a new forum then we need // to track any preferences for this forum $updatemyprefs = 0; if ((!isset($myprefs['Board'])) || ($myprefs['Board'] != $Board)) { $myprefs['Board'] = $Board; $myprefs['age'] = $ThreadAge; $myprefs['sort'] = 5; $myprefs['view'] = $view; $updatemyprefs = 1; } else { if (($o) && ($myprefs['age'] != $o)) { $myprefs['age'] = $o; $updatemyprefs = 1; } if
[/]
instead of this:
[]
<tr><td class="paddingtop paddingbottom autorow colored-row" valign="top">
<span class="autorow-title">
<label class="radio" for="maxgraemlins">
{$ubbt_lang['MAX_GRAEMLIN']}</label><br />
</span>
<span class="autorow-description">
{$ubbt_lang['MAX_GRAEMLIN_1']}
</span>
</td><td class="paddingtop paddingbottom autorow colored-row" valign="top">
<input type="text" name="maxgraemlins" value="{$config['maxgraemlins']}" size="5" id="maxgraemlins" />
</td></tr>
[/]
i'm using word pad (not note pad) to view the files. any idea how to fix'em?