added purge cache link and changed ['PHP_SELF'] to ['SCRIPT_NAME']