-
Notifications
You must be signed in to change notification settings - Fork 194
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'proposals/version-1.9.0'
- Loading branch information
Showing
15 changed files
with
168 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?php | ||
$url = ''; | ||
if ( $_POST ) : | ||
$time_start = microtime(true); | ||
|
||
|
||
$url = $_POST['url']; | ||
echo '<p><strong>URL:</strong>' . $url . '</p>'; | ||
|
||
$title = ''; | ||
$dom = new DOMDocument(); | ||
libxml_use_internal_errors(true); | ||
if ($dom->loadHTMLFile($_POST['url'])) { | ||
$list = $dom->getElementsByTagName("title"); | ||
if ($list->length > 0) { | ||
$title = $list->item(0)->textContent; | ||
} | ||
} | ||
$time_end = microtime(true); | ||
if ( strlen($title) > 0 ) : echo '<p><strong>Title:</strong> ' . $title . '</p>'; endif; | ||
$execution_time = ($time_end - $time_start); | ||
echo '<p><b>Total Execution Time:</b> '.$execution_time.' seconds</p>'; | ||
|
||
endif; ?> | ||
|
||
<form method="post" action="/marks/add"> | ||
<input type="hidden" name="add_from_url" value="1"> | ||
<input type="text" name="url" value="<?=$url;?>" placeholder="http://"> | ||
<input type="submit" value="Get"> | ||
</form> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.