first commit

This commit is contained in:
2024-12-12 15:33:18 +01:00
commit 2c8998663e
3360 changed files with 777573 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
<?php
global $xajax;
$xajax -> register( XAJAX_FUNCTION, 'changePhrasePosition' );
$xajax -> register( XAJAX_FUNCTION, 'refreshPhrase' );
function changePhrasePosition( $phrase_id, $date, $position )
{
global $mdb;
\factory\Ranker::changePhrasePosition( $phrase_id, $date, $position );
}
function refreshPhrase( $phrase_id )
{
global $mdb;
\factory\Ranker::refreshPhrase( $phrase_id );
$ajax = new \xajaxResponse;
$ajax -> script( '$( "#' . $phrase_id . '-' . date( 'Y-m-d' ) . ' span" ).html( "" );' );
return $ajax;
}