This script handles the approval of publishing of the particular insertion gived by website administrators. Upadates insertion status from "waiting" to "published".
More...
This script handles the approval of publishing of the particular insertion gived by website administrators. Upadates insertion status from "waiting" to "published".
Connects to the database, updates the value of 'insertion_status' column of the 'insertions' table from 'waiting' to 'published' for the insertion of a particular id provided as a parameter of GET request. Terminates in case of connection- or update- error and redirects to the main page with an error context info as a parameter of the redirecting GET request.