📄 14.inc
字号:
<?php$db1 = new db();require_once($GO_CONFIG->class_path.'filesystem.class.inc');$fs = new filesystem(true);$sql = "SELECT * FROM pmProjects";$db1->query($sql);while($db1->next_record()){ $old_path = $GO_CONFIG->file_storage_path.'projects/'.$db1->f('name'); $new_path = $GO_CONFIG->file_storage_path.'projects/'.$db1->f('id'); if(file_exists($old_path)) { $fs->move($old_path, $new_path); }}?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -