PHP adaptation of Videoscripts from fbonzon