pi, pp: split basic.php in shared / non-shared files