public function modify_site_data() { $dimLogo = array(125, 125); $VAdmin = new VAdmin(); $logo = $VAdmin->getNewLogo(); if ($logo) { $dir = "images/"; $file = $dir . "logo.jpg"; $image = new USimpleImage(); $image->load($logo); $image->resize($dimLogo[0], $dimLogo[1]); $image->save($file); } $newName = $VAdmin->getNewName(); global $config; if ($newName != $config['name']) { $config['name'] = $newName; $pathConfig = "Includes/config.inc.php"; $lineTitle = 6; $UFile = new UFile(); $UFile->saveLine($lineTitle, "'{$newName}';", $pathConfig); } $newMax = intval($VAdmin->getNewMaxUmb()); if ($newMax != $config['max'] && $newMax != "") { $config['max'] = $newMax; $pathConfig = "Includes/config.inc.php"; $lineMax = 8; $UFile = new UFile(); $UFile->saveLine($lineMax, "{$newMax};", $pathConfig); } return $this->dataManagement(); }