~include('../site/admin.header.tmpl','Vérifie les images')
~list(~get('database'),
"SELECT images_path.id,images_path.path
FROM images_path",
'LM',
~if(!~file_exists(~fld('path')),
'Folder #~fld('id'):~fld('path') doesn\'t exists!
'
)
)
~list(~get('database'),
"SELECT images.id,CONCAT(images_path.path,images.name) AS filename
FROM images_path,images
WHERE
images.path_id=images_path.id",
'LM',
~if(!~file_exists(~fld('filename')),
'File #~fld('id'):~fld('filename') doesn\'t exists!
'
)
)
~list(~get('database'),
"OPTIMIZE TABLE images"
)
~include("../site/admin.footer.tmpl")