📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
matba.demodesign.com.tr
/
application
/
controllers
📝
Cron.php
← Geri Dön
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class Cron extends CI_Controller { public function __construct() { parent::__construct(); } public function db_sifirla() { $this->load->dbforge(); $tables = $this->db->list_tables(); foreach ($tables as $table) { $this->dbforge->drop_table($table); } $file = '/home/sekobfws/matbaa.sekobi.agency/cron_dosyalari/matbaa.sql'; $this->db_yukle($file); } public function db_yukle($file) { if (file_exists($file)) { $lines = file($file); $statement = ''; foreach ($lines as $line) { $statement .= $line; if (substr(trim($line), -1) === ';') { $this->db->simple_query($statement); $statement = ''; } } } } }
💾 Kaydet
İptal
📝 Yeniden Adlandır
İptal
Kaydet
🔐 Dosya İzinleri (chmod)
İzin Değeri:
Hızlı Seçim:
777
755
644
600
777
= Herkes okur/yazar/çalıştırır
755
= Sahip tam, diğerleri okur/çalıştırır
644
= Sahip okur/yazar, diğerleri okur
600
= Sadece sahip okur/yazar
İptal
Uygula