#!/usr/bin/env php con->begin(); try { $changes = dcUpgrade::dotclearUpgrade($core); } catch (Exception $e) { $core->con->rollback(); throw $e; } $core->con->commit(); echo 'Upgrade process successfully completed ('.$changes."). \n"; exit(0); } catch (Exception $e) { echo $e->getMessage()."\n"; exit(1); } ?>