mirror of
https://github.com/myvesta/vesta.git
synced 2024-12-21 11:31:21 -08:00
18 lines
349 B
PHP
18 lines
349 B
PHP
#!/usr/bin/php
|
|
<?php
|
|
|
|
include ("/usr/local/vesta/func/main.php");
|
|
include ("/usr/local/vesta/func/string.php");
|
|
|
|
myvesta_check_args (3, 'find replace file');
|
|
|
|
echo "Find: ".$find."\n";
|
|
echo "Replace: ".$replace."\n";
|
|
echo "File: ".$file."\n";
|
|
|
|
$r=myvesta_replace_in_file($find, $replace, $file);
|
|
|
|
if ($r) echo "Replacing done!\n";
|
|
|
|
myvesta_exit(0);
|