Clean-room copy of the reusable engines from comiida, with all instance data, secrets, dependencies, and build output excluded: - app/ Astro theme skeleton (no comiida blog posts; hero image -> placeholder) - api/ SeedProject PHP framework (no vendor/.env/config.php) - content-pipeline/ engine only (scripts/admin/prompts; empty runtime state) - astroagent.config.json + app/.astroagent/skills Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SYHWLHihq3v9nxNwoPCKSn
26 lines
No EOL
484 B
PHP
26 lines
No EOL
484 B
PHP
<?php
|
|
|
|
|
|
class Validate {
|
|
|
|
public static function Email($f) {
|
|
if($f) {
|
|
if (!filter_var($f, FILTER_VALIDATE_EMAIL)) {
|
|
return false;
|
|
} else {
|
|
return $f;
|
|
}
|
|
} else {
|
|
$Error['Code']='';
|
|
$Error['msg'] = "Email Required";
|
|
return (json_encode($Error));
|
|
}
|
|
|
|
}
|
|
|
|
|
|
public static function sendlog($string){
|
|
error_log($string, 0);
|
|
}
|
|
|
|
} // End Class
|