The French president has warned he is ready to restrict civil liberties after fierce rioting left French cities burning and in ruins.