mod/fix upcp and cleanup for smooth update from previous (still using old php52s and mysql)